Package io.protostuff.compiler.parser
Class ProtoLexer
- java.lang.Object
-
- org.antlr.v4.runtime.Recognizer<Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
- org.antlr.v4.runtime.Lexer
-
- io.protostuff.compiler.parser.ProtoLexer
-
- All Implemented Interfaces:
org.antlr.v4.runtime.TokenSource
public class ProtoLexer extends org.antlr.v4.runtime.Lexer
-
-
Field Summary
Fields Modifier and Type Field Description static org.antlr.v4.runtime.atn.ATN_ATNprotected static org.antlr.v4.runtime.dfa.DFA[]_decisionToDFAstatic String_serializedATNprotected static org.antlr.v4.runtime.atn.PredictionContextCache_sharedContextCachestatic intASSIGNstatic intBOOLstatic intBOOLEAN_VALUEstatic intBYTESstatic String[]channelNamesstatic intCOLONstatic intCOMMAstatic intCOMMENTstatic intDOTstatic intDOUBLEstatic intENUMstatic intERRCHARstatic intEXTENDstatic intEXTENSIONSstatic intFIXED32static intFIXED64static intFLOATstatic intFLOAT_VALUEstatic intGROUPstatic intGTstatic intIDENTstatic intIMPORTstatic intINT32static intINT64static intINTEGER_VALUEstatic intLCURLYstatic intLINE_COMMENTstatic intLPARENstatic intLSQUAREstatic intLTstatic intMAPstatic intMAXstatic intMESSAGEstatic String[]modeNamesstatic intNLstatic intONEOFstatic intOPTIONstatic intOPTIONALstatic intPACKAGEstatic intPLUGIN_DEV_MARKERstatic intPUBLICstatic intRCURLYstatic intREPEATEDstatic intREQUIREDstatic intRESERVEDstatic intRETURNSstatic intRPARENstatic intRPCstatic intRSQUAREstatic String[]ruleNamesstatic intSEMICOLONstatic intSERVICEstatic intSFIXED32static intSFIXED64static intSINT32static intSINT64static intSTREAMstatic intSTRINGstatic intSTRING_VALUEstatic intSYNTAXstatic intTOstatic String[]tokenNamesDeprecated.UseVOCABULARYinstead.static intUINT32static intUINT64static org.antlr.v4.runtime.VocabularyVOCABULARYstatic intWS-
Fields inherited from class org.antlr.v4.runtime.Lexer
_channel, _factory, _hitEOF, _input, _mode, _modeStack, _text, _token, _tokenFactorySourcePair, _tokenStartCharIndex, _tokenStartCharPositionInLine, _tokenStartLine, _type, DEFAULT_MODE, DEFAULT_TOKEN_CHANNEL, HIDDEN, MAX_CHAR_VALUE, MIN_CHAR_VALUE, MORE, SKIP
-
-
Constructor Summary
Constructors Constructor Description ProtoLexer(org.antlr.v4.runtime.CharStream input)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.antlr.v4.runtime.atn.ATNgetATN()String[]getChannelNames()StringgetGrammarFileName()String[]getModeNames()String[]getRuleNames()StringgetSerializedATN()String[]getTokenNames()Deprecated.org.antlr.v4.runtime.VocabularygetVocabulary()-
Methods inherited from class org.antlr.v4.runtime.Lexer
emit, emit, emitEOF, getAllTokens, getChannel, getCharErrorDisplay, getCharIndex, getCharPositionInLine, getErrorDisplay, getErrorDisplay, getInputStream, getLine, getSourceName, getText, getToken, getTokenFactory, getType, mode, more, nextToken, notifyListeners, popMode, pushMode, recover, recover, reset, setChannel, setCharPositionInLine, setInputStream, setLine, setText, setToken, setTokenFactory, setType, skip
-
Methods inherited from class org.antlr.v4.runtime.Recognizer
action, addErrorListener, getErrorHeader, getErrorListenerDispatch, getErrorListeners, getInterpreter, getParseInfo, getRuleIndexMap, getState, getTokenErrorDisplay, getTokenType, getTokenTypeMap, precpred, removeErrorListener, removeErrorListeners, sempred, setInterpreter, setState
-
-
-
-
Field Detail
-
_decisionToDFA
protected static final org.antlr.v4.runtime.dfa.DFA[] _decisionToDFA
-
_sharedContextCache
protected static final org.antlr.v4.runtime.atn.PredictionContextCache _sharedContextCache
-
PACKAGE
public static final int PACKAGE
- See Also:
- Constant Field Values
-
SYNTAX
public static final int SYNTAX
- See Also:
- Constant Field Values
-
IMPORT
public static final int IMPORT
- See Also:
- Constant Field Values
-
PUBLIC
public static final int PUBLIC
- See Also:
- Constant Field Values
-
OPTION
public static final int OPTION
- See Also:
- Constant Field Values
-
MESSAGE
public static final int MESSAGE
- See Also:
- Constant Field Values
-
GROUP
public static final int GROUP
- See Also:
- Constant Field Values
-
OPTIONAL
public static final int OPTIONAL
- See Also:
- Constant Field Values
-
REQUIRED
public static final int REQUIRED
- See Also:
- Constant Field Values
-
REPEATED
public static final int REPEATED
- See Also:
- Constant Field Values
-
ONEOF
public static final int ONEOF
- See Also:
- Constant Field Values
-
EXTEND
public static final int EXTEND
- See Also:
- Constant Field Values
-
EXTENSIONS
public static final int EXTENSIONS
- See Also:
- Constant Field Values
-
TO
public static final int TO
- See Also:
- Constant Field Values
-
MAX
public static final int MAX
- See Also:
- Constant Field Values
-
RESERVED
public static final int RESERVED
- See Also:
- Constant Field Values
-
ENUM
public static final int ENUM
- See Also:
- Constant Field Values
-
SERVICE
public static final int SERVICE
- See Also:
- Constant Field Values
-
RPC
public static final int RPC
- See Also:
- Constant Field Values
-
RETURNS
public static final int RETURNS
- See Also:
- Constant Field Values
-
STREAM
public static final int STREAM
- See Also:
- Constant Field Values
-
MAP
public static final int MAP
- See Also:
- Constant Field Values
-
BOOLEAN_VALUE
public static final int BOOLEAN_VALUE
- See Also:
- Constant Field Values
-
DOUBLE
public static final int DOUBLE
- See Also:
- Constant Field Values
-
FLOAT
public static final int FLOAT
- See Also:
- Constant Field Values
-
INT32
public static final int INT32
- See Also:
- Constant Field Values
-
INT64
public static final int INT64
- See Also:
- Constant Field Values
-
UINT32
public static final int UINT32
- See Also:
- Constant Field Values
-
UINT64
public static final int UINT64
- See Also:
- Constant Field Values
-
SINT32
public static final int SINT32
- See Also:
- Constant Field Values
-
SINT64
public static final int SINT64
- See Also:
- Constant Field Values
-
FIXED32
public static final int FIXED32
- See Also:
- Constant Field Values
-
FIXED64
public static final int FIXED64
- See Also:
- Constant Field Values
-
SFIXED32
public static final int SFIXED32
- See Also:
- Constant Field Values
-
SFIXED64
public static final int SFIXED64
- See Also:
- Constant Field Values
-
BOOL
public static final int BOOL
- See Also:
- Constant Field Values
-
STRING
public static final int STRING
- See Also:
- Constant Field Values
-
BYTES
public static final int BYTES
- See Also:
- Constant Field Values
-
COMMENT
public static final int COMMENT
- See Also:
- Constant Field Values
-
LINE_COMMENT
public static final int LINE_COMMENT
- See Also:
- Constant Field Values
-
PLUGIN_DEV_MARKER
public static final int PLUGIN_DEV_MARKER
- See Also:
- Constant Field Values
-
NL
public static final int NL
- See Also:
- Constant Field Values
-
WS
public static final int WS
- See Also:
- Constant Field Values
-
LCURLY
public static final int LCURLY
- See Also:
- Constant Field Values
-
RCURLY
public static final int RCURLY
- See Also:
- Constant Field Values
-
LPAREN
public static final int LPAREN
- See Also:
- Constant Field Values
-
RPAREN
public static final int RPAREN
- See Also:
- Constant Field Values
-
LSQUARE
public static final int LSQUARE
- See Also:
- Constant Field Values
-
RSQUARE
public static final int RSQUARE
- See Also:
- Constant Field Values
-
LT
public static final int LT
- See Also:
- Constant Field Values
-
GT
public static final int GT
- See Also:
- Constant Field Values
-
COMMA
public static final int COMMA
- See Also:
- Constant Field Values
-
DOT
public static final int DOT
- See Also:
- Constant Field Values
-
COLON
public static final int COLON
- See Also:
- Constant Field Values
-
SEMICOLON
public static final int SEMICOLON
- See Also:
- Constant Field Values
-
ASSIGN
public static final int ASSIGN
- See Also:
- Constant Field Values
-
IDENT
public static final int IDENT
- See Also:
- Constant Field Values
-
STRING_VALUE
public static final int STRING_VALUE
- See Also:
- Constant Field Values
-
INTEGER_VALUE
public static final int INTEGER_VALUE
- See Also:
- Constant Field Values
-
FLOAT_VALUE
public static final int FLOAT_VALUE
- See Also:
- Constant Field Values
-
ERRCHAR
public static final int ERRCHAR
- See Also:
- Constant Field Values
-
channelNames
public static String[] channelNames
-
modeNames
public static String[] modeNames
-
ruleNames
public static final String[] ruleNames
-
VOCABULARY
public static final org.antlr.v4.runtime.Vocabulary VOCABULARY
-
tokenNames
@Deprecated public static final String[] tokenNames
Deprecated.UseVOCABULARYinstead.
-
_serializedATN
public static final String _serializedATN
- See Also:
- Constant Field Values
-
_ATN
public static final org.antlr.v4.runtime.atn.ATN _ATN
-
-
Method Detail
-
getTokenNames
@Deprecated public String[] getTokenNames()
Deprecated.- Overrides:
getTokenNamesin classorg.antlr.v4.runtime.Lexer
-
getVocabulary
public org.antlr.v4.runtime.Vocabulary getVocabulary()
- Overrides:
getVocabularyin classorg.antlr.v4.runtime.Recognizer<Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
getGrammarFileName
public String getGrammarFileName()
- Specified by:
getGrammarFileNamein classorg.antlr.v4.runtime.Recognizer<Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
getRuleNames
public String[] getRuleNames()
- Specified by:
getRuleNamesin classorg.antlr.v4.runtime.Recognizer<Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
getSerializedATN
public String getSerializedATN()
- Overrides:
getSerializedATNin classorg.antlr.v4.runtime.Recognizer<Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
getChannelNames
public String[] getChannelNames()
- Overrides:
getChannelNamesin classorg.antlr.v4.runtime.Lexer
-
getModeNames
public String[] getModeNames()
- Overrides:
getModeNamesin classorg.antlr.v4.runtime.Lexer
-
getATN
public org.antlr.v4.runtime.atn.ATN getATN()
- Specified by:
getATNin classorg.antlr.v4.runtime.Recognizer<Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
-