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
_ATN
protected static org.antlr.v4.runtime.dfa.DFA[]
_decisionToDFA
static String
_serializedATN
protected static org.antlr.v4.runtime.atn.PredictionContextCache
_sharedContextCache
static int
AND
static int
ANDAND
static int
ANDEQ
static int
AT
static int
BACKTICK
static int
BIN_LITERAL
static int
BLOCK_COMMENT
static int
BLOCK_COMMENT_OR_DOC
static int
BYTE_LITERAL
static int
BYTE_STRING_LITERAL
static int
CARET
static int
CARETEQ
static String[]
channelNames
static int
CHAR_LITERAL
static int
COLON
static int
COMMA
static int
DEC_LITERAL
static int
DOLLAR
static int
DOT
static int
DOTDOT
static int
DOTDOTDOT
static int
DOTDOTEQ
static int
EQ
static int
EQEQ
static int
FATARROW
static int
FLOAT_LITERAL
static int
GE
static int
GT
static int
HEX_LITERAL
static int
INNER_BLOCK_DOC
static int
INNER_LINE_DOC
static int
INTEGER_LITERAL
static int
KW_ABSTRACT
static int
KW_AS
static int
KW_ASYNC
static int
KW_AWAIT
static int
KW_BECOME
static int
KW_BOX
static int
KW_BREAK
static int
KW_CONST
static int
KW_CONTINUE
static int
KW_CRATE
static int
KW_DO
static int
KW_DOLLARCRATE
static int
KW_DYN
static int
KW_ELSE
static int
KW_ENUM
static int
KW_EXTERN
static int
KW_FALSE
static int
KW_FINAL
static int
KW_FN
static int
KW_FOR
static int
KW_IF
static int
KW_IMPL
static int
KW_IN
static int
KW_LET
static int
KW_LOOP
static int
KW_MACRO
static int
KW_MACRORULES
static int
KW_MATCH
static int
KW_MOD
static int
KW_MOVE
static int
KW_MUT
static int
KW_OVERRIDE
static int
KW_PRIV
static int
KW_PUB
static int
KW_REF
static int
KW_RETURN
static int
KW_SELFTYPE
static int
KW_SELFVALUE
static int
KW_STATIC
static int
KW_STATICLIFETIME
static int
KW_STRUCT
static int
KW_SUPER
static int
KW_TRAIT
static int
KW_TRUE
static int
KW_TRY
static int
KW_TYPE
static int
KW_TYPEOF
static int
KW_UNDERLINELIFETIME
static int
KW_UNION
static int
KW_UNSAFE
static int
KW_UNSIZED
static int
KW_USE
static int
KW_VIRTUAL
static int
KW_WHERE
static int
KW_WHILE
static int
KW_YIELD
static int
LCURLYBRACE
static int
LE
static int
LIFETIME_OR_LABEL
static int
LINE_COMMENT
static int
LPAREN
static int
LSQUAREBRACKET
static int
LT
static int
MINUS
static int
MINUSEQ
static String[]
modeNames
static int
NE
static int
NEWLINE
static int
NON_KEYWORD_IDENTIFIER
static int
NOT
static int
OCT_LITERAL
static int
OR
static int
OREQ
static int
OROR
static int
OUTER_BLOCK_DOC
static int
OUTER_LINE_DOC
static int
PATHSEP
static int
PERCENT
static int
PERCENTEQ
static int
PLUS
static int
PLUSEQ
static int
POUND
static int
QUESTION
static int
RARROW
static int
RAW_BYTE_STRING_LITERAL
static int
RAW_IDENTIFIER
static int
RAW_STRING_LITERAL
static int
RCURLYBRACE
static int
RPAREN
static int
RSQUAREBRACKET
static String[]
ruleNames
static int
SEMI
static int
SHEBANG
static int
SHLEQ
static int
SHREQ
static int
SLASH
static int
SLASHEQ
static int
STAR
static int
STAREQ
static int
STRING_LITERAL
static String[]
tokenNames
Deprecated.UseVOCABULARY
instead.static int
UNDERSCORE
static org.antlr.v4.runtime.Vocabulary
VOCABULARY
static int
WHITESPACE
-
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 boolean
floatDotPossible()
boolean
floatLiteralPossible()
org.antlr.v4.runtime.atn.ATN
getATN()
String[]
getChannelNames()
String
getGrammarFileName()
String[]
getModeNames()
String[]
getRuleNames()
String
getSerializedATN()
String[]
getTokenNames()
Deprecated.org.antlr.v4.runtime.Vocabulary
getVocabulary()
boolean
next(char expect)
org.antlr.v4.runtime.Token
nextToken()
boolean
sempred(org.antlr.v4.runtime.RuleContext _localctx, int ruleIndex, int predIndex)
boolean
SOF()
-
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.UseVOCABULARY
instead.
-
_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:
getTokenNames
in classorg.antlr.v4.runtime.Lexer
-
getVocabulary
public org.antlr.v4.runtime.Vocabulary getVocabulary()
- Overrides:
getVocabulary
in classorg.antlr.v4.runtime.Recognizer<Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
nextToken
public org.antlr.v4.runtime.Token nextToken()
- Specified by:
nextToken
in interfaceorg.antlr.v4.runtime.TokenSource
- Overrides:
nextToken
in 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:
getGrammarFileName
in classorg.antlr.v4.runtime.Recognizer<Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
getRuleNames
public String[] getRuleNames()
- Specified by:
getRuleNames
in classorg.antlr.v4.runtime.Recognizer<Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
getSerializedATN
public String getSerializedATN()
- Overrides:
getSerializedATN
in classorg.antlr.v4.runtime.Recognizer<Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
getChannelNames
public String[] getChannelNames()
- Overrides:
getChannelNames
in classorg.antlr.v4.runtime.Lexer
-
getModeNames
public String[] getModeNames()
- Overrides:
getModeNames
in classorg.antlr.v4.runtime.Lexer
-
getATN
public org.antlr.v4.runtime.atn.ATN getATN()
- Specified by:
getATN
in 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:
sempred
in classorg.antlr.v4.runtime.Recognizer<Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
-