Package mireka.address.parser.base
Class Token
- Object
-
- mireka.address.parser.base.Token
-
- Direct Known Subclasses:
CharToken,StringToken
public abstract class Token extends Object
-
-
Field Summary
Fields Modifier and Type Field Description intposition
-
Constructor Summary
Constructors Constructor Description Token(int position)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.util.List<CharToken>getSpellingTokens()java.text.ParseExceptionotherSyntaxException(String sentence)java.text.ParseExceptionsyntaxException(Object expected)abstract StringtoString()Returns the token in a readable format which can be used in error messages.
-
-
-
Method Detail
-
getSpellingTokens
public abstract java.util.List<CharToken> getSpellingTokens()
-
syntaxException
public java.text.ParseException syntaxException(Object expected)
-
otherSyntaxException
public java.text.ParseException otherSyntaxException(String sentence)
-
toString
public abstract String toString()
Returns the token in a readable format which can be used in error messages.- Overrides:
toStringin classObject
-
-