Package org.apache.groovy.parser.antlr4
Class GroovyLexer
java.lang.Object
org.antlr.v4.runtime.Recognizer<Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
org.antlr.v4.runtime.Lexer
org.apache.groovy.parser.antlr4.AbstractLexer
org.apache.groovy.parser.antlr4.GroovyLexer
- All Implemented Interfaces:
org.antlr.v4.runtime.TokenSource
,SyntaxErrorReportable
- Direct Known Subclasses:
GroovyLangLexer
-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.antlr.v4.runtime.atn.ATN
static final String
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static String[]
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static String[]
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final String[]
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final String[]
Deprecated.static final int
static final int
static final int
static final int
static final int
static final int
static final org.antlr.v4.runtime.Vocabulary
static final int
static final int
static final int
static final int
static final int
static final int
static final int
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
Fields inherited from class org.antlr.v4.runtime.Recognizer
_interp, EOF
Fields inherited from interface org.apache.groovy.parser.antlr4.SyntaxErrorReportable
NO_OFFSET
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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[]
int
int
String[]
String[]
int
String[]
Deprecated.org.antlr.v4.runtime.Vocabulary
boolean
int
popMode()
protected void
just a hook, which will be overrided by GroovyLangLexerboolean
sempred
(org.antlr.v4.runtime.RuleContext _localctx, int ruleIndex, int predIndex) void
setErrorIgnored
(boolean errorIgnored) Methods inherited from class org.antlr.v4.runtime.Lexer
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
Methods inherited from class org.antlr.v4.runtime.Recognizer
addErrorListener, getATN, getErrorHeader, getErrorListenerDispatch, getErrorListeners, getInterpreter, getParseInfo, getRuleIndexMap, getState, getTokenErrorDisplay, getTokenType, getTokenTypeMap, precpred, removeErrorListener, removeErrorListeners, setInterpreter, setState
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.groovy.parser.antlr4.SyntaxErrorReportable
genPositionInfo, genPositionInfo, require, require, require, require, require, require, throwSyntaxError, throwSyntaxError
-
Field Details
-
StringLiteral
public static final int StringLiteral- See Also:
-
GStringBegin
public static final int GStringBegin- See Also:
-
GStringEnd
public static final int GStringEnd- See Also:
-
GStringPart
public static final int GStringPart- See Also:
-
GStringPathPart
public static final int GStringPathPart- See Also:
-
RollBackOne
public static final int RollBackOne- See Also:
-
AS
public static final int AS- See Also:
-
DEF
public static final int DEF- See Also:
-
IN
public static final int IN- See Also:
-
TRAIT
public static final int TRAIT- See Also:
-
THREADSAFE
public static final int THREADSAFE- See Also:
-
VAR
public static final int VAR- See Also:
-
BuiltInPrimitiveType
public static final int BuiltInPrimitiveType- See Also:
-
ABSTRACT
public static final int ABSTRACT- See Also:
-
ASSERT
public static final int ASSERT- See Also:
-
BREAK
public static final int BREAK- See Also:
-
YIELD
public static final int YIELD- See Also:
-
CASE
public static final int CASE- See Also:
-
CATCH
public static final int CATCH- See Also:
-
CLASS
public static final int CLASS- See Also:
-
CONST
public static final int CONST- See Also:
-
CONTINUE
public static final int CONTINUE- See Also:
-
DEFAULT
public static final int DEFAULT- See Also:
-
DO
public static final int DO- See Also:
-
ELSE
public static final int ELSE- See Also:
-
ENUM
public static final int ENUM- See Also:
-
EXTENDS
public static final int EXTENDS- See Also:
-
FINAL
public static final int FINAL- See Also:
-
FINALLY
public static final int FINALLY- See Also:
-
FOR
public static final int FOR- See Also:
-
IF
public static final int IF- See Also:
-
GOTO
public static final int GOTO- See Also:
-
IMPLEMENTS
public static final int IMPLEMENTS- See Also:
-
IMPORT
public static final int IMPORT- See Also:
-
INSTANCEOF
public static final int INSTANCEOF- See Also:
-
INTERFACE
public static final int INTERFACE- See Also:
-
NATIVE
public static final int NATIVE- See Also:
-
NEW
public static final int NEW- See Also:
-
NON_SEALED
public static final int NON_SEALED- See Also:
-
PACKAGE
public static final int PACKAGE- See Also:
-
PERMITS
public static final int PERMITS- See Also:
-
PRIVATE
public static final int PRIVATE- See Also:
-
PROTECTED
public static final int PROTECTED- See Also:
-
PUBLIC
public static final int PUBLIC- See Also:
-
RECORD
public static final int RECORD- See Also:
-
RETURN
public static final int RETURN- See Also:
-
SEALED
public static final int SEALED- See Also:
-
STATIC
public static final int STATIC- See Also:
-
STRICTFP
public static final int STRICTFP- See Also:
-
SUPER
public static final int SUPER- See Also:
-
SWITCH
public static final int SWITCH- See Also:
-
SYNCHRONIZED
public static final int SYNCHRONIZED- See Also:
-
THIS
public static final int THIS- See Also:
-
THROW
public static final int THROW- See Also:
-
THROWS
public static final int THROWS- See Also:
-
TRANSIENT
public static final int TRANSIENT- See Also:
-
TRY
public static final int TRY- See Also:
-
VOID
public static final int VOID- See Also:
-
VOLATILE
public static final int VOLATILE- See Also:
-
WHILE
public static final int WHILE- See Also:
-
IntegerLiteral
public static final int IntegerLiteral- See Also:
-
FloatingPointLiteral
public static final int FloatingPointLiteral- See Also:
-
BooleanLiteral
public static final int BooleanLiteral- See Also:
-
NullLiteral
public static final int NullLiteral- See Also:
-
RANGE_INCLUSIVE
public static final int RANGE_INCLUSIVE- See Also:
-
RANGE_EXCLUSIVE_LEFT
public static final int RANGE_EXCLUSIVE_LEFT- See Also:
-
RANGE_EXCLUSIVE_RIGHT
public static final int RANGE_EXCLUSIVE_RIGHT- See Also:
-
RANGE_EXCLUSIVE_FULL
public static final int RANGE_EXCLUSIVE_FULL- See Also:
-
SPREAD_DOT
public static final int SPREAD_DOT- See Also:
-
SAFE_DOT
public static final int SAFE_DOT- See Also:
-
SAFE_INDEX
public static final int SAFE_INDEX- See Also:
-
SAFE_CHAIN_DOT
public static final int SAFE_CHAIN_DOT- See Also:
-
ELVIS
public static final int ELVIS- See Also:
-
METHOD_POINTER
public static final int METHOD_POINTER- See Also:
-
METHOD_REFERENCE
public static final int METHOD_REFERENCE- See Also:
-
REGEX_FIND
public static final int REGEX_FIND- See Also:
-
REGEX_MATCH
public static final int REGEX_MATCH- See Also:
-
POWER
public static final int POWER- See Also:
-
POWER_ASSIGN
public static final int POWER_ASSIGN- See Also:
-
SPACESHIP
public static final int SPACESHIP- See Also:
-
IDENTICAL
public static final int IDENTICAL- See Also:
-
NOT_IDENTICAL
public static final int NOT_IDENTICAL- See Also:
-
ARROW
public static final int ARROW- See Also:
-
NOT_INSTANCEOF
public static final int NOT_INSTANCEOF- See Also:
-
NOT_IN
public static final int NOT_IN- See Also:
-
LPAREN
public static final int LPAREN- See Also:
-
RPAREN
public static final int RPAREN- See Also:
-
LBRACE
public static final int LBRACE- See Also:
-
RBRACE
public static final int RBRACE- See Also:
-
LBRACK
public static final int LBRACK- See Also:
-
RBRACK
public static final int RBRACK- See Also:
-
SEMI
public static final int SEMI- See Also:
-
COMMA
public static final int COMMA- See Also:
-
DOT
public static final int DOT- See Also:
-
ASSIGN
public static final int ASSIGN- See Also:
-
GT
public static final int GT- See Also:
-
LT
public static final int LT- See Also:
-
NOT
public static final int NOT- See Also:
-
BITNOT
public static final int BITNOT- See Also:
-
QUESTION
public static final int QUESTION- See Also:
-
COLON
public static final int COLON- See Also:
-
EQUAL
public static final int EQUAL- See Also:
-
LE
public static final int LE- See Also:
-
GE
public static final int GE- See Also:
-
NOTEQUAL
public static final int NOTEQUAL- See Also:
-
AND
public static final int AND- See Also:
-
OR
public static final int OR- See Also:
-
INC
public static final int INC- See Also:
-
DEC
public static final int DEC- See Also:
-
ADD
public static final int ADD- See Also:
-
SUB
public static final int SUB- See Also:
-
MUL
public static final int MUL- See Also:
-
DIV
public static final int DIV- See Also:
-
BITAND
public static final int BITAND- See Also:
-
BITOR
public static final int BITOR- See Also:
-
XOR
public static final int XOR- See Also:
-
MOD
public static final int MOD- See Also:
-
ADD_ASSIGN
public static final int ADD_ASSIGN- See Also:
-
SUB_ASSIGN
public static final int SUB_ASSIGN- See Also:
-
MUL_ASSIGN
public static final int MUL_ASSIGN- See Also:
-
DIV_ASSIGN
public static final int DIV_ASSIGN- See Also:
-
AND_ASSIGN
public static final int AND_ASSIGN- See Also:
-
OR_ASSIGN
public static final int OR_ASSIGN- See Also:
-
XOR_ASSIGN
public static final int XOR_ASSIGN- See Also:
-
MOD_ASSIGN
public static final int MOD_ASSIGN- See Also:
-
LSHIFT_ASSIGN
public static final int LSHIFT_ASSIGN- See Also:
-
RSHIFT_ASSIGN
public static final int RSHIFT_ASSIGN- See Also:
-
URSHIFT_ASSIGN
public static final int URSHIFT_ASSIGN- See Also:
-
ELVIS_ASSIGN
public static final int ELVIS_ASSIGN- See Also:
-
CapitalizedIdentifier
public static final int CapitalizedIdentifier- See Also:
-
Identifier
public static final int Identifier- See Also:
-
AT
public static final int AT- See Also:
-
ELLIPSIS
public static final int ELLIPSIS- See Also:
-
WS
public static final int WS- See Also:
-
NL
public static final int NL- See Also:
-
SH_COMMENT
public static final int SH_COMMENT- See Also:
-
UNEXPECTED_CHAR
public static final int UNEXPECTED_CHAR- See Also:
-
DQ_GSTRING_MODE
public static final int DQ_GSTRING_MODE- See Also:
-
TDQ_GSTRING_MODE
public static final int TDQ_GSTRING_MODE- See Also:
-
SLASHY_GSTRING_MODE
public static final int SLASHY_GSTRING_MODE- See Also:
-
DOLLAR_SLASHY_GSTRING_MODE
public static final int DOLLAR_SLASHY_GSTRING_MODE- See Also:
-
GSTRING_TYPE_SELECTOR_MODE
public static final int GSTRING_TYPE_SELECTOR_MODE- See Also:
-
GSTRING_PATH_MODE
public static final int GSTRING_PATH_MODE- See Also:
-
channelNames
-
modeNames
-
ruleNames
-
VOCABULARY
public static final org.antlr.v4.runtime.Vocabulary VOCABULARY -
tokenNames
Deprecated.UseVOCABULARY
instead. -
_serializedATN
- See Also:
-
_ATN
public static final org.antlr.v4.runtime.atn.ATN _ATN
-
-
Constructor Details
-
GroovyLexer
public GroovyLexer(org.antlr.v4.runtime.CharStream input)
-
-
Method Details
-
getTokenNames
Deprecated.- Overrides:
getTokenNames
in classorg.antlr.v4.runtime.Lexer
-
getVocabulary
@NotNull public org.antlr.v4.runtime.Vocabulary getVocabulary()- Overrides:
getVocabulary
in classorg.antlr.v4.runtime.Recognizer<Integer,
org.antlr.v4.runtime.atn.LexerATNSimulator>
-
emit
public void emit(org.antlr.v4.runtime.Token token) Record the index and token type of the current token while emitting tokens.- Overrides:
emit
in classorg.antlr.v4.runtime.Lexer
-
rollbackOneChar
protected void rollbackOneChar()just a hook, which will be overrided by GroovyLangLexer -
enterParenCallback
-
exitParenCallback
-
getSyntaxErrorSource
public int getSyntaxErrorSource() -
getErrorLine
public int getErrorLine() -
getErrorColumn
public int getErrorColumn() -
popMode
public int popMode()- Overrides:
popMode
in classorg.antlr.v4.runtime.Lexer
-
isErrorIgnored
public boolean isErrorIgnored() -
setErrorIgnored
public void setErrorIgnored(boolean errorIgnored) -
getGrammarFileName
- Specified by:
getGrammarFileName
in classorg.antlr.v4.runtime.Recognizer<Integer,
org.antlr.v4.runtime.atn.LexerATNSimulator>
-
getRuleNames
- Specified by:
getRuleNames
in classorg.antlr.v4.runtime.Recognizer<Integer,
org.antlr.v4.runtime.atn.LexerATNSimulator>
-
getSerializedATN
- Overrides:
getSerializedATN
in classorg.antlr.v4.runtime.Recognizer<Integer,
org.antlr.v4.runtime.atn.LexerATNSimulator>
-
getChannelNames
- Overrides:
getChannelNames
in classorg.antlr.v4.runtime.Lexer
-
getModeNames
- Overrides:
getModeNames
in classorg.antlr.v4.runtime.Lexer
-
action
public void action(org.antlr.v4.runtime.RuleContext _localctx, int ruleIndex, int actionIndex) - Overrides:
action
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>
-
VOCABULARY
instead.