public class ThriftTokenizer extends net.morimekta.util.lexer.TokenizerBase<ThriftTokenType,ThriftToken>
| Modifier and Type | Field and Description |
|---|---|
static String |
kConst |
static String |
kEnum |
static String |
kException |
static String |
kExtends |
static String |
kImplements |
static String |
kInclude |
static String |
kInterface |
static String |
kNamespace |
static String |
kNull |
static String |
kOf |
static String |
kOneway |
static String |
kOptional |
static String |
kRequired |
static String |
kService |
static String |
kStruct |
static String |
kThrows |
static String |
kTypedef |
static String |
kUnion |
static String |
kVoid |
| Constructor and Description |
|---|
ThriftTokenizer(InputStream in) |
ThriftTokenizer(Reader reader) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
allowIdentifier(int last) |
protected ThriftToken |
genericToken(char[] buffer,
int offset,
int len,
ThriftTokenType type,
int lineNo,
int linePos) |
protected ThriftToken |
identifierToken(char[] buffer,
int offset,
int len,
int lineNo,
int linePos) |
protected ThriftToken |
nextSymbol() |
protected ThriftToken |
numberToken(char[] buffer,
int offset,
int len,
int lineNo,
int linePos) |
ThriftToken |
parseNextToken() |
protected boolean |
startString() |
protected ThriftToken |
stringToken(char[] buffer,
int offset,
int len,
int lineNo,
int linePos) |
protected ThriftToken |
symbolToken(char[] buffer,
int offset,
int len,
int lineNo,
int linePos) |
currentLine, currentLineNo, currentLinePos, eofFailure, failure, identifierSeparator, isWhitespace, readUntil, startIdentifier, startNumber, startSymbol, toStringpublic static final String kNamespace
public static final String kInclude
public static final String kTypedef
public static final String kEnum
public static final String kStruct
public static final String kUnion
public static final String kException
public static final String kInterface
public static final String kConst
public static final String kService
public static final String kExtends
public static final String kVoid
public static final String kOneway
public static final String kThrows
public static final String kRequired
public static final String kOptional
public static final String kImplements
public static final String kOf
public static final String kNull
public ThriftTokenizer(InputStream in)
public ThriftTokenizer(Reader reader)
protected ThriftToken genericToken(char[] buffer, int offset, int len, @Nonnull ThriftTokenType type, int lineNo, int linePos)
genericToken in class net.morimekta.util.lexer.TokenizerBase<ThriftTokenType,ThriftToken>@Nullable public ThriftToken parseNextToken() throws IOException
parseNextToken in interface net.morimekta.util.lexer.Tokenizer<ThriftTokenType,ThriftToken>parseNextToken in class net.morimekta.util.lexer.TokenizerBase<ThriftTokenType,ThriftToken>IOExceptionprotected ThriftToken identifierToken(char[] buffer, int offset, int len, int lineNo, int linePos)
identifierToken in class net.morimekta.util.lexer.TokenizerBase<ThriftTokenType,ThriftToken>protected ThriftToken stringToken(char[] buffer, int offset, int len, int lineNo, int linePos)
stringToken in class net.morimekta.util.lexer.TokenizerBase<ThriftTokenType,ThriftToken>protected ThriftToken numberToken(char[] buffer, int offset, int len, int lineNo, int linePos)
numberToken in class net.morimekta.util.lexer.TokenizerBase<ThriftTokenType,ThriftToken>protected ThriftToken symbolToken(char[] buffer, int offset, int len, int lineNo, int linePos)
symbolToken in class net.morimekta.util.lexer.TokenizerBase<ThriftTokenType,ThriftToken>protected boolean startString()
startString in class net.morimekta.util.lexer.TokenizerBase<ThriftTokenType,ThriftToken>@Nonnull protected ThriftToken nextSymbol() throws IOException
nextSymbol in class net.morimekta.util.lexer.TokenizerBase<ThriftTokenType,ThriftToken>IOExceptionprotected boolean allowIdentifier(int last)
allowIdentifier in class net.morimekta.util.lexer.TokenizerBase<ThriftTokenType,ThriftToken>Copyright © 2015–2020 morimekta.net. All rights reserved.