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
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionabstract StringgetValue()Return the string representation of this LeafBaseToken.booleanAnswer whether this token is a compound token.booleanisLeaf()Answer whether this token is a leaf token.booleanAnswer 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:
 isCompoundin 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. 
 -