Class PrettyToken
- java.lang.Object
-
- net.morimekta.util.CharSlice
-
- net.morimekta.util.lexer.Token<PrettyTokenType>
-
- net.morimekta.providence.serializer.pretty.PrettyToken
-
- All Implemented Interfaces:
java.lang.CharSequence,java.lang.Comparable<net.morimekta.util.CharSlice>,net.morimekta.util.Stringable
public class PrettyToken extends net.morimekta.util.lexer.Token<PrettyTokenType>
Pretty token.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringB64static java.lang.StringHEXstatic charkFieldSepstatic charkFieldValueSepstatic charkIdentifierSepstatic charkKeyValueSepstatic charkListEndstatic charkListSepstatic charkListStartstatic charkLiteralDoubleQuotestatic charkMessageEndstatic charkMessageStartstatic charkParamsEndstatic charkParamsStart
-
Constructor Summary
Constructors Constructor Description PrettyToken(char[] fb, int off, int len, PrettyTokenType type, int lineNo, int linePos)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisIdentifier()booleanisInteger()booleanisQualifiedIdentifier()booleanisReal()booleanisReferenceIdentifier()booleanisStringLiteral()booleanisSymbol(char symbol)-
Methods inherited from class net.morimekta.util.lexer.Token
decodeString, equals, hashCode, line, lineNo, linePos, type
-
Methods inherited from class net.morimekta.util.CharSlice
asString, charAt, compareTo, contains, contains, containsAny, length, offset, parseDouble, parseInteger, strEquals, strEquals, subSequence, substring, toString
-
-
-
-
Field Detail
-
kMessageStart
public static final char kMessageStart
- See Also:
- Constant Field Values
-
kMessageEnd
public static final char kMessageEnd
- See Also:
- Constant Field Values
-
kKeyValueSep
public static final char kKeyValueSep
- See Also:
- Constant Field Values
-
kFieldValueSep
public static final char kFieldValueSep
- See Also:
- Constant Field Values
-
kParamsStart
public static final char kParamsStart
- See Also:
- Constant Field Values
-
kParamsEnd
public static final char kParamsEnd
- See Also:
- Constant Field Values
-
kListStart
public static final char kListStart
- See Also:
- Constant Field Values
-
kListEnd
public static final char kListEnd
- See Also:
- Constant Field Values
-
kListSep
public static final char kListSep
- See Also:
- Constant Field Values
-
kFieldSep
public static final char kFieldSep
- See Also:
- Constant Field Values
-
kIdentifierSep
public static final char kIdentifierSep
- See Also:
- Constant Field Values
-
kLiteralDoubleQuote
public static final char kLiteralDoubleQuote
- See Also:
- Constant Field Values
-
B64
public static final java.lang.String B64
- See Also:
- Constant Field Values
-
HEX
public static final java.lang.String HEX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PrettyToken
public PrettyToken(char[] fb, int off, int len, PrettyTokenType type, int lineNo, int linePos)
-
-
Method Detail
-
isSymbol
public boolean isSymbol(char symbol)
- Overrides:
isSymbolin classnet.morimekta.util.lexer.Token<PrettyTokenType>
-
isStringLiteral
public boolean isStringLiteral()
-
isIdentifier
public boolean isIdentifier()
-
isQualifiedIdentifier
public boolean isQualifiedIdentifier()
-
isReferenceIdentifier
public boolean isReferenceIdentifier()
-
isInteger
public boolean isInteger()
-
isReal
public boolean isReal()
-
-