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