类 ANTLRv3Lexer
- java.lang.Object
-
- org.antlr.runtime.BaseRecognizer
-
- org.antlr.runtime.Lexer
-
- org.antlr.grammar.v3.ANTLRv3Lexer
-
- 所有已实现的接口:
TokenSource
public class ANTLRv3Lexer extends Lexer
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 protected classANTLRv3Lexer.DFA2protected classANTLRv3Lexer.DFA22
-
字段概要
字段 修饰符和类型 字段 说明 static intACTIONstatic intACTION_CHAR_LITERALstatic intACTION_ESCstatic intACTION_STRING_LITERALstatic intALTstatic intARGstatic intARG_ACTIONstatic intARGLISTstatic intATstatic intBACKTRACK_SEMPREDstatic intBANGstatic intBLOCKstatic intCHAR_LITERALstatic intCHAR_RANGEstatic intCLOSUREstatic intCOMBINED_GRAMMARprotected ANTLRv3Lexer.DFA2dfa2protected ANTLRv3Lexer.DFA22dfa22static intDOC_COMMENTstatic intDOUBLE_ANGLE_STRING_LITERALstatic intDOUBLE_QUOTE_STRING_LITERALstatic intEOAstatic intEOBstatic intEOFstatic intEORstatic intEPSILONstatic intESCstatic intFRAGMENTstatic intGATED_SEMPREDstatic intIDstatic intINTstatic intLABELstatic intLABEL_ASSIGNstatic intLEXERstatic intLEXER_GRAMMARstatic intLIST_LABEL_ASSIGNstatic intLITERAL_CHARstatic intML_COMMENTstatic intNESTED_ACTIONstatic intNESTED_ARG_ACTIONstatic intOPTIONALstatic intOPTIONSstatic intPARSERstatic intPARSER_GRAMMARstatic intPOSITIVE_CLOSUREstatic intRANGEstatic intRETstatic intREWRITEstatic intROOTstatic intRULEstatic intRULE_REFstatic intSCOPEstatic intSEMPREDstatic intSL_COMMENTstatic intSRCstatic intSTRING_LITERALstatic intSYN_SEMPREDstatic intSYNPREDstatic intT__67static intT__68static intT__69static intT__70static intT__71static intT__72static intT__73static intT__74static intT__75static intT__76static intT__77static intT__78static intT__79static intT__80static intT__81static intT__82static intT__83static intT__84static intT__85static intT__86static intT__87static intT__88static intT__89static intT__90static intT__91static intT__92static intT__93static intTEMPLATEstatic intTOKEN_REFstatic intTOKENSstatic intTREE_BEGINstatic intTREE_GRAMMARstatic intWSstatic intWS_LOOPstatic intXDIGIT-
从类继承的字段 org.antlr.runtime.BaseRecognizer
DEFAULT_TOKEN_CHANNEL, HIDDEN, INITIAL_FOLLOW_STACK_SIZE, MEMO_RULE_FAILED, MEMO_RULE_UNKNOWN, NEXT_TOKEN_RULE_NAME, state
-
-
构造器概要
构造器 构造器 说明 ANTLRv3Lexer()ANTLRv3Lexer(CharStream input)ANTLRv3Lexer(CharStream input, RecognizerSharedState state)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Lexer[]getDelegates()java.lang.StringgetGrammarFileName()For debugging and other purposes, might want the grammar name.voidmACTION()voidmACTION_CHAR_LITERAL()voidmACTION_ESC()voidmACTION_STRING_LITERAL()voidmARG_ACTION()voidmAT()voidmBANG()voidmCHAR_LITERAL()voidmDOUBLE_ANGLE_STRING_LITERAL()voidmDOUBLE_QUOTE_STRING_LITERAL()voidmESC()voidmFRAGMENT()voidmINT()voidmLABEL_ASSIGN()voidmLIST_LABEL_ASSIGN()voidmLITERAL_CHAR()voidmML_COMMENT()voidmNESTED_ACTION()voidmNESTED_ARG_ACTION()voidmOPTIONS()voidmRANGE()voidmRET()voidmREWRITE()voidmROOT()voidmRULE_REF()voidmSCOPE()voidmSL_COMMENT()voidmSRC()voidmSTRING_LITERAL()voidmT__67()voidmT__68()voidmT__69()voidmT__70()voidmT__71()voidmT__72()voidmT__73()voidmT__74()voidmT__75()voidmT__76()voidmT__77()voidmT__78()voidmT__79()voidmT__80()voidmT__81()voidmT__82()voidmT__83()voidmT__84()voidmT__85()voidmT__86()voidmT__87()voidmT__88()voidmT__89()voidmT__90()voidmT__91()voidmT__92()voidmT__93()voidmTOKEN_REF()voidmTokens()This is the lexer entry point that sets instance var 'token'voidmTOKENS()voidmTREE_BEGIN()voidmWS()voidmWS_LOOP()voidmXDIGIT()-
从类继承的方法 org.antlr.runtime.Lexer
emit, emit, getCharErrorDisplay, getCharIndex, getCharPositionInLine, getCharStream, getEOFToken, getErrorMessage, getLine, getSourceName, getText, match, match, matchAny, matchRange, nextToken, recover, reportError, reset, setCharStream, setText, skip, traceIn, traceOut
-
从类继承的方法 org.antlr.runtime.BaseRecognizer
alreadyParsedRule, beginResync, combineFollows, computeContextSensitiveRuleFOLLOW, computeErrorRecoverySet, consumeUntil, consumeUntil, displayRecognitionError, emitErrorMessage, endResync, failed, getBacktrackingLevel, getCurrentInputSymbol, getErrorHeader, getMissingSymbol, getNumberOfSyntaxErrors, getRuleInvocationStack, getRuleInvocationStack, getRuleMemoization, getRuleMemoizationCacheSize, getTokenErrorDisplay, getTokenNames, match, matchAny, memoize, mismatchIsMissingToken, mismatchIsUnwantedToken, pushFollow, recover, recoverFromMismatchedSet, recoverFromMismatchedToken, setBacktrackingLevel, toStrings, traceIn, traceOut
-
-
-
-
字段详细资料
-
EOF
public static final int EOF
- 另请参阅:
- 常量字段值
-
T__67
public static final int T__67
- 另请参阅:
- 常量字段值
-
T__68
public static final int T__68
- 另请参阅:
- 常量字段值
-
T__69
public static final int T__69
- 另请参阅:
- 常量字段值
-
T__70
public static final int T__70
- 另请参阅:
- 常量字段值
-
T__71
public static final int T__71
- 另请参阅:
- 常量字段值
-
T__72
public static final int T__72
- 另请参阅:
- 常量字段值
-
T__73
public static final int T__73
- 另请参阅:
- 常量字段值
-
T__74
public static final int T__74
- 另请参阅:
- 常量字段值
-
T__75
public static final int T__75
- 另请参阅:
- 常量字段值
-
T__76
public static final int T__76
- 另请参阅:
- 常量字段值
-
T__77
public static final int T__77
- 另请参阅:
- 常量字段值
-
T__78
public static final int T__78
- 另请参阅:
- 常量字段值
-
T__79
public static final int T__79
- 另请参阅:
- 常量字段值
-
T__80
public static final int T__80
- 另请参阅:
- 常量字段值
-
T__81
public static final int T__81
- 另请参阅:
- 常量字段值
-
T__82
public static final int T__82
- 另请参阅:
- 常量字段值
-
T__83
public static final int T__83
- 另请参阅:
- 常量字段值
-
T__84
public static final int T__84
- 另请参阅:
- 常量字段值
-
T__85
public static final int T__85
- 另请参阅:
- 常量字段值
-
T__86
public static final int T__86
- 另请参阅:
- 常量字段值
-
T__87
public static final int T__87
- 另请参阅:
- 常量字段值
-
T__88
public static final int T__88
- 另请参阅:
- 常量字段值
-
T__89
public static final int T__89
- 另请参阅:
- 常量字段值
-
T__90
public static final int T__90
- 另请参阅:
- 常量字段值
-
T__91
public static final int T__91
- 另请参阅:
- 常量字段值
-
T__92
public static final int T__92
- 另请参阅:
- 常量字段值
-
T__93
public static final int T__93
- 另请参阅:
- 常量字段值
-
ACTION
public static final int ACTION
- 另请参阅:
- 常量字段值
-
ACTION_CHAR_LITERAL
public static final int ACTION_CHAR_LITERAL
- 另请参阅:
- 常量字段值
-
ACTION_ESC
public static final int ACTION_ESC
- 另请参阅:
- 常量字段值
-
ACTION_STRING_LITERAL
public static final int ACTION_STRING_LITERAL
- 另请参阅:
- 常量字段值
-
ALT
public static final int ALT
- 另请参阅:
- 常量字段值
-
ARG
public static final int ARG
- 另请参阅:
- 常量字段值
-
ARGLIST
public static final int ARGLIST
- 另请参阅:
- 常量字段值
-
ARG_ACTION
public static final int ARG_ACTION
- 另请参阅:
- 常量字段值
-
AT
public static final int AT
- 另请参阅:
- 常量字段值
-
BACKTRACK_SEMPRED
public static final int BACKTRACK_SEMPRED
- 另请参阅:
- 常量字段值
-
BANG
public static final int BANG
- 另请参阅:
- 常量字段值
-
BLOCK
public static final int BLOCK
- 另请参阅:
- 常量字段值
-
CHAR_LITERAL
public static final int CHAR_LITERAL
- 另请参阅:
- 常量字段值
-
CHAR_RANGE
public static final int CHAR_RANGE
- 另请参阅:
- 常量字段值
-
CLOSURE
public static final int CLOSURE
- 另请参阅:
- 常量字段值
-
COMBINED_GRAMMAR
public static final int COMBINED_GRAMMAR
- 另请参阅:
- 常量字段值
-
DOC_COMMENT
public static final int DOC_COMMENT
- 另请参阅:
- 常量字段值
-
DOUBLE_ANGLE_STRING_LITERAL
public static final int DOUBLE_ANGLE_STRING_LITERAL
- 另请参阅:
- 常量字段值
-
DOUBLE_QUOTE_STRING_LITERAL
public static final int DOUBLE_QUOTE_STRING_LITERAL
- 另请参阅:
- 常量字段值
-
EOA
public static final int EOA
- 另请参阅:
- 常量字段值
-
EOB
public static final int EOB
- 另请参阅:
- 常量字段值
-
EOR
public static final int EOR
- 另请参阅:
- 常量字段值
-
EPSILON
public static final int EPSILON
- 另请参阅:
- 常量字段值
-
ESC
public static final int ESC
- 另请参阅:
- 常量字段值
-
FRAGMENT
public static final int FRAGMENT
- 另请参阅:
- 常量字段值
-
GATED_SEMPRED
public static final int GATED_SEMPRED
- 另请参阅:
- 常量字段值
-
ID
public static final int ID
- 另请参阅:
- 常量字段值
-
INT
public static final int INT
- 另请参阅:
- 常量字段值
-
LABEL
public static final int LABEL
- 另请参阅:
- 常量字段值
-
LABEL_ASSIGN
public static final int LABEL_ASSIGN
- 另请参阅:
- 常量字段值
-
LEXER
public static final int LEXER
- 另请参阅:
- 常量字段值
-
LEXER_GRAMMAR
public static final int LEXER_GRAMMAR
- 另请参阅:
- 常量字段值
-
LIST_LABEL_ASSIGN
public static final int LIST_LABEL_ASSIGN
- 另请参阅:
- 常量字段值
-
LITERAL_CHAR
public static final int LITERAL_CHAR
- 另请参阅:
- 常量字段值
-
ML_COMMENT
public static final int ML_COMMENT
- 另请参阅:
- 常量字段值
-
NESTED_ACTION
public static final int NESTED_ACTION
- 另请参阅:
- 常量字段值
-
NESTED_ARG_ACTION
public static final int NESTED_ARG_ACTION
- 另请参阅:
- 常量字段值
-
OPTIONAL
public static final int OPTIONAL
- 另请参阅:
- 常量字段值
-
OPTIONS
public static final int OPTIONS
- 另请参阅:
- 常量字段值
-
PARSER
public static final int PARSER
- 另请参阅:
- 常量字段值
-
PARSER_GRAMMAR
public static final int PARSER_GRAMMAR
- 另请参阅:
- 常量字段值
-
POSITIVE_CLOSURE
public static final int POSITIVE_CLOSURE
- 另请参阅:
- 常量字段值
-
RANGE
public static final int RANGE
- 另请参阅:
- 常量字段值
-
RET
public static final int RET
- 另请参阅:
- 常量字段值
-
REWRITE
public static final int REWRITE
- 另请参阅:
- 常量字段值
-
ROOT
public static final int ROOT
- 另请参阅:
- 常量字段值
-
RULE
public static final int RULE
- 另请参阅:
- 常量字段值
-
RULE_REF
public static final int RULE_REF
- 另请参阅:
- 常量字段值
-
SCOPE
public static final int SCOPE
- 另请参阅:
- 常量字段值
-
SEMPRED
public static final int SEMPRED
- 另请参阅:
- 常量字段值
-
SL_COMMENT
public static final int SL_COMMENT
- 另请参阅:
- 常量字段值
-
SRC
public static final int SRC
- 另请参阅:
- 常量字段值
-
STRING_LITERAL
public static final int STRING_LITERAL
- 另请参阅:
- 常量字段值
-
SYNPRED
public static final int SYNPRED
- 另请参阅:
- 常量字段值
-
SYN_SEMPRED
public static final int SYN_SEMPRED
- 另请参阅:
- 常量字段值
-
TEMPLATE
public static final int TEMPLATE
- 另请参阅:
- 常量字段值
-
TOKENS
public static final int TOKENS
- 另请参阅:
- 常量字段值
-
TOKEN_REF
public static final int TOKEN_REF
- 另请参阅:
- 常量字段值
-
TREE_BEGIN
public static final int TREE_BEGIN
- 另请参阅:
- 常量字段值
-
TREE_GRAMMAR
public static final int TREE_GRAMMAR
- 另请参阅:
- 常量字段值
-
WS
public static final int WS
- 另请参阅:
- 常量字段值
-
WS_LOOP
public static final int WS_LOOP
- 另请参阅:
- 常量字段值
-
XDIGIT
public static final int XDIGIT
- 另请参阅:
- 常量字段值
-
dfa2
protected ANTLRv3Lexer.DFA2 dfa2
-
dfa22
protected ANTLRv3Lexer.DFA22 dfa22
-
-
构造器详细资料
-
ANTLRv3Lexer
public ANTLRv3Lexer()
-
ANTLRv3Lexer
public ANTLRv3Lexer(CharStream input)
-
ANTLRv3Lexer
public ANTLRv3Lexer(CharStream input, RecognizerSharedState state)
-
-
方法详细资料
-
getDelegates
public Lexer[] getDelegates()
-
getGrammarFileName
public java.lang.String getGrammarFileName()
从类复制的说明:BaseRecognizerFor debugging and other purposes, might want the grammar name. Have ANTLR generate an implementation for this method.- 覆盖:
getGrammarFileName在类中BaseRecognizer
-
mAT
public final void mAT() throws RecognitionException
-
mBANG
public final void mBANG() throws RecognitionException
-
mFRAGMENT
public final void mFRAGMENT() throws RecognitionException
-
mLABEL_ASSIGN
public final void mLABEL_ASSIGN() throws RecognitionException
-
mLIST_LABEL_ASSIGN
public final void mLIST_LABEL_ASSIGN() throws RecognitionException
-
mRANGE
public final void mRANGE() throws RecognitionException
-
mRET
public final void mRET() throws RecognitionException
-
mREWRITE
public final void mREWRITE() throws RecognitionException
-
mROOT
public final void mROOT() throws RecognitionException
-
mSCOPE
public final void mSCOPE() throws RecognitionException
-
mTREE_BEGIN
public final void mTREE_BEGIN() throws RecognitionException
-
mT__67
public final void mT__67() throws RecognitionException
-
mT__68
public final void mT__68() throws RecognitionException
-
mT__69
public final void mT__69() throws RecognitionException
-
mT__70
public final void mT__70() throws RecognitionException
-
mT__71
public final void mT__71() throws RecognitionException
-
mT__72
public final void mT__72() throws RecognitionException
-
mT__73
public final void mT__73() throws RecognitionException
-
mT__74
public final void mT__74() throws RecognitionException
-
mT__75
public final void mT__75() throws RecognitionException
-
mT__76
public final void mT__76() throws RecognitionException
-
mT__77
public final void mT__77() throws RecognitionException
-
mT__78
public final void mT__78() throws RecognitionException
-
mT__79
public final void mT__79() throws RecognitionException
-
mT__80
public final void mT__80() throws RecognitionException
-
mT__81
public final void mT__81() throws RecognitionException
-
mT__82
public final void mT__82() throws RecognitionException
-
mT__83
public final void mT__83() throws RecognitionException
-
mT__84
public final void mT__84() throws RecognitionException
-
mT__85
public final void mT__85() throws RecognitionException
-
mT__86
public final void mT__86() throws RecognitionException
-
mT__87
public final void mT__87() throws RecognitionException
-
mT__88
public final void mT__88() throws RecognitionException
-
mT__89
public final void mT__89() throws RecognitionException
-
mT__90
public final void mT__90() throws RecognitionException
-
mT__91
public final void mT__91() throws RecognitionException
-
mT__92
public final void mT__92() throws RecognitionException
-
mT__93
public final void mT__93() throws RecognitionException
-
mSL_COMMENT
public final void mSL_COMMENT() throws RecognitionException
-
mML_COMMENT
public final void mML_COMMENT() throws RecognitionException
-
mCHAR_LITERAL
public final void mCHAR_LITERAL() throws RecognitionException
-
mSTRING_LITERAL
public final void mSTRING_LITERAL() throws RecognitionException
-
mLITERAL_CHAR
public final void mLITERAL_CHAR() throws RecognitionException
-
mDOUBLE_QUOTE_STRING_LITERAL
public final void mDOUBLE_QUOTE_STRING_LITERAL() throws RecognitionException
-
mDOUBLE_ANGLE_STRING_LITERAL
public final void mDOUBLE_ANGLE_STRING_LITERAL() throws RecognitionException
-
mESC
public final void mESC() throws RecognitionException
-
mXDIGIT
public final void mXDIGIT() throws RecognitionException
-
mINT
public final void mINT() throws RecognitionException
-
mARG_ACTION
public final void mARG_ACTION() throws RecognitionException
-
mNESTED_ARG_ACTION
public final void mNESTED_ARG_ACTION() throws RecognitionException
-
mACTION
public final void mACTION() throws RecognitionException
-
mNESTED_ACTION
public final void mNESTED_ACTION() throws RecognitionException
-
mACTION_CHAR_LITERAL
public final void mACTION_CHAR_LITERAL() throws RecognitionException
-
mACTION_STRING_LITERAL
public final void mACTION_STRING_LITERAL() throws RecognitionException
-
mACTION_ESC
public final void mACTION_ESC() throws RecognitionException
-
mTOKEN_REF
public final void mTOKEN_REF() throws RecognitionException
-
mRULE_REF
public final void mRULE_REF() throws RecognitionException
-
mOPTIONS
public final void mOPTIONS() throws RecognitionException
-
mTOKENS
public final void mTOKENS() throws RecognitionException
-
mSRC
public final void mSRC() throws RecognitionException
-
mWS
public final void mWS() throws RecognitionException
-
mWS_LOOP
public final void mWS_LOOP() throws RecognitionException
-
mTokens
public void mTokens() throws RecognitionException从类复制的说明:LexerThis is the lexer entry point that sets instance var 'token'- 指定者:
mTokens在类中Lexer- 抛出:
RecognitionException
-
-