public class ThriftToken extends net.morimekta.util.lexer.Token<ThriftTokenType>
| Modifier and Type | Field and Description |
|---|---|
static char |
kFieldValueSep |
static char |
kGenericEnd |
static char |
kGenericStart |
static char |
kKeyValueSep |
static char |
kLineSep1 |
static char |
kLineSep2 |
static char |
kListEnd |
static char |
kListStart |
static char |
kMessageEnd |
static char |
kMessageStart |
static char |
kParamsEnd |
static char |
kParamsStart |
| Constructor and Description |
|---|
ThriftToken(char[] fb,
int off,
int len,
ThriftTokenType type,
int lineNo,
int linePos)
Create a slice instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isDoubleQualifiedIdentifier() |
boolean |
isEnumValueId() |
boolean |
isFieldId() |
boolean |
isIdentifier() |
boolean |
isInteger() |
boolean |
isQualifiedIdentifier() |
boolean |
isReal() |
boolean |
isReferenceIdentifier() |
boolean |
isSymbol(char symbol) |
String |
parseDocumentation()
Parse token content as documentation.
|
decodeString, equals, hashCode, line, lineNo, linePos, typeasString, charAt, compareTo, contains, contains, containsAny, length, offset, parseDouble, parseInteger, strEquals, strEquals, subSequence, substring, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitchars, codePointspublic static final char kGenericStart
public static final char kGenericEnd
public static final char kMessageStart
public static final char kMessageEnd
public static final char kKeyValueSep
public static final char kFieldValueSep
public static final char kParamsStart
public static final char kParamsEnd
public static final char kListStart
public static final char kListEnd
public static final char kLineSep1
public static final char kLineSep2
public ThriftToken(char[] fb,
int off,
int len,
@Nonnull
ThriftTokenType type,
int lineNo,
int linePos)
fb - The buffer to wrap.off - The start offset to wrap.len - The length to represent.type - The token type represented.lineNo - The current line number.linePos - The current line position.public boolean isSymbol(char symbol)
isSymbol in class net.morimekta.util.lexer.Token<ThriftTokenType>public String parseDocumentation()
public boolean isFieldId()
public boolean isEnumValueId()
public boolean isInteger()
public boolean isReal()
public boolean isIdentifier()
public boolean isQualifiedIdentifier()
public boolean isDoubleQualifiedIdentifier()
public boolean isReferenceIdentifier()
Copyright © 2015–2020 morimekta.net. All rights reserved.