Class JavaLanguageLexer
- java.lang.Object
-
- org.antlr.v4.runtime.Recognizer<java.lang.Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
- org.antlr.v4.runtime.Lexer
-
- com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageLexer
-
- All Implemented Interfaces:
org.antlr.v4.runtime.TokenSource
public class JavaLanguageLexer 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
private static java.lang.String[]
_LITERAL_NAMES
static java.lang.String
_serializedATN
protected static org.antlr.v4.runtime.atn.PredictionContextCache
_sharedContextCache
private static java.lang.String[]
_SYMBOLIC_NAMES
static int
ABSTRACT
static int
ANNOTATION
static int
ANNOTATION_ARRAY_INIT
static int
ANNOTATION_DEF
static int
ANNOTATION_FIELD_DEF
static int
ANNOTATION_MEMBER_VALUE_PAIR
static int
ANNOTATIONS
static int
ARRAY_DECLARATOR
static int
ARRAY_INIT
static int
ASSERT
static int
ASSIGN
static int
AT
static int
BAND
static int
BAND_ASSIGN
static int
BINARY_DIGIT
static int
BINARY_EXPONENT
static int
BINARY_LITERAL
static int
BINARY_LITERAL_LONG
static int
BLOCK
static int
BLOCK_COMMENT_BEGIN
static int
BLOCK_COMMENT_CONTENT
static int
BLOCK_COMMENT_END
static int
BNOT
static int
BOR
static int
BOR_ASSIGN
static int
BSR
static int
BSR_ASSIGN
static int
BXOR
static int
BXOR_ASSIGN
static int
CASE_GROUP
static java.lang.String[]
channelNames
static int
CHAR_LITERAL
static int
CLASS_DEF
static int
COLON
static int
COMMA
static int
COMMENT_CONTENT
private CommentListener
commentListener
static int
COMMENTS
static int
COMPACT_CTOR_DEF
static int
COMPILATION_UNIT
static int
CTOR_CALL
static int
CTOR_DEF
static int
DEC
static int
DECIMAL_LITERAL
static int
DECIMAL_LITERAL_LONG
static int
DIV
static int
DIV_ASSIGN
static int
DO_WHILE
static int
DOT
static int
DOUBLE_COLON
static int
DOUBLE_LITERAL
static int
ELIST
static int
ELLIPSIS
static int
EMPTY_STAT
static int
ENUM
static int
ENUM_CONSTANT_DEF
static int
ENUM_DEF
static int
EQUAL
static int
ESC
static int
EXPONENT
static int
EXPR
static int
EXTENDS_CLAUSE
static int
FINAL
static int
FLOAT_LITERAL
static int
FLOAT_SUFFIX
static int
FOR_CONDITION
static int
FOR_EACH_CLAUSE
static int
FOR_INIT
static int
FOR_ITERATOR
static int
GE
static int
GENERIC_END
static int
GENERIC_START
static int
GT
static int
HEX_DIGIT
static int
HEX_DOUBLE_LITERAL
static int
HEX_FLOAT_LITERAL
static int
HEX_LITERAL
static int
HEX_LITERAL_LONG
static int
ID_PART
static int
ID_START
static int
IDENT
static int
IMPLEMENTS_CLAUSE
static int
IMPORT
static int
INC
static int
INDEX_OP
static int
INSTANCE_INIT
static int
INT_LITERAL
static int
INTERFACE_DEF
static int
LABELED_STAT
static int
LAMBDA
static int
LAND
static int
LBRACK
static int
LCURLY
static int
LE
static int
LITERAL_BOOLEAN
static int
LITERAL_BREAK
static int
LITERAL_BYTE
static int
LITERAL_CASE
static int
LITERAL_CATCH
static int
LITERAL_CHAR
static int
LITERAL_CLASS
static int
LITERAL_CONST
static int
LITERAL_CONTINUE
static int
LITERAL_DEFAULT
static int
LITERAL_DO
static int
LITERAL_DOUBLE
static int
LITERAL_ELSE
static int
LITERAL_EXTENDS
static int
LITERAL_FALSE
static int
LITERAL_FINALLY
static int
LITERAL_FLOAT
static int
LITERAL_FOR
static int
LITERAL_GOTO
static int
LITERAL_IF
static int
LITERAL_IMPLEMENTS
static int
LITERAL_IMPORT
static int
LITERAL_INSTANCEOF
static int
LITERAL_INT
static int
LITERAL_INTERFACE
static int
LITERAL_LONG
static int
LITERAL_NATIVE
static int
LITERAL_NEW
static int
LITERAL_NON_SEALED
static int
LITERAL_NULL
static int
LITERAL_PACKAGE
static int
LITERAL_PERMITS
static int
LITERAL_PRIVATE
static int
LITERAL_PROTECTED
static int
LITERAL_PUBLIC
static int
LITERAL_RECORD
static int
LITERAL_RETURN
static int
LITERAL_SEALED
static int
LITERAL_SHORT
static int
LITERAL_STATIC
static int
LITERAL_SUPER
static int
LITERAL_SWITCH
static int
LITERAL_SYNCHRONIZED
static int
LITERAL_THIS
static int
LITERAL_THROW
static int
LITERAL_THROWS
static int
LITERAL_TRANSIENT
static int
LITERAL_TRUE
static int
LITERAL_TRY
static int
LITERAL_VOID
static int
LITERAL_VOLATILE
static int
LITERAL_WHILE
static int
LITERAL_YIELD
static int
LNOT
static int
LONG_LITERAL
static int
LOR
static int
LPAREN
static int
LT
static int
METHOD_CALL
static int
METHOD_DEF
static int
METHOD_REF
static int
MINUS
static int
MINUS_ASSIGN
static int
MOD
static int
MOD_ASSIGN
static java.lang.String[]
modeNames
static int
MODIFIERS
static int
NOT_EQUAL
static int
NULL_TREE_LOOKAHEAD
static int
NUM_DOUBLE
static int
NUM_FLOAT
static int
NUM_INT
static int
NUM_LONG
static int
OBJBLOCK
static int
OCT_LITERAL
static int
OCT_LITERAL_LONG
static int
PACKAGE_DEF
static int
PARAMETER_DEF
static int
PARAMETERS
static int
PATTERN_DEF
static int
PATTERN_VARIABLE_DEF
static int
PERMITS_CLAUSE
static int
PLACEHOLDER1
static int
PLUS
static int
PLUS_ASSIGN
static int
POST_DEC
static int
POST_INC
static int
QUESTION
static int
RBRACK
static int
RCURLY
static int
RECORD_COMPONENT_DEF
static int
RECORD_COMPONENTS
static int
RECORD_DEF
static int
RESOURCE
static int
RESOURCE_SPECIFICATION
static int
RESOURCES
static int
RPAREN
static java.lang.String[]
ruleNames
static int
SEMI
static int
SIGNED_INTEGER
static int
SINGLE_LINE_COMMENT
static int
SINGLE_LINE_COMMENT_CONTENT
static int
SL
static int
SL_ASSIGN
static int
SLIST
static int
SR
static int
SR_ASSIGN
static int
STAR
static int
STAR_ASSIGN
(package private) int
startCol
Tracks the starting column of a block comment.(package private) int
startLine
Tracks the starting line of a block comment.static int
STATIC_IMPORT
static int
STATIC_INIT
static int
STD_ESC
static int
STRICTFP
static int
STRING_LITERAL
static int
SUPER_CTOR_CALL
static int
SWITCH_RULE
static int
TEXT_BLOCK_CONTENT
static int
TEXT_BLOCK_LITERAL_BEGIN
static int
TEXT_BLOCK_LITERAL_END
static int
TextBlock
static java.lang.String[]
tokenNames
Deprecated.UseVOCABULARY
instead.static int
TYPE
static int
TYPE_ARGUMENT
static int
TYPE_ARGUMENTS
static int
TYPE_EXTENSION_AND
static int
TYPE_LOWER_BOUNDS
static int
TYPE_PARAMETER
static int
TYPE_PARAMETERS
static int
TYPE_UPPER_BOUNDS
static int
TYPECAST
static int
UNARY_MINUS
static int
UNARY_PLUS
static int
VARIABLE_DEF
static int
VOCAB
static org.antlr.v4.runtime.Vocabulary
VOCABULARY
static int
WILDCARD_TYPE
static int
WS
-
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 JavaLanguageLexer(org.antlr.v4.runtime.CharStream input)
JavaLanguageLexer(org.antlr.v4.runtime.CharStream input, boolean crAwareConstructor)
We need to create a different constructor in order to use our own implementation of the LexerATNSimulator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
action(org.antlr.v4.runtime.RuleContext _localctx, int ruleIndex, int actionIndex)
private void
BLOCK_COMMENT_BEGIN_action(org.antlr.v4.runtime.RuleContext _localctx, int actionIndex)
org.antlr.v4.runtime.atn.ATN
getATN()
java.lang.String[]
getChannelNames()
java.lang.String
getGrammarFileName()
java.lang.String[]
getModeNames()
java.lang.String[]
getRuleNames()
java.lang.String
getSerializedATN()
java.lang.String[]
getTokenNames()
Deprecated.org.antlr.v4.runtime.Vocabulary
getVocabulary()
private static java.lang.String[]
makeLiteralNames()
private static java.lang.String[]
makeRuleNames()
private static java.lang.String[]
makeSymbolicNames()
void
setCommentListener(CommentListener commentListener)
Sets the CommentListener for the lexer.private void
SINGLE_LINE_COMMENT_action(org.antlr.v4.runtime.RuleContext _localctx, int actionIndex)
-
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
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
-
COMPILATION_UNIT
public static final int COMPILATION_UNIT
- See Also:
- Constant Field Values
-
PLACEHOLDER1
public static final int PLACEHOLDER1
- See Also:
- Constant Field Values
-
NULL_TREE_LOOKAHEAD
public static final int NULL_TREE_LOOKAHEAD
- See Also:
- Constant Field Values
-
BLOCK
public static final int BLOCK
- See Also:
- Constant Field Values
-
MODIFIERS
public static final int MODIFIERS
- See Also:
- Constant Field Values
-
OBJBLOCK
public static final int OBJBLOCK
- See Also:
- Constant Field Values
-
SLIST
public static final int SLIST
- See Also:
- Constant Field Values
-
CTOR_DEF
public static final int CTOR_DEF
- See Also:
- Constant Field Values
-
METHOD_DEF
public static final int METHOD_DEF
- See Also:
- Constant Field Values
-
VARIABLE_DEF
public static final int VARIABLE_DEF
- See Also:
- Constant Field Values
-
INSTANCE_INIT
public static final int INSTANCE_INIT
- See Also:
- Constant Field Values
-
STATIC_INIT
public static final int STATIC_INIT
- See Also:
- Constant Field Values
-
TYPE
public static final int TYPE
- See Also:
- Constant Field Values
-
CLASS_DEF
public static final int CLASS_DEF
- See Also:
- Constant Field Values
-
INTERFACE_DEF
public static final int INTERFACE_DEF
- See Also:
- Constant Field Values
-
PACKAGE_DEF
public static final int PACKAGE_DEF
- See Also:
- Constant Field Values
-
ARRAY_DECLARATOR
public static final int ARRAY_DECLARATOR
- See Also:
- Constant Field Values
-
EXTENDS_CLAUSE
public static final int EXTENDS_CLAUSE
- See Also:
- Constant Field Values
-
IMPLEMENTS_CLAUSE
public static final int IMPLEMENTS_CLAUSE
- See Also:
- Constant Field Values
-
PARAMETERS
public static final int PARAMETERS
- See Also:
- Constant Field Values
-
PARAMETER_DEF
public static final int PARAMETER_DEF
- See Also:
- Constant Field Values
-
LABELED_STAT
public static final int LABELED_STAT
- See Also:
- Constant Field Values
-
TYPECAST
public static final int TYPECAST
- See Also:
- Constant Field Values
-
INDEX_OP
public static final int INDEX_OP
- See Also:
- Constant Field Values
-
POST_INC
public static final int POST_INC
- See Also:
- Constant Field Values
-
POST_DEC
public static final int POST_DEC
- See Also:
- Constant Field Values
-
METHOD_CALL
public static final int METHOD_CALL
- See Also:
- Constant Field Values
-
EXPR
public static final int EXPR
- See Also:
- Constant Field Values
-
ARRAY_INIT
public static final int ARRAY_INIT
- See Also:
- Constant Field Values
-
IMPORT
public static final int IMPORT
- See Also:
- Constant Field Values
-
UNARY_MINUS
public static final int UNARY_MINUS
- See Also:
- Constant Field Values
-
UNARY_PLUS
public static final int UNARY_PLUS
- See Also:
- Constant Field Values
-
CASE_GROUP
public static final int CASE_GROUP
- See Also:
- Constant Field Values
-
ELIST
public static final int ELIST
- See Also:
- Constant Field Values
-
FOR_INIT
public static final int FOR_INIT
- See Also:
- Constant Field Values
-
FOR_CONDITION
public static final int FOR_CONDITION
- See Also:
- Constant Field Values
-
FOR_ITERATOR
public static final int FOR_ITERATOR
- See Also:
- Constant Field Values
-
EMPTY_STAT
public static final int EMPTY_STAT
- See Also:
- Constant Field Values
-
FINAL
public static final int FINAL
- See Also:
- Constant Field Values
-
ABSTRACT
public static final int ABSTRACT
- See Also:
- Constant Field Values
-
STRICTFP
public static final int STRICTFP
- See Also:
- Constant Field Values
-
SUPER_CTOR_CALL
public static final int SUPER_CTOR_CALL
- See Also:
- Constant Field Values
-
CTOR_CALL
public static final int CTOR_CALL
- See Also:
- Constant Field Values
-
LITERAL_PACKAGE
public static final int LITERAL_PACKAGE
- See Also:
- Constant Field Values
-
SEMI
public static final int SEMI
- See Also:
- Constant Field Values
-
LITERAL_IMPORT
public static final int LITERAL_IMPORT
- See Also:
- Constant Field Values
-
LBRACK
public static final int LBRACK
- See Also:
- Constant Field Values
-
RBRACK
public static final int RBRACK
- See Also:
- Constant Field Values
-
LITERAL_VOID
public static final int LITERAL_VOID
- See Also:
- Constant Field Values
-
LITERAL_BOOLEAN
public static final int LITERAL_BOOLEAN
- See Also:
- Constant Field Values
-
LITERAL_BYTE
public static final int LITERAL_BYTE
- See Also:
- Constant Field Values
-
LITERAL_CHAR
public static final int LITERAL_CHAR
- See Also:
- Constant Field Values
-
LITERAL_SHORT
public static final int LITERAL_SHORT
- See Also:
- Constant Field Values
-
LITERAL_INT
public static final int LITERAL_INT
- See Also:
- Constant Field Values
-
LITERAL_FLOAT
public static final int LITERAL_FLOAT
- See Also:
- Constant Field Values
-
LITERAL_LONG
public static final int LITERAL_LONG
- See Also:
- Constant Field Values
-
LITERAL_DOUBLE
public static final int LITERAL_DOUBLE
- See Also:
- Constant Field Values
-
IDENT
public static final int IDENT
- See Also:
- Constant Field Values
-
DOT
public static final int DOT
- See Also:
- Constant Field Values
-
STAR
public static final int STAR
- See Also:
- Constant Field Values
-
LITERAL_PRIVATE
public static final int LITERAL_PRIVATE
- See Also:
- Constant Field Values
-
LITERAL_PUBLIC
public static final int LITERAL_PUBLIC
- See Also:
- Constant Field Values
-
LITERAL_PROTECTED
public static final int LITERAL_PROTECTED
- See Also:
- Constant Field Values
-
LITERAL_STATIC
public static final int LITERAL_STATIC
- See Also:
- Constant Field Values
-
LITERAL_TRANSIENT
public static final int LITERAL_TRANSIENT
- See Also:
- Constant Field Values
-
LITERAL_NATIVE
public static final int LITERAL_NATIVE
- See Also:
- Constant Field Values
-
LITERAL_SYNCHRONIZED
public static final int LITERAL_SYNCHRONIZED
- See Also:
- Constant Field Values
-
LITERAL_VOLATILE
public static final int LITERAL_VOLATILE
- See Also:
- Constant Field Values
-
LITERAL_CLASS
public static final int LITERAL_CLASS
- See Also:
- Constant Field Values
-
LITERAL_EXTENDS
public static final int LITERAL_EXTENDS
- See Also:
- Constant Field Values
-
LITERAL_INTERFACE
public static final int LITERAL_INTERFACE
- 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
-
COMMA
public static final int COMMA
- See Also:
- Constant Field Values
-
LITERAL_IMPLEMENTS
public static final int LITERAL_IMPLEMENTS
- 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
-
LITERAL_THIS
public static final int LITERAL_THIS
- See Also:
- Constant Field Values
-
LITERAL_SUPER
public static final int LITERAL_SUPER
- See Also:
- Constant Field Values
-
ASSIGN
public static final int ASSIGN
- See Also:
- Constant Field Values
-
LITERAL_THROWS
public static final int LITERAL_THROWS
- See Also:
- Constant Field Values
-
COLON
public static final int COLON
- See Also:
- Constant Field Values
-
LITERAL_IF
public static final int LITERAL_IF
- See Also:
- Constant Field Values
-
LITERAL_WHILE
public static final int LITERAL_WHILE
- See Also:
- Constant Field Values
-
LITERAL_DO
public static final int LITERAL_DO
- See Also:
- Constant Field Values
-
LITERAL_BREAK
public static final int LITERAL_BREAK
- See Also:
- Constant Field Values
-
LITERAL_CONTINUE
public static final int LITERAL_CONTINUE
- See Also:
- Constant Field Values
-
LITERAL_RETURN
public static final int LITERAL_RETURN
- See Also:
- Constant Field Values
-
LITERAL_SWITCH
public static final int LITERAL_SWITCH
- See Also:
- Constant Field Values
-
LITERAL_THROW
public static final int LITERAL_THROW
- See Also:
- Constant Field Values
-
LITERAL_FOR
public static final int LITERAL_FOR
- See Also:
- Constant Field Values
-
LITERAL_ELSE
public static final int LITERAL_ELSE
- See Also:
- Constant Field Values
-
LITERAL_CASE
public static final int LITERAL_CASE
- See Also:
- Constant Field Values
-
LITERAL_DEFAULT
public static final int LITERAL_DEFAULT
- See Also:
- Constant Field Values
-
LITERAL_TRY
public static final int LITERAL_TRY
- See Also:
- Constant Field Values
-
LITERAL_CATCH
public static final int LITERAL_CATCH
- See Also:
- Constant Field Values
-
LITERAL_FINALLY
public static final int LITERAL_FINALLY
- See Also:
- Constant Field Values
-
PLUS_ASSIGN
public static final int PLUS_ASSIGN
- See Also:
- Constant Field Values
-
MINUS_ASSIGN
public static final int MINUS_ASSIGN
- See Also:
- Constant Field Values
-
STAR_ASSIGN
public static final int STAR_ASSIGN
- See Also:
- Constant Field Values
-
DIV_ASSIGN
public static final int DIV_ASSIGN
- See Also:
- Constant Field Values
-
MOD_ASSIGN
public static final int MOD_ASSIGN
- See Also:
- Constant Field Values
-
SR_ASSIGN
public static final int SR_ASSIGN
- See Also:
- Constant Field Values
-
BSR_ASSIGN
public static final int BSR_ASSIGN
- See Also:
- Constant Field Values
-
SL_ASSIGN
public static final int SL_ASSIGN
- See Also:
- Constant Field Values
-
BAND_ASSIGN
public static final int BAND_ASSIGN
- See Also:
- Constant Field Values
-
BXOR_ASSIGN
public static final int BXOR_ASSIGN
- See Also:
- Constant Field Values
-
BOR_ASSIGN
public static final int BOR_ASSIGN
- See Also:
- Constant Field Values
-
QUESTION
public static final int QUESTION
- See Also:
- Constant Field Values
-
LOR
public static final int LOR
- See Also:
- Constant Field Values
-
LAND
public static final int LAND
- See Also:
- Constant Field Values
-
BOR
public static final int BOR
- See Also:
- Constant Field Values
-
BXOR
public static final int BXOR
- See Also:
- Constant Field Values
-
BAND
public static final int BAND
- See Also:
- Constant Field Values
-
NOT_EQUAL
public static final int NOT_EQUAL
- See Also:
- Constant Field Values
-
EQUAL
public static final int EQUAL
- 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
-
LE
public static final int LE
- See Also:
- Constant Field Values
-
GE
public static final int GE
- See Also:
- Constant Field Values
-
LITERAL_INSTANCEOF
public static final int LITERAL_INSTANCEOF
- See Also:
- Constant Field Values
-
SL
public static final int SL
- See Also:
- Constant Field Values
-
SR
public static final int SR
- See Also:
- Constant Field Values
-
BSR
public static final int BSR
- 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
-
DIV
public static final int DIV
- See Also:
- Constant Field Values
-
MOD
public static final int MOD
- See Also:
- Constant Field Values
-
INC
public static final int INC
- See Also:
- Constant Field Values
-
DEC
public static final int DEC
- See Also:
- Constant Field Values
-
BNOT
public static final int BNOT
- See Also:
- Constant Field Values
-
LNOT
public static final int LNOT
- See Also:
- Constant Field Values
-
LITERAL_TRUE
public static final int LITERAL_TRUE
- See Also:
- Constant Field Values
-
LITERAL_FALSE
public static final int LITERAL_FALSE
- See Also:
- Constant Field Values
-
LITERAL_NULL
public static final int LITERAL_NULL
- See Also:
- Constant Field Values
-
LITERAL_NEW
public static final int LITERAL_NEW
- See Also:
- Constant Field Values
-
NUM_INT
public static final int NUM_INT
- 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
-
NUM_FLOAT
public static final int NUM_FLOAT
- See Also:
- Constant Field Values
-
NUM_LONG
public static final int NUM_LONG
- See Also:
- Constant Field Values
-
NUM_DOUBLE
public static final int NUM_DOUBLE
- See Also:
- Constant Field Values
-
WS
public static final int WS
- See Also:
- Constant Field Values
-
SINGLE_LINE_COMMENT
public static final int SINGLE_LINE_COMMENT
- See Also:
- Constant Field Values
-
BLOCK_COMMENT_BEGIN
public static final int BLOCK_COMMENT_BEGIN
- See Also:
- Constant Field Values
-
ESC
public static final int ESC
- See Also:
- Constant Field Values
-
HEX_DIGIT
public static final int HEX_DIGIT
- See Also:
- Constant Field Values
-
VOCAB
public static final int VOCAB
- See Also:
- Constant Field Values
-
EXPONENT
public static final int EXPONENT
- See Also:
- Constant Field Values
-
FLOAT_SUFFIX
public static final int FLOAT_SUFFIX
- See Also:
- Constant Field Values
-
ASSERT
public static final int ASSERT
- See Also:
- Constant Field Values
-
STATIC_IMPORT
public static final int STATIC_IMPORT
- See Also:
- Constant Field Values
-
ENUM
public static final int ENUM
- See Also:
- Constant Field Values
-
ENUM_DEF
public static final int ENUM_DEF
- See Also:
- Constant Field Values
-
ENUM_CONSTANT_DEF
public static final int ENUM_CONSTANT_DEF
- See Also:
- Constant Field Values
-
FOR_EACH_CLAUSE
public static final int FOR_EACH_CLAUSE
- See Also:
- Constant Field Values
-
ANNOTATION_DEF
public static final int ANNOTATION_DEF
- See Also:
- Constant Field Values
-
ANNOTATIONS
public static final int ANNOTATIONS
- See Also:
- Constant Field Values
-
ANNOTATION
public static final int ANNOTATION
- See Also:
- Constant Field Values
-
ANNOTATION_MEMBER_VALUE_PAIR
public static final int ANNOTATION_MEMBER_VALUE_PAIR
- See Also:
- Constant Field Values
-
ANNOTATION_FIELD_DEF
public static final int ANNOTATION_FIELD_DEF
- See Also:
- Constant Field Values
-
ANNOTATION_ARRAY_INIT
public static final int ANNOTATION_ARRAY_INIT
- See Also:
- Constant Field Values
-
TYPE_ARGUMENTS
public static final int TYPE_ARGUMENTS
- See Also:
- Constant Field Values
-
TYPE_ARGUMENT
public static final int TYPE_ARGUMENT
- See Also:
- Constant Field Values
-
TYPE_PARAMETERS
public static final int TYPE_PARAMETERS
- See Also:
- Constant Field Values
-
TYPE_PARAMETER
public static final int TYPE_PARAMETER
- See Also:
- Constant Field Values
-
WILDCARD_TYPE
public static final int WILDCARD_TYPE
- See Also:
- Constant Field Values
-
TYPE_UPPER_BOUNDS
public static final int TYPE_UPPER_BOUNDS
- See Also:
- Constant Field Values
-
TYPE_LOWER_BOUNDS
public static final int TYPE_LOWER_BOUNDS
- See Also:
- Constant Field Values
-
AT
public static final int AT
- See Also:
- Constant Field Values
-
ELLIPSIS
public static final int ELLIPSIS
- See Also:
- Constant Field Values
-
GENERIC_START
public static final int GENERIC_START
- See Also:
- Constant Field Values
-
GENERIC_END
public static final int GENERIC_END
- See Also:
- Constant Field Values
-
TYPE_EXTENSION_AND
public static final int TYPE_EXTENSION_AND
- See Also:
- Constant Field Values
-
DO_WHILE
public static final int DO_WHILE
- See Also:
- Constant Field Values
-
RESOURCE_SPECIFICATION
public static final int RESOURCE_SPECIFICATION
- See Also:
- Constant Field Values
-
RESOURCES
public static final int RESOURCES
- See Also:
- Constant Field Values
-
RESOURCE
public static final int RESOURCE
- See Also:
- Constant Field Values
-
DOUBLE_COLON
public static final int DOUBLE_COLON
- See Also:
- Constant Field Values
-
METHOD_REF
public static final int METHOD_REF
- See Also:
- Constant Field Values
-
LAMBDA
public static final int LAMBDA
- See Also:
- Constant Field Values
-
BLOCK_COMMENT_END
public static final int BLOCK_COMMENT_END
- See Also:
- Constant Field Values
-
COMMENT_CONTENT
public static final int COMMENT_CONTENT
- See Also:
- Constant Field Values
-
SINGLE_LINE_COMMENT_CONTENT
public static final int SINGLE_LINE_COMMENT_CONTENT
- See Also:
- Constant Field Values
-
BLOCK_COMMENT_CONTENT
public static final int BLOCK_COMMENT_CONTENT
- See Also:
- Constant Field Values
-
STD_ESC
public static final int STD_ESC
- See Also:
- Constant Field Values
-
BINARY_DIGIT
public static final int BINARY_DIGIT
- See Also:
- Constant Field Values
-
ID_START
public static final int ID_START
- See Also:
- Constant Field Values
-
ID_PART
public static final int ID_PART
- See Also:
- Constant Field Values
-
INT_LITERAL
public static final int INT_LITERAL
- See Also:
- Constant Field Values
-
LONG_LITERAL
public static final int LONG_LITERAL
- See Also:
- Constant Field Values
-
FLOAT_LITERAL
public static final int FLOAT_LITERAL
- See Also:
- Constant Field Values
-
DOUBLE_LITERAL
public static final int DOUBLE_LITERAL
- See Also:
- Constant Field Values
-
HEX_FLOAT_LITERAL
public static final int HEX_FLOAT_LITERAL
- See Also:
- Constant Field Values
-
HEX_DOUBLE_LITERAL
public static final int HEX_DOUBLE_LITERAL
- See Also:
- Constant Field Values
-
SIGNED_INTEGER
public static final int SIGNED_INTEGER
- See Also:
- Constant Field Values
-
BINARY_EXPONENT
public static final int BINARY_EXPONENT
- See Also:
- Constant Field Values
-
PATTERN_VARIABLE_DEF
public static final int PATTERN_VARIABLE_DEF
- See Also:
- Constant Field Values
-
RECORD_DEF
public static final int RECORD_DEF
- See Also:
- Constant Field Values
-
LITERAL_RECORD
public static final int LITERAL_RECORD
- See Also:
- Constant Field Values
-
RECORD_COMPONENTS
public static final int RECORD_COMPONENTS
- See Also:
- Constant Field Values
-
RECORD_COMPONENT_DEF
public static final int RECORD_COMPONENT_DEF
- See Also:
- Constant Field Values
-
COMPACT_CTOR_DEF
public static final int COMPACT_CTOR_DEF
- See Also:
- Constant Field Values
-
TEXT_BLOCK_LITERAL_BEGIN
public static final int TEXT_BLOCK_LITERAL_BEGIN
- See Also:
- Constant Field Values
-
TEXT_BLOCK_CONTENT
public static final int TEXT_BLOCK_CONTENT
- See Also:
- Constant Field Values
-
TEXT_BLOCK_LITERAL_END
public static final int TEXT_BLOCK_LITERAL_END
- See Also:
- Constant Field Values
-
LITERAL_YIELD
public static final int LITERAL_YIELD
- See Also:
- Constant Field Values
-
SWITCH_RULE
public static final int SWITCH_RULE
- See Also:
- Constant Field Values
-
LITERAL_NON_SEALED
public static final int LITERAL_NON_SEALED
- See Also:
- Constant Field Values
-
LITERAL_SEALED
public static final int LITERAL_SEALED
- See Also:
- Constant Field Values
-
LITERAL_PERMITS
public static final int LITERAL_PERMITS
- See Also:
- Constant Field Values
-
PERMITS_CLAUSE
public static final int PERMITS_CLAUSE
- See Also:
- Constant Field Values
-
PATTERN_DEF
public static final int PATTERN_DEF
- See Also:
- Constant Field Values
-
LITERAL_CONST
public static final int LITERAL_CONST
- See Also:
- Constant Field Values
-
LITERAL_GOTO
public static final int LITERAL_GOTO
- See Also:
- Constant Field Values
-
DECIMAL_LITERAL_LONG
public static final int DECIMAL_LITERAL_LONG
- See Also:
- Constant Field Values
-
DECIMAL_LITERAL
public static final int DECIMAL_LITERAL
- See Also:
- Constant Field Values
-
HEX_LITERAL_LONG
public static final int HEX_LITERAL_LONG
- See Also:
- Constant Field Values
-
HEX_LITERAL
public static final int HEX_LITERAL
- See Also:
- Constant Field Values
-
OCT_LITERAL_LONG
public static final int OCT_LITERAL_LONG
- See Also:
- Constant Field Values
-
OCT_LITERAL
public static final int OCT_LITERAL
- See Also:
- Constant Field Values
-
BINARY_LITERAL_LONG
public static final int BINARY_LITERAL_LONG
- See Also:
- Constant Field Values
-
BINARY_LITERAL
public static final int BINARY_LITERAL
- See Also:
- Constant Field Values
-
COMMENTS
public static final int COMMENTS
- See Also:
- Constant Field Values
-
TextBlock
public static final int TextBlock
- See Also:
- Constant Field Values
-
channelNames
public static java.lang.String[] channelNames
-
modeNames
public static java.lang.String[] modeNames
-
ruleNames
public static final java.lang.String[] ruleNames
-
_LITERAL_NAMES
private static final java.lang.String[] _LITERAL_NAMES
-
_SYMBOLIC_NAMES
private static final java.lang.String[] _SYMBOLIC_NAMES
-
VOCABULARY
public static final org.antlr.v4.runtime.Vocabulary VOCABULARY
-
tokenNames
@Deprecated public static final java.lang.String[] tokenNames
Deprecated.UseVOCABULARY
instead.
-
commentListener
private CommentListener commentListener
-
startLine
int startLine
Tracks the starting line of a block comment.
-
startCol
int startCol
Tracks the starting column of a block comment.
-
_serializedATN
public static final java.lang.String _serializedATN
- See Also:
- Constant Field Values
-
_ATN
public static final org.antlr.v4.runtime.atn.ATN _ATN
-
-
Constructor Detail
-
JavaLanguageLexer
public JavaLanguageLexer(org.antlr.v4.runtime.CharStream input, boolean crAwareConstructor)
We need to create a different constructor in order to use our own implementation of the LexerATNSimulator. This is the reason for the unused 'crAwareConstructor' argument.- Parameters:
input
- the character stream to tokenizecrAwareConstructor
- dummy parameter
-
JavaLanguageLexer
public JavaLanguageLexer(org.antlr.v4.runtime.CharStream input)
-
-
Method Detail
-
makeRuleNames
private static java.lang.String[] makeRuleNames()
-
makeLiteralNames
private static java.lang.String[] makeLiteralNames()
-
makeSymbolicNames
private static java.lang.String[] makeSymbolicNames()
-
getTokenNames
@Deprecated public java.lang.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<java.lang.Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
setCommentListener
public void setCommentListener(CommentListener commentListener)
Sets the CommentListener for the lexer.- Parameters:
commentListener
- the commentListener to use in this lexer
-
getGrammarFileName
public java.lang.String getGrammarFileName()
- Specified by:
getGrammarFileName
in classorg.antlr.v4.runtime.Recognizer<java.lang.Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
getRuleNames
public java.lang.String[] getRuleNames()
- Specified by:
getRuleNames
in classorg.antlr.v4.runtime.Recognizer<java.lang.Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
getSerializedATN
public java.lang.String getSerializedATN()
- Overrides:
getSerializedATN
in classorg.antlr.v4.runtime.Recognizer<java.lang.Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
getChannelNames
public java.lang.String[] getChannelNames()
- Overrides:
getChannelNames
in classorg.antlr.v4.runtime.Lexer
-
getModeNames
public java.lang.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<java.lang.Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
action
public void action(org.antlr.v4.runtime.RuleContext _localctx, int ruleIndex, int actionIndex)
- Overrides:
action
in classorg.antlr.v4.runtime.Recognizer<java.lang.Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
BLOCK_COMMENT_BEGIN_action
private void BLOCK_COMMENT_BEGIN_action(org.antlr.v4.runtime.RuleContext _localctx, int actionIndex)
-
SINGLE_LINE_COMMENT_action
private void SINGLE_LINE_COMMENT_action(org.antlr.v4.runtime.RuleContext _localctx, int actionIndex)
-
-