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 String
getValue()
Return the string representation of this LeafBaseToken.boolean
isPunctuation()
Answer whether this token represents a punctuation character.String
toString()
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:
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
public String toString()
Return a human-readable description for this token.- Overrides:
toString
in classLeafBaseToken
- Returns:
- a String description of the token
-
-