Class LeafBaseToken
- java.lang.Object
-
- com.tangosol.coherence.dsltools.base.BaseToken
-
- com.tangosol.coherence.dsltools.base.LeafBaseToken
-
- Direct Known Subclasses:
IdentifierBaseToken,LiteralBaseToken,OperatorBaseToken,PunctuationBaseToken
public abstract class LeafBaseToken extends BaseToken
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 Constructor Description LeafBaseToken()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract StringgetValue()Return the string representation of this LeafBaseToken.booleanisCompound()Answer whether this token is a compound token.booleanisLeaf()Answer whether this token is a leaf token.booleanmatch(String s, boolean fIgnoreCase)Answer whether this token matches the given string.StringtoString()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
-
-
-
-
Method Detail
-
getValue
public abstract String 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
public boolean match(String s, boolean fIgnoreCase)
Answer whether this token matches the given string.
-
-