Class RustLexer
- java.lang.Object
-
- org.antlr.v4.runtime.Recognizer<Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
- org.antlr.v4.runtime.Lexer
-
- net.sourceforge.pmd.lang.rust.ast.RustLexer
-
- All Implemented Interfaces:
org.antlr.v4.runtime.TokenSource
@Generated("org.antlr.v4.Tool") public class RustLexer 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 intANDstatic intANDANDstatic intANDEQstatic intATstatic intBACKTICKstatic intBIN_LITERALstatic intBLOCK_COMMENTstatic intBLOCK_COMMENT_OR_DOCstatic intBYTE_LITERALstatic intBYTE_STRING_LITERALstatic intCARETstatic intCARETEQstatic String[]channelNamesstatic intCHAR_LITERALstatic intCOLONstatic intCOMMAstatic intDEC_LITERALstatic intDOLLARstatic intDOTstatic intDOTDOTstatic intDOTDOTDOTstatic intDOTDOTEQstatic intEQstatic intEQEQstatic intFATARROWstatic intFLOAT_LITERALstatic intGEstatic intGTstatic intHEX_LITERALstatic intINNER_BLOCK_DOCstatic intINNER_LINE_DOCstatic intINTEGER_LITERALstatic intKW_ABSTRACTstatic intKW_ASstatic intKW_ASYNCstatic intKW_AWAITstatic intKW_BECOMEstatic intKW_BOXstatic intKW_BREAKstatic intKW_CONSTstatic intKW_CONTINUEstatic intKW_CRATEstatic intKW_DOstatic intKW_DOLLARCRATEstatic intKW_DYNstatic intKW_ELSEstatic intKW_ENUMstatic intKW_EXTERNstatic intKW_FALSEstatic intKW_FINALstatic intKW_FNstatic intKW_FORstatic intKW_IFstatic intKW_IMPLstatic intKW_INstatic intKW_LETstatic intKW_LOOPstatic intKW_MACROstatic intKW_MACRORULESstatic intKW_MATCHstatic intKW_MODstatic intKW_MOVEstatic intKW_MUTstatic intKW_OVERRIDEstatic intKW_PRIVstatic intKW_PUBstatic intKW_REFstatic intKW_RETURNstatic intKW_SELFTYPEstatic intKW_SELFVALUEstatic intKW_STATICstatic intKW_STATICLIFETIMEstatic intKW_STRUCTstatic intKW_SUPERstatic intKW_TRAITstatic intKW_TRUEstatic intKW_TRYstatic intKW_TYPEstatic intKW_TYPEOFstatic intKW_UNDERLINELIFETIMEstatic intKW_UNIONstatic intKW_UNSAFEstatic intKW_UNSIZEDstatic intKW_USEstatic intKW_VIRTUALstatic intKW_WHEREstatic intKW_WHILEstatic intKW_YIELDstatic intLCURLYBRACEstatic intLEstatic intLIFETIME_OR_LABELstatic intLINE_COMMENTstatic intLPARENstatic intLSQUAREBRACKETstatic intLTstatic intMINUSstatic intMINUSEQstatic String[]modeNamesstatic intNEstatic intNEWLINEstatic intNON_KEYWORD_IDENTIFIERstatic intNOTstatic intOCT_LITERALstatic intORstatic intOREQstatic intORORstatic intOUTER_BLOCK_DOCstatic intOUTER_LINE_DOCstatic intPATHSEPstatic intPERCENTstatic intPERCENTEQstatic intPLUSstatic intPLUSEQstatic intPOUNDstatic intQUESTIONstatic intRARROWstatic intRAW_BYTE_STRING_LITERALstatic intRAW_IDENTIFIERstatic intRAW_STRING_LITERALstatic intRCURLYBRACEstatic intRPARENstatic intRSQUAREBRACKETstatic String[]ruleNamesstatic intSEMIstatic intSHEBANGstatic intSHLEQstatic intSHREQstatic intSLASHstatic intSLASHEQstatic intSTARstatic intSTAREQstatic intSTRING_LITERALstatic String[]tokenNamesDeprecated.UseVOCABULARYinstead.static intUNDERSCOREstatic org.antlr.v4.runtime.VocabularyVOCABULARYstatic intWHITESPACE-
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 RustLexer(org.antlr.v4.runtime.CharStream input)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanfloatDotPossible()booleanfloatLiteralPossible()org.antlr.v4.runtime.atn.ATNgetATN()String[]getChannelNames()StringgetGrammarFileName()String[]getModeNames()String[]getRuleNames()StringgetSerializedATN()String[]getTokenNames()Deprecated.org.antlr.v4.runtime.VocabularygetVocabulary()booleannext(char expect)org.antlr.v4.runtime.TokennextToken()booleansempred(org.antlr.v4.runtime.RuleContext _localctx, int ruleIndex, int predIndex)booleanSOF()-
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, 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, 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
-
KW_AS
public static final int KW_AS
- See Also:
- Constant Field Values
-
KW_BREAK
public static final int KW_BREAK
- See Also:
- Constant Field Values
-
KW_CONST
public static final int KW_CONST
- See Also:
- Constant Field Values
-
KW_CONTINUE
public static final int KW_CONTINUE
- See Also:
- Constant Field Values
-
KW_CRATE
public static final int KW_CRATE
- See Also:
- Constant Field Values
-
KW_ELSE
public static final int KW_ELSE
- See Also:
- Constant Field Values
-
KW_ENUM
public static final int KW_ENUM
- See Also:
- Constant Field Values
-
KW_EXTERN
public static final int KW_EXTERN
- See Also:
- Constant Field Values
-
KW_FALSE
public static final int KW_FALSE
- See Also:
- Constant Field Values
-
KW_FN
public static final int KW_FN
- See Also:
- Constant Field Values
-
KW_FOR
public static final int KW_FOR
- See Also:
- Constant Field Values
-
KW_IF
public static final int KW_IF
- See Also:
- Constant Field Values
-
KW_IMPL
public static final int KW_IMPL
- See Also:
- Constant Field Values
-
KW_IN
public static final int KW_IN
- See Also:
- Constant Field Values
-
KW_LET
public static final int KW_LET
- See Also:
- Constant Field Values
-
KW_LOOP
public static final int KW_LOOP
- See Also:
- Constant Field Values
-
KW_MATCH
public static final int KW_MATCH
- See Also:
- Constant Field Values
-
KW_MOD
public static final int KW_MOD
- See Also:
- Constant Field Values
-
KW_MOVE
public static final int KW_MOVE
- See Also:
- Constant Field Values
-
KW_MUT
public static final int KW_MUT
- See Also:
- Constant Field Values
-
KW_PUB
public static final int KW_PUB
- See Also:
- Constant Field Values
-
KW_REF
public static final int KW_REF
- See Also:
- Constant Field Values
-
KW_RETURN
public static final int KW_RETURN
- See Also:
- Constant Field Values
-
KW_SELFVALUE
public static final int KW_SELFVALUE
- See Also:
- Constant Field Values
-
KW_SELFTYPE
public static final int KW_SELFTYPE
- See Also:
- Constant Field Values
-
KW_STATIC
public static final int KW_STATIC
- See Also:
- Constant Field Values
-
KW_STRUCT
public static final int KW_STRUCT
- See Also:
- Constant Field Values
-
KW_SUPER
public static final int KW_SUPER
- See Also:
- Constant Field Values
-
KW_TRAIT
public static final int KW_TRAIT
- See Also:
- Constant Field Values
-
KW_TRUE
public static final int KW_TRUE
- See Also:
- Constant Field Values
-
KW_TYPE
public static final int KW_TYPE
- See Also:
- Constant Field Values
-
KW_UNSAFE
public static final int KW_UNSAFE
- See Also:
- Constant Field Values
-
KW_USE
public static final int KW_USE
- See Also:
- Constant Field Values
-
KW_WHERE
public static final int KW_WHERE
- See Also:
- Constant Field Values
-
KW_WHILE
public static final int KW_WHILE
- See Also:
- Constant Field Values
-
KW_ASYNC
public static final int KW_ASYNC
- See Also:
- Constant Field Values
-
KW_AWAIT
public static final int KW_AWAIT
- See Also:
- Constant Field Values
-
KW_DYN
public static final int KW_DYN
- See Also:
- Constant Field Values
-
KW_ABSTRACT
public static final int KW_ABSTRACT
- See Also:
- Constant Field Values
-
KW_BECOME
public static final int KW_BECOME
- See Also:
- Constant Field Values
-
KW_BOX
public static final int KW_BOX
- See Also:
- Constant Field Values
-
KW_DO
public static final int KW_DO
- See Also:
- Constant Field Values
-
KW_FINAL
public static final int KW_FINAL
- See Also:
- Constant Field Values
-
KW_MACRO
public static final int KW_MACRO
- See Also:
- Constant Field Values
-
KW_OVERRIDE
public static final int KW_OVERRIDE
- See Also:
- Constant Field Values
-
KW_PRIV
public static final int KW_PRIV
- See Also:
- Constant Field Values
-
KW_TYPEOF
public static final int KW_TYPEOF
- See Also:
- Constant Field Values
-
KW_UNSIZED
public static final int KW_UNSIZED
- See Also:
- Constant Field Values
-
KW_VIRTUAL
public static final int KW_VIRTUAL
- See Also:
- Constant Field Values
-
KW_YIELD
public static final int KW_YIELD
- See Also:
- Constant Field Values
-
KW_TRY
public static final int KW_TRY
- See Also:
- Constant Field Values
-
KW_UNION
public static final int KW_UNION
- See Also:
- Constant Field Values
-
KW_STATICLIFETIME
public static final int KW_STATICLIFETIME
- See Also:
- Constant Field Values
-
KW_MACRORULES
public static final int KW_MACRORULES
- See Also:
- Constant Field Values
-
KW_UNDERLINELIFETIME
public static final int KW_UNDERLINELIFETIME
- See Also:
- Constant Field Values
-
KW_DOLLARCRATE
public static final int KW_DOLLARCRATE
- See Also:
- Constant Field Values
-
NON_KEYWORD_IDENTIFIER
public static final int NON_KEYWORD_IDENTIFIER
- See Also:
- Constant Field Values
-
RAW_IDENTIFIER
public static final int RAW_IDENTIFIER
- See Also:
- Constant Field Values
-
LINE_COMMENT
public static final int LINE_COMMENT
- See Also:
- Constant Field Values
-
BLOCK_COMMENT
public static final int BLOCK_COMMENT
- See Also:
- Constant Field Values
-
INNER_LINE_DOC
public static final int INNER_LINE_DOC
- See Also:
- Constant Field Values
-
INNER_BLOCK_DOC
public static final int INNER_BLOCK_DOC
- See Also:
- Constant Field Values
-
OUTER_LINE_DOC
public static final int OUTER_LINE_DOC
- See Also:
- Constant Field Values
-
OUTER_BLOCK_DOC
public static final int OUTER_BLOCK_DOC
- See Also:
- Constant Field Values
-
BLOCK_COMMENT_OR_DOC
public static final int BLOCK_COMMENT_OR_DOC
- See Also:
- Constant Field Values
-
SHEBANG
public static final int SHEBANG
- See Also:
- Constant Field Values
-
WHITESPACE
public static final int WHITESPACE
- See Also:
- Constant Field Values
-
NEWLINE
public static final int NEWLINE
- See Also:
- Constant Field Values
-
CHAR_LITERAL
public static final int CHAR_LITERAL
- See Also:
- Constant Field Values
-
STRING_LITERAL
public static final int STRING_LITERAL
- See Also:
- Constant Field Values
-
RAW_STRING_LITERAL
public static final int RAW_STRING_LITERAL
- See Also:
- Constant Field Values
-
BYTE_LITERAL
public static final int BYTE_LITERAL
- See Also:
- Constant Field Values
-
BYTE_STRING_LITERAL
public static final int BYTE_STRING_LITERAL
- See Also:
- Constant Field Values
-
RAW_BYTE_STRING_LITERAL
public static final int RAW_BYTE_STRING_LITERAL
- See Also:
- Constant Field Values
-
INTEGER_LITERAL
public static final int INTEGER_LITERAL
- See Also:
- Constant Field Values
-
DEC_LITERAL
public static final int DEC_LITERAL
- See Also:
- Constant Field Values
-
HEX_LITERAL
public static final int HEX_LITERAL
- See Also:
- Constant Field Values
-
OCT_LITERAL
public static final int OCT_LITERAL
- See Also:
- Constant Field Values
-
BIN_LITERAL
public static final int BIN_LITERAL
- See Also:
- Constant Field Values
-
FLOAT_LITERAL
public static final int FLOAT_LITERAL
- See Also:
- Constant Field Values
-
LIFETIME_OR_LABEL
public static final int LIFETIME_OR_LABEL
- See Also:
- Constant Field Values
-
PLUS
public static final int PLUS
- See Also:
- Constant Field Values
-
MINUS
public static final int MINUS
- See Also:
- Constant Field Values
-
STAR
public static final int STAR
- See Also:
- Constant Field Values
-
SLASH
public static final int SLASH
- See Also:
- Constant Field Values
-
PERCENT
public static final int PERCENT
- See Also:
- Constant Field Values
-
CARET
public static final int CARET
- See Also:
- Constant Field Values
-
NOT
public static final int NOT
- See Also:
- Constant Field Values
-
AND
public static final int AND
- See Also:
- Constant Field Values
-
OR
public static final int OR
- See Also:
- Constant Field Values
-
ANDAND
public static final int ANDAND
- See Also:
- Constant Field Values
-
OROR
public static final int OROR
- See Also:
- Constant Field Values
-
PLUSEQ
public static final int PLUSEQ
- See Also:
- Constant Field Values
-
MINUSEQ
public static final int MINUSEQ
- See Also:
- Constant Field Values
-
STAREQ
public static final int STAREQ
- See Also:
- Constant Field Values
-
SLASHEQ
public static final int SLASHEQ
- See Also:
- Constant Field Values
-
PERCENTEQ
public static final int PERCENTEQ
- See Also:
- Constant Field Values
-
CARETEQ
public static final int CARETEQ
- See Also:
- Constant Field Values
-
ANDEQ
public static final int ANDEQ
- See Also:
- Constant Field Values
-
OREQ
public static final int OREQ
- See Also:
- Constant Field Values
-
SHLEQ
public static final int SHLEQ
- See Also:
- Constant Field Values
-
SHREQ
public static final int SHREQ
- See Also:
- Constant Field Values
-
EQ
public static final int EQ
- See Also:
- Constant Field Values
-
EQEQ
public static final int EQEQ
- See Also:
- Constant Field Values
-
NE
public static final int NE
- See Also:
- Constant Field Values
-
GT
public static final int GT
- See Also:
- Constant Field Values
-
LT
public static final int LT
- See Also:
- Constant Field Values
-
GE
public static final int GE
- See Also:
- Constant Field Values
-
LE
public static final int LE
- See Also:
- Constant Field Values
-
AT
public static final int AT
- See Also:
- Constant Field Values
-
UNDERSCORE
public static final int UNDERSCORE
- See Also:
- Constant Field Values
-
DOT
public static final int DOT
- See Also:
- Constant Field Values
-
DOTDOT
public static final int DOTDOT
- See Also:
- Constant Field Values
-
DOTDOTDOT
public static final int DOTDOTDOT
- See Also:
- Constant Field Values
-
DOTDOTEQ
public static final int DOTDOTEQ
- See Also:
- Constant Field Values
-
COMMA
public static final int COMMA
- See Also:
- Constant Field Values
-
SEMI
public static final int SEMI
- See Also:
- Constant Field Values
-
COLON
public static final int COLON
- See Also:
- Constant Field Values
-
PATHSEP
public static final int PATHSEP
- See Also:
- Constant Field Values
-
RARROW
public static final int RARROW
- See Also:
- Constant Field Values
-
FATARROW
public static final int FATARROW
- See Also:
- Constant Field Values
-
POUND
public static final int POUND
- See Also:
- Constant Field Values
-
DOLLAR
public static final int DOLLAR
- See Also:
- Constant Field Values
-
QUESTION
public static final int QUESTION
- See Also:
- Constant Field Values
-
BACKTICK
public static final int BACKTICK
- See Also:
- Constant Field Values
-
LCURLYBRACE
public static final int LCURLYBRACE
- See Also:
- Constant Field Values
-
RCURLYBRACE
public static final int RCURLYBRACE
- See Also:
- Constant Field Values
-
LSQUAREBRACKET
public static final int LSQUAREBRACKET
- See Also:
- Constant Field Values
-
RSQUAREBRACKET
public static final int RSQUAREBRACKET
- 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
-
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>
-
nextToken
public org.antlr.v4.runtime.Token nextToken()
- Specified by:
nextTokenin interfaceorg.antlr.v4.runtime.TokenSource- Overrides:
nextTokenin classorg.antlr.v4.runtime.Lexer
-
SOF
public boolean SOF()
-
next
public boolean next(char expect)
-
floatDotPossible
public boolean floatDotPossible()
-
floatLiteralPossible
public boolean floatLiteralPossible()
-
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>
-
sempred
public boolean sempred(org.antlr.v4.runtime.RuleContext _localctx, int ruleIndex, int predIndex)- Overrides:
sempredin classorg.antlr.v4.runtime.Recognizer<Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
-