public class GroovyLexer extends AbstractLexer
Modifier and Type | Field and Description |
---|---|
static org.antlr.v4.runtime.atn.ATN |
_ATN |
static String |
_serializedATN |
static int |
ABSTRACT |
static int |
ADD |
static int |
ADD_ASSIGN |
static int |
AND |
static int |
AND_ASSIGN |
static int |
ARROW |
static int |
AS |
static int |
ASSERT |
static int |
ASSIGN |
static int |
AT |
static int |
BITAND |
static int |
BITNOT |
static int |
BITOR |
static int |
BooleanLiteral |
static int |
BREAK |
static int |
BuiltInPrimitiveType |
static int |
CapitalizedIdentifier |
static int |
CASE |
static int |
CATCH |
static String[] |
channelNames |
static int |
CLASS |
static int |
COLON |
static int |
COMMA |
static int |
CONST |
static int |
CONTINUE |
static int |
DEC |
static int |
DEF |
static int |
DEFAULT |
static int |
DIV |
static int |
DIV_ASSIGN |
static int |
DO |
static int |
DOLLAR_SLASHY_GSTRING_MODE |
static int |
DOT |
static int |
DQ_GSTRING_MODE |
static int |
ELLIPSIS |
static int |
ELSE |
static int |
ELVIS |
static int |
ELVIS_ASSIGN |
static int |
ENUM |
static int |
EQUAL |
static int |
EXTENDS |
static int |
FINAL |
static int |
FINALLY |
static int |
FloatingPointLiteral |
static int |
FOR |
static int |
GE |
static int |
GOTO |
static int |
GSTRING_PATH_MODE |
static int |
GSTRING_TYPE_SELECTOR_MODE |
static int |
GStringBegin |
static int |
GStringEnd |
static int |
GStringPart |
static int |
GStringPathPart |
static int |
GT |
static int |
IDENTICAL |
static int |
Identifier |
static int |
IF |
static int |
IMPLEMENTS |
static int |
IMPORT |
static int |
IN |
static int |
INC |
static int |
INSTANCEOF |
static int |
IntegerLiteral |
static int |
INTERFACE |
static int |
LBRACE |
static int |
LBRACK |
static int |
LE |
static int |
LPAREN |
static int |
LSHIFT_ASSIGN |
static int |
LT |
static int |
METHOD_POINTER |
static int |
METHOD_REFERENCE |
static int |
MOD |
static int |
MOD_ASSIGN |
static String[] |
modeNames |
static int |
MUL |
static int |
MUL_ASSIGN |
static int |
NATIVE |
static int |
NEW |
static int |
NL |
static int |
NOT |
static int |
NOT_IDENTICAL |
static int |
NOT_IN |
static int |
NOT_INSTANCEOF |
static int |
NOTEQUAL |
static int |
NullLiteral |
static int |
OR |
static int |
OR_ASSIGN |
static int |
PACKAGE |
static int |
POWER |
static int |
POWER_ASSIGN |
static int |
PRIVATE |
static int |
PROTECTED |
static int |
PUBLIC |
static int |
QUESTION |
static int |
RANGE_EXCLUSIVE |
static int |
RANGE_INCLUSIVE |
static int |
RBRACE |
static int |
RBRACK |
static int |
REGEX_FIND |
static int |
REGEX_MATCH |
static int |
RETURN |
static int |
RollBackOne |
static int |
RPAREN |
static int |
RSHIFT_ASSIGN |
static String[] |
ruleNames |
static int |
SAFE_CHAIN_DOT |
static int |
SAFE_DOT |
static int |
SEMI |
static int |
SH_COMMENT |
static int |
SLASHY_GSTRING_MODE |
static int |
SPACESHIP |
static int |
SPREAD_DOT |
static int |
STATIC |
static int |
STRICTFP |
static int |
StringLiteral |
static int |
SUB |
static int |
SUB_ASSIGN |
static int |
SUPER |
static int |
SWITCH |
static int |
SYNCHRONIZED |
static int |
TDQ_GSTRING_MODE |
static int |
THIS |
static int |
THREADSAFE |
static int |
THROW |
static int |
THROWS |
static String[] |
tokenNames
Deprecated.
Use
VOCABULARY instead. |
static int |
TRAIT |
static int |
TRANSIENT |
static int |
TRY |
static int |
UNEXPECTED_CHAR |
static int |
URSHIFT_ASSIGN |
static int |
VAR |
static org.antlr.v4.runtime.Vocabulary |
VOCABULARY |
static int |
VOID |
static int |
VOLATILE |
static int |
WHILE |
static int |
WS |
static int |
XOR |
static int |
XOR_ASSIGN |
_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 and Description |
---|
GroovyLexer(org.antlr.v4.runtime.CharStream input) |
Modifier and Type | Method and Description |
---|---|
void |
action(org.antlr.v4.runtime.RuleContext _localctx,
int ruleIndex,
int actionIndex) |
void |
emit(org.antlr.v4.runtime.Token token)
Record the index and token type of the current token while emitting tokens.
|
protected void |
enterParenCallback(String text) |
protected void |
exitParenCallback(String text) |
String[] |
getChannelNames() |
int |
getErrorColumn() |
int |
getErrorLine() |
String |
getGrammarFileName() |
String[] |
getModeNames() |
String[] |
getRuleNames() |
String |
getSerializedATN() |
int |
getSyntaxErrorSource() |
String[] |
getTokenNames()
Deprecated.
|
org.antlr.v4.runtime.Vocabulary |
getVocabulary() |
int |
popMode() |
protected void |
rollbackOneChar()
just a hook, which will be overrided by GroovyLangLexer
|
boolean |
sempred(org.antlr.v4.runtime.RuleContext _localctx,
int ruleIndex,
int predIndex) |
emit, emitEOF, getAllTokens, getChannel, getCharErrorDisplay, getCharIndex, getCharPositionInLine, getErrorDisplay, getErrorDisplay, getInputStream, getLine, getSourceName, getText, getToken, getTokenFactory, getType, mode, more, nextToken, notifyListeners, pushMode, recover, recover, reset, setChannel, setCharPositionInLine, setInputStream, setLine, setText, setToken, setTokenFactory, setType, skip, validateInputStream
addErrorListener, getATN, getErrorHeader, getErrorListenerDispatch, getErrorListeners, getInterpreter, getParseInfo, getRuleIndexMap, getState, getTokenErrorDisplay, getTokenType, getTokenTypeMap, precpred, removeErrorListener, removeErrorListeners, setInterpreter, setState
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
genPositionInfo, require, require, require, require, throwSyntaxError
public static final int StringLiteral
public static final int GStringBegin
public static final int GStringEnd
public static final int GStringPart
public static final int GStringPathPart
public static final int RollBackOne
public static final int AS
public static final int DEF
public static final int IN
public static final int TRAIT
public static final int THREADSAFE
public static final int VAR
public static final int BuiltInPrimitiveType
public static final int ABSTRACT
public static final int ASSERT
public static final int BREAK
public static final int CASE
public static final int CATCH
public static final int CLASS
public static final int CONST
public static final int CONTINUE
public static final int DEFAULT
public static final int DO
public static final int ELSE
public static final int ENUM
public static final int EXTENDS
public static final int FINAL
public static final int FINALLY
public static final int FOR
public static final int IF
public static final int GOTO
public static final int IMPLEMENTS
public static final int IMPORT
public static final int INSTANCEOF
public static final int INTERFACE
public static final int NATIVE
public static final int NEW
public static final int PACKAGE
public static final int PRIVATE
public static final int PROTECTED
public static final int PUBLIC
public static final int RETURN
public static final int STATIC
public static final int STRICTFP
public static final int SUPER
public static final int SWITCH
public static final int SYNCHRONIZED
public static final int THIS
public static final int THROW
public static final int THROWS
public static final int TRANSIENT
public static final int TRY
public static final int VOID
public static final int VOLATILE
public static final int WHILE
public static final int IntegerLiteral
public static final int FloatingPointLiteral
public static final int BooleanLiteral
public static final int NullLiteral
public static final int RANGE_INCLUSIVE
public static final int RANGE_EXCLUSIVE
public static final int SPREAD_DOT
public static final int SAFE_DOT
public static final int SAFE_CHAIN_DOT
public static final int ELVIS
public static final int METHOD_POINTER
public static final int METHOD_REFERENCE
public static final int REGEX_FIND
public static final int REGEX_MATCH
public static final int POWER
public static final int POWER_ASSIGN
public static final int SPACESHIP
public static final int IDENTICAL
public static final int NOT_IDENTICAL
public static final int ARROW
public static final int NOT_INSTANCEOF
public static final int NOT_IN
public static final int LPAREN
public static final int RPAREN
public static final int LBRACE
public static final int RBRACE
public static final int LBRACK
public static final int RBRACK
public static final int SEMI
public static final int COMMA
public static final int DOT
public static final int ASSIGN
public static final int GT
public static final int LT
public static final int NOT
public static final int BITNOT
public static final int QUESTION
public static final int COLON
public static final int EQUAL
public static final int LE
public static final int GE
public static final int NOTEQUAL
public static final int AND
public static final int OR
public static final int INC
public static final int DEC
public static final int ADD
public static final int SUB
public static final int MUL
public static final int DIV
public static final int BITAND
public static final int BITOR
public static final int XOR
public static final int MOD
public static final int ADD_ASSIGN
public static final int SUB_ASSIGN
public static final int MUL_ASSIGN
public static final int DIV_ASSIGN
public static final int AND_ASSIGN
public static final int OR_ASSIGN
public static final int XOR_ASSIGN
public static final int MOD_ASSIGN
public static final int LSHIFT_ASSIGN
public static final int RSHIFT_ASSIGN
public static final int URSHIFT_ASSIGN
public static final int ELVIS_ASSIGN
public static final int CapitalizedIdentifier
public static final int Identifier
public static final int AT
public static final int ELLIPSIS
public static final int WS
public static final int NL
public static final int SH_COMMENT
public static final int UNEXPECTED_CHAR
public static final int DQ_GSTRING_MODE
public static final int TDQ_GSTRING_MODE
public static final int SLASHY_GSTRING_MODE
public static final int DOLLAR_SLASHY_GSTRING_MODE
public static final int GSTRING_TYPE_SELECTOR_MODE
public static final int GSTRING_PATH_MODE
public static String[] channelNames
public static String[] modeNames
public static final String[] ruleNames
public static final org.antlr.v4.runtime.Vocabulary VOCABULARY
@Deprecated public static final String[] tokenNames
VOCABULARY
instead.public static final String _serializedATN
public static final org.antlr.v4.runtime.atn.ATN _ATN
@Deprecated public String[] getTokenNames()
getTokenNames
in class org.antlr.v4.runtime.Lexer
@NotNull public org.antlr.v4.runtime.Vocabulary getVocabulary()
getVocabulary
in class org.antlr.v4.runtime.Recognizer<Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
public void emit(org.antlr.v4.runtime.Token token)
emit
in class org.antlr.v4.runtime.Lexer
protected void rollbackOneChar()
protected void enterParenCallback(String text)
protected void exitParenCallback(String text)
public int getSyntaxErrorSource()
public int getErrorLine()
public int getErrorColumn()
public int popMode()
popMode
in class org.antlr.v4.runtime.Lexer
public String getGrammarFileName()
getGrammarFileName
in class org.antlr.v4.runtime.Recognizer<Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
public String[] getRuleNames()
getRuleNames
in class org.antlr.v4.runtime.Recognizer<Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
public String getSerializedATN()
getSerializedATN
in class org.antlr.v4.runtime.Recognizer<Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
@NotNull public String[] getChannelNames()
getChannelNames
in class org.antlr.v4.runtime.Lexer
@NotNull public String[] getModeNames()
getModeNames
in class org.antlr.v4.runtime.Lexer
public void action(org.antlr.v4.runtime.RuleContext _localctx, int ruleIndex, int actionIndex)
action
in class org.antlr.v4.runtime.Recognizer<Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
public boolean sempred(org.antlr.v4.runtime.RuleContext _localctx, int ruleIndex, int predIndex)
sempred
in class org.antlr.v4.runtime.Recognizer<Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>