Class PunctuationBaseToken
- java.lang.Object
-
- com.tangosol.coherence.dsltools.base.BaseToken
-
- com.tangosol.coherence.dsltools.base.LeafBaseToken
-
- com.tangosol.coherence.dsltools.base.PunctuationBaseToken
-
public class PunctuationBaseToken extends LeafBaseToken
PunctuationBaseToken is a token that represents a known punctuation.- Author:
- djl 2009.03.14
-
-
Constructor Summary
Constructors Constructor Description PunctuationBaseToken(String s)Construct a new PunctuationBaseToken with the given punctuation value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetValue()Return the string representation of this LeafBaseToken.booleanisPunctuation()Answer whether this token represents a punctuation character.StringtoString()Return a human-readable description for this token.-
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 Detail
-
PunctuationBaseToken
public PunctuationBaseToken(String s)
Construct a new PunctuationBaseToken with the given punctuation value.- Parameters:
s- the string that represents a punctuation
-
-
Method Detail
-
getValue
public String getValue()
Return the string representation of this LeafBaseToken.- Specified by:
getValuein classLeafBaseToken- Returns:
- the string that represents the reciever
-
isPunctuation
public boolean isPunctuation()
Description copied from class:BaseTokenAnswer whether this token represents a punctuation character.- Overrides:
isPunctuationin classBaseToken- Returns:
- the answer to the question "is this token a punctuation character?"
-
toString
public String toString()
Return a human-readable description for this token.- Overrides:
toStringin classLeafBaseToken- Returns:
- a String description of the token
-
-