Package mireka.address.parser.base
Class StringToken
- Object
-
- mireka.address.parser.base.Token
-
- mireka.address.parser.base.StringToken
-
- Direct Known Subclasses:
AddressLiteralTagToken,Ipv6Token
public abstract class StringToken extends Token
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedStringToken(int position, java.util.List<CharToken> spellingTokens)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<CharToken>getChars()java.util.List<CharToken>getSpellingTokens()StringtoString()Returns the token in a readable format which can be used in error messages.-
Methods inherited from class mireka.address.parser.base.Token
otherSyntaxException, syntaxException
-
-
-
-
Constructor Detail
-
StringToken
protected StringToken(int position, java.util.List<CharToken> spellingTokens)
-
-
Method Detail
-
getChars
public java.util.List<CharToken> getChars()
-
toString
public String toString()
Description copied from class:TokenReturns the token in a readable format which can be used in error messages.
-
getSpellingTokens
public java.util.List<CharToken> getSpellingTokens()
- Specified by:
getSpellingTokensin classToken
-
-