public class PunctuationBaseToken extends LeafBaseToken
| Constructor and Description |
|---|
PunctuationBaseToken(String s)
Construct a new PunctuationBaseToken with the given punctuation value.
|
| Modifier and Type | Method and 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.
|
isCompound, isLeaf, matchgetSimpleName, isIdentifier, isLiteral, isNest, isOperator, matchpublic PunctuationBaseToken(String s)
s - the string that represents a punctuationpublic String getValue()
getValue in class LeafBaseTokenpublic boolean isPunctuation()
BaseTokenisPunctuation in class BaseTokenpublic String toString()
toString in class LeafBaseToken