Class OperatorBaseToken
java.lang.Object
com.tangosol.coherence.dsltools.base.BaseToken
com.tangosol.coherence.dsltools.base.LeafBaseToken
com.tangosol.coherence.dsltools.base.OperatorBaseToken
OperatorBaseToken is a token that represents a known operator.
- Author:
- djl 2009.03.14
-
Constructor Summary
ConstructorDescriptionConstruct a new OperatorBaseToken with the given operator value. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()
Return the string representation of this LeafBaseToken.boolean
Answer whether this token represents a know operator.Methods inherited from class com.tangosol.coherence.dsltools.base.LeafBaseToken
isCompound, isLeaf, match, toString
Methods inherited from class com.tangosol.coherence.dsltools.base.BaseToken
getSimpleName, isIdentifier, isLiteral, isNest, isPunctuation, match
-
Constructor Details
-
OperatorBaseToken
Construct a new OperatorBaseToken with the given operator value.- Parameters:
s
- the string that represents an operator
-
-
Method Details
-
getValue
Return the string representation of this LeafBaseToken.- Specified by:
getValue
in classLeafBaseToken
- Returns:
- the string that represents the reciever
-
isOperator
public boolean isOperator()Answer whether this token represents a know operator.- Overrides:
isOperator
in classBaseToken
- Returns:
- the answer to the question "is this token an operator?"
-