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_ATNprotected static org.antlr.v4.runtime.dfa.DFA[]_decisionToDFAprivate static java.lang.String[]_LITERAL_NAMESstatic java.lang.String_serializedATNprotected static org.antlr.v4.runtime.atn.PredictionContextCache_sharedContextCacheprivate static java.lang.String[]_SYMBOLIC_NAMESstatic intABSTRACTstatic intANNOTATIONstatic intANNOTATION_ARRAY_INITstatic intANNOTATION_DEFstatic intANNOTATION_FIELD_DEFstatic intANNOTATION_MEMBER_VALUE_PAIRstatic intANNOTATIONSstatic intARRAY_DECLARATORstatic intARRAY_INITstatic intASSERTstatic intASSIGNstatic intATstatic intBANDstatic intBAND_ASSIGNstatic intBINARY_DIGITstatic intBINARY_EXPONENTstatic intBINARY_LITERALstatic intBINARY_LITERAL_LONGstatic intBLOCKstatic intBLOCK_COMMENT_BEGINstatic intBLOCK_COMMENT_CONTENTstatic intBLOCK_COMMENT_ENDstatic intBNOTstatic intBORstatic intBOR_ASSIGNstatic intBSRstatic intBSR_ASSIGNstatic intBXORstatic intBXOR_ASSIGNstatic intCASE_GROUPstatic java.lang.String[]channelNamesstatic intCHAR_LITERALstatic intCLASS_DEFstatic intCOLONstatic intCOMMAstatic intCOMMENT_CONTENTprivate CommentListenercommentListenerstatic intCOMMENTSstatic intCOMPACT_CTOR_DEFstatic intCOMPILATION_UNITstatic intCTOR_CALLstatic intCTOR_DEFstatic intDECstatic intDECIMAL_LITERALstatic intDECIMAL_LITERAL_LONGstatic intDIVstatic intDIV_ASSIGNstatic intDO_WHILEstatic intDOTstatic intDOUBLE_COLONstatic intDOUBLE_LITERALstatic intELISTstatic intELLIPSISstatic intEMPTY_STATstatic intENUMstatic intENUM_CONSTANT_DEFstatic intENUM_DEFstatic intEQUALstatic intESCstatic intEXPONENTstatic intEXPRstatic intEXTENDS_CLAUSEstatic intFINALstatic intFLOAT_LITERALstatic intFLOAT_SUFFIXstatic intFOR_CONDITIONstatic intFOR_EACH_CLAUSEstatic intFOR_INITstatic intFOR_ITERATORstatic intGEstatic intGENERIC_ENDstatic intGENERIC_STARTstatic intGTstatic intHEX_DIGITstatic intHEX_DOUBLE_LITERALstatic intHEX_FLOAT_LITERALstatic intHEX_LITERALstatic intHEX_LITERAL_LONGstatic intID_PARTstatic intID_STARTstatic intIDENTstatic intIMPLEMENTS_CLAUSEstatic intIMPORTstatic intINCstatic intINDEX_OPstatic intINSTANCE_INITstatic intINT_LITERALstatic intINTERFACE_DEFstatic intLABELED_STATstatic intLAMBDAstatic intLANDstatic intLBRACKstatic intLCURLYstatic intLEstatic intLITERAL_BOOLEANstatic intLITERAL_BREAKstatic intLITERAL_BYTEstatic intLITERAL_CASEstatic intLITERAL_CATCHstatic intLITERAL_CHARstatic intLITERAL_CLASSstatic intLITERAL_CONSTstatic intLITERAL_CONTINUEstatic intLITERAL_DEFAULTstatic intLITERAL_DOstatic intLITERAL_DOUBLEstatic intLITERAL_ELSEstatic intLITERAL_EXTENDSstatic intLITERAL_FALSEstatic intLITERAL_FINALLYstatic intLITERAL_FLOATstatic intLITERAL_FORstatic intLITERAL_GOTOstatic intLITERAL_IFstatic intLITERAL_IMPLEMENTSstatic intLITERAL_IMPORTstatic intLITERAL_INSTANCEOFstatic intLITERAL_INTstatic intLITERAL_INTERFACEstatic intLITERAL_LONGstatic intLITERAL_NATIVEstatic intLITERAL_NEWstatic intLITERAL_NON_SEALEDstatic intLITERAL_NULLstatic intLITERAL_PACKAGEstatic intLITERAL_PERMITSstatic intLITERAL_PRIVATEstatic intLITERAL_PROTECTEDstatic intLITERAL_PUBLICstatic intLITERAL_RECORDstatic intLITERAL_RETURNstatic intLITERAL_SEALEDstatic intLITERAL_SHORTstatic intLITERAL_STATICstatic intLITERAL_SUPERstatic intLITERAL_SWITCHstatic intLITERAL_SYNCHRONIZEDstatic intLITERAL_THISstatic intLITERAL_THROWstatic intLITERAL_THROWSstatic intLITERAL_TRANSIENTstatic intLITERAL_TRUEstatic intLITERAL_TRYstatic intLITERAL_VOIDstatic intLITERAL_VOLATILEstatic intLITERAL_WHILEstatic intLITERAL_YIELDstatic intLNOTstatic intLONG_LITERALstatic intLORstatic intLPARENstatic intLTstatic intMETHOD_CALLstatic intMETHOD_DEFstatic intMETHOD_REFstatic intMINUSstatic intMINUS_ASSIGNstatic intMODstatic intMOD_ASSIGNstatic java.lang.String[]modeNamesstatic intMODIFIERSstatic intNOT_EQUALstatic intNULL_TREE_LOOKAHEADstatic intNUM_DOUBLEstatic intNUM_FLOATstatic intNUM_INTstatic intNUM_LONGstatic intOBJBLOCKstatic intOCT_LITERALstatic intOCT_LITERAL_LONGstatic intPACKAGE_DEFstatic intPARAMETER_DEFstatic intPARAMETERSstatic intPATTERN_DEFstatic intPATTERN_VARIABLE_DEFstatic intPERMITS_CLAUSEstatic intPLACEHOLDER1static intPLUSstatic intPLUS_ASSIGNstatic intPOST_DECstatic intPOST_INCstatic intQUESTIONstatic intRBRACKstatic intRCURLYstatic intRECORD_COMPONENT_DEFstatic intRECORD_COMPONENTSstatic intRECORD_DEFstatic intRESOURCEstatic intRESOURCE_SPECIFICATIONstatic intRESOURCESstatic intRPARENstatic java.lang.String[]ruleNamesstatic intSEMIstatic intSIGNED_INTEGERstatic intSINGLE_LINE_COMMENTstatic intSINGLE_LINE_COMMENT_CONTENTstatic intSLstatic intSL_ASSIGNstatic intSLISTstatic intSRstatic intSR_ASSIGNstatic intSTARstatic intSTAR_ASSIGN(package private) intstartColTracks the starting column of a block comment.(package private) intstartLineTracks the starting line of a block comment.static intSTATIC_IMPORTstatic intSTATIC_INITstatic intSTD_ESCstatic intSTRICTFPstatic intSTRING_LITERALstatic intSUPER_CTOR_CALLstatic intSWITCH_RULEstatic intTEXT_BLOCK_CONTENTstatic intTEXT_BLOCK_LITERAL_BEGINstatic intTEXT_BLOCK_LITERAL_ENDstatic intTextBlockstatic java.lang.String[]tokenNamesDeprecated.UseVOCABULARYinstead.static intTYPEstatic intTYPE_ARGUMENTstatic intTYPE_ARGUMENTSstatic intTYPE_EXTENSION_ANDstatic intTYPE_LOWER_BOUNDSstatic intTYPE_PARAMETERstatic intTYPE_PARAMETERSstatic intTYPE_UPPER_BOUNDSstatic intTYPECASTstatic intUNARY_MINUSstatic intUNARY_PLUSstatic intVARIABLE_DEFstatic intVOCABstatic org.antlr.v4.runtime.VocabularyVOCABULARYstatic intWILDCARD_TYPEstatic intWS-
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 voidaction(org.antlr.v4.runtime.RuleContext _localctx, int ruleIndex, int actionIndex)private voidBLOCK_COMMENT_BEGIN_action(org.antlr.v4.runtime.RuleContext _localctx, int actionIndex)org.antlr.v4.runtime.atn.ATNgetATN()java.lang.String[]getChannelNames()java.lang.StringgetGrammarFileName()java.lang.String[]getModeNames()java.lang.String[]getRuleNames()java.lang.StringgetSerializedATN()java.lang.String[]getTokenNames()Deprecated.org.antlr.v4.runtime.VocabularygetVocabulary()private static java.lang.String[]makeLiteralNames()private static java.lang.String[]makeRuleNames()private static java.lang.String[]makeSymbolicNames()voidsetCommentListener(CommentListener commentListener)Sets the CommentListener for the lexer.private voidSINGLE_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.UseVOCABULARYinstead.
-
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:
getTokenNamesin classorg.antlr.v4.runtime.Lexer
-
getVocabulary
public org.antlr.v4.runtime.Vocabulary getVocabulary()
- Overrides:
getVocabularyin 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:
getGrammarFileNamein classorg.antlr.v4.runtime.Recognizer<java.lang.Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
getRuleNames
public java.lang.String[] getRuleNames()
- Specified by:
getRuleNamesin classorg.antlr.v4.runtime.Recognizer<java.lang.Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
getSerializedATN
public java.lang.String getSerializedATN()
- Overrides:
getSerializedATNin classorg.antlr.v4.runtime.Recognizer<java.lang.Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
getChannelNames
public java.lang.String[] getChannelNames()
- Overrides:
getChannelNamesin classorg.antlr.v4.runtime.Lexer
-
getModeNames
public java.lang.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<java.lang.Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
action
public void action(org.antlr.v4.runtime.RuleContext _localctx, int ruleIndex, int actionIndex)- Overrides:
actionin 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)
-
-