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.String
B64
static java.lang.String
HEX
static char
kFieldSep
static char
kFieldValueSep
static char
kIdentifierSep
static char
kKeyValueSep
static char
kListEnd
static char
kListSep
static char
kListStart
static char
kLiteralDoubleQuote
static char
kMessageEnd
static char
kMessageStart
static char
kParamsEnd
static char
kParamsStart
-
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 boolean
isIdentifier()
boolean
isInteger()
boolean
isQualifiedIdentifier()
boolean
isReal()
boolean
isReferenceIdentifier()
boolean
isStringLiteral()
boolean
isSymbol(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:
isSymbol
in 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()
-
-