public abstract class StringToken extends Token
Modifier and Type | Field and Description |
---|---|
String |
spelling |
Modifier | Constructor and Description |
---|---|
protected |
StringToken(int position,
java.util.List<CharToken> spellingTokens) |
Modifier and Type | Method and Description |
---|---|
java.util.List<CharToken> |
getChars() |
java.util.List<CharToken> |
getSpellingTokens() |
String |
toString()
Returns the token in a readable format which can be used in error
messages.
|
otherSyntaxException, syntaxException
protected StringToken(int position, java.util.List<CharToken> spellingTokens)
public java.util.List<CharToken> getChars()
public String toString()
Token
public java.util.List<CharToken> getSpellingTokens()
getSpellingTokens
in class Token