Class LeafBaseToken
java.lang.Object
com.tangosol.coherence.dsltools.base.BaseToken
com.tangosol.coherence.dsltools.base.LeafBaseToken
- Direct Known Subclasses:
IdentifierBaseToken
,LiteralBaseToken
,OperatorBaseToken
,PunctuationBaseToken
LeafBaseToken is the abstract base class for all tokes processed by the
low level BaseTokenScanner that are considered leaves.
- Author:
- djl 2009.03.14
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract String
getValue()
Return the string representation of this LeafBaseToken.boolean
Answer whether this token is a compound token.boolean
isLeaf()
Answer whether this token is a leaf token.boolean
Answer whether this token matches the given string.toString()
Return a human-readable description for this token.Methods inherited from class com.tangosol.coherence.dsltools.base.BaseToken
getSimpleName, isIdentifier, isLiteral, isNest, isOperator, isPunctuation, match
-
Constructor Details
-
LeafBaseToken
public LeafBaseToken()
-
-
Method Details
-
getValue
Return the string representation of this LeafBaseToken.- Returns:
- the string that represents the reciever
-
isLeaf
public boolean isLeaf()Answer whether this token is a leaf token. -
isCompound
public boolean isCompound()Answer whether this token is a compound token.- Specified by:
isCompound
in classBaseToken
- Returns:
- the answer to the question "is this token compound?"
-
match
Answer whether this token matches the given string. -
toString
Return a human-readable description for this token.
-