类 ANTLRLexer
- java.lang.Object
-
- org.antlr.runtime.BaseRecognizer
-
- org.antlr.runtime.Lexer
-
- org.antlr.grammar.v3.ANTLRLexer
-
- 所有已实现的接口:
TokenSource
public class ANTLRLexer extends Lexer
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 protected class
ANTLRLexer.DFA25
protected class
ANTLRLexer.DFA9
-
字段概要
字段 修饰符和类型 字段 说明 static int
ACTION
static int
ACTION_CHAR_LITERAL
static int
ACTION_ESC
static int
ACTION_STRING_LITERAL
static int
ALT
static int
AMPERSAND
static int
ARG
static int
ARG_ACTION
static int
ARGLIST
static int
ASSIGN
static int
BACKTRACK_SEMPRED
static int
BANG
static int
BLOCK
static int
CATCH
static int
CHAR_LITERAL
static int
CHAR_RANGE
static int
CLOSE_ELEMENT_OPTION
static int
CLOSURE
static int
COLON
static int
COMBINED_GRAMMAR
static int
COMMA
static int
COMMENT
protected ANTLRLexer.DFA25
dfa25
protected ANTLRLexer.DFA9
dfa9
static int
DIGIT
static int
DOC_COMMENT
static int
DOLLAR
static int
DOT
static int
DOUBLE_ANGLE_STRING_LITERAL
static int
DOUBLE_QUOTE_STRING_LITERAL
static int
EOA
static int
EOB
static int
EOF
static int
EOR
static int
EPSILON
static int
ESC
static int
ETC
static int
FINALLY
static int
FORCED_ACTION
static int
FRAGMENT
static int
GATED_SEMPRED
static int
GRAMMAR
boolean
hasASTOperator
static int
ID
static int
IMPLIES
static int
IMPORT
static int
INITACTION
static int
INT
static int
LABEL
static int
LEXER
static int
LEXER_GRAMMAR
static int
LPAREN
static int
ML_COMMENT
static int
NESTED_ACTION
static int
NESTED_ARG_ACTION
static int
NOT
static int
OPEN_ELEMENT_OPTION
static int
OPTIONAL
static int
OPTIONS
static int
OR
static int
PARSER
static int
PARSER_GRAMMAR
static int
PLUS
static int
PLUS_ASSIGN
static int
POSITIVE_CLOSURE
static int
PREC_RULE
static int
PRIVATE
static int
PROTECTED
static int
PUBLIC
static int
QUESTION
static int
RANGE
static int
RCURLY
static int
RECURSIVE_RULE_REF
static int
RET
static int
RETURNS
static int
REWRITE
static int
REWRITES
static int
ROOT
static int
RPAREN
static int
RULE
static int
RULE_REF
static int
SCOPE
static int
SEMI
static int
SEMPRED
static int
SL_COMMENT
static int
SRC
static int
STAR
static int
STRAY_BRACKET
static int
STRING_LITERAL
static int
SYN_SEMPRED
static int
SYNPRED
static int
TEMPLATE
static int
THROWS
static int
TOKEN_REF
static int
TOKENS
static int
TREE
static int
TREE_BEGIN
static int
TREE_GRAMMAR
static int
WILDCARD
static int
WS
static int
WS_LOOP
static int
WS_OPT
static int
XDIGIT
-
从类继承的字段 org.antlr.runtime.BaseRecognizer
DEFAULT_TOKEN_CHANNEL, HIDDEN, INITIAL_FOLLOW_STACK_SIZE, MEMO_RULE_FAILED, MEMO_RULE_UNKNOWN, NEXT_TOKEN_RULE_NAME, state
-
-
构造器概要
构造器 构造器 说明 ANTLRLexer()
ANTLRLexer(CharStream input)
ANTLRLexer(CharStream input, RecognizerSharedState state)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Lexer[]
getDelegates()
java.lang.String
getFileName()
java.lang.String
getGrammarFileName()
For debugging and other purposes, might want the grammar name.void
mACTION()
void
mACTION_CHAR_LITERAL()
void
mACTION_ESC()
void
mACTION_STRING_LITERAL()
void
mAMPERSAND()
void
mARG_ACTION()
void
mASSIGN()
void
mBANG()
void
mCATCH()
void
mCHAR_LITERAL()
void
mCLOSE_ELEMENT_OPTION()
void
mCOLON()
void
mCOMMA()
void
mCOMMENT()
void
mDIGIT()
void
mDOC_COMMENT()
void
mDOLLAR()
void
mDOUBLE_ANGLE_STRING_LITERAL()
void
mDOUBLE_QUOTE_STRING_LITERAL()
void
mESC()
void
mETC()
void
mFINALLY()
void
mFORCED_ACTION()
void
mFRAGMENT()
void
mGRAMMAR()
void
mIMPLIES()
void
mIMPORT()
void
mINT()
void
mLEXER()
void
mLPAREN()
void
mML_COMMENT(java.util.List<java.lang.Integer> type)
void
mNESTED_ACTION()
void
mNESTED_ARG_ACTION(java.util.List<java.lang.String> text)
void
mNOT()
void
mOPEN_ELEMENT_OPTION()
void
mOPTIONS()
void
mOR()
void
mPARSER()
void
mPLUS()
void
mPLUS_ASSIGN()
void
mPRIVATE()
void
mPROTECTED()
void
mPUBLIC()
void
mQUESTION()
void
mRANGE()
void
mRCURLY()
void
mRETURNS()
void
mREWRITE()
void
mROOT()
void
mRPAREN()
void
mRULE_REF()
void
mSCOPE()
void
mSEMI()
void
mSEMPRED()
void
mSL_COMMENT()
void
mSRC()
void
mSTAR()
void
mSTRAY_BRACKET()
void
mSTRING_LITERAL()
void
mTHROWS()
void
mTOKEN_REF()
void
mTokens()
This is the lexer entry point that sets instance var 'token'void
mTOKENS()
void
mTREE()
void
mTREE_BEGIN()
void
mWILDCARD()
void
mWS()
void
mWS_LOOP()
void
mWS_OPT()
void
mXDIGIT()
Token
nextToken()
Return a token from this source; i.e., match a token on the char stream.void
setFileName(java.lang.String value)
boolean
synpred1_ANTLR()
void
synpred1_ANTLR_fragment()
boolean
synpred2_ANTLR()
void
synpred2_ANTLR_fragment()
boolean
synpred3_ANTLR()
void
synpred3_ANTLR_fragment()
boolean
synpred4_ANTLR()
void
synpred4_ANTLR_fragment()
-
从类继承的方法 org.antlr.runtime.Lexer
emit, emit, getCharErrorDisplay, getCharIndex, getCharPositionInLine, getCharStream, getEOFToken, getErrorMessage, getLine, getSourceName, getText, match, match, matchAny, matchRange, 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
- 另请参阅:
- 常量字段值
-
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
- 另请参阅:
- 常量字段值
-
AMPERSAND
public static final int AMPERSAND
- 另请参阅:
- 常量字段值
-
ARG
public static final int ARG
- 另请参阅:
- 常量字段值
-
ARGLIST
public static final int ARGLIST
- 另请参阅:
- 常量字段值
-
ARG_ACTION
public static final int ARG_ACTION
- 另请参阅:
- 常量字段值
-
ASSIGN
public static final int ASSIGN
- 另请参阅:
- 常量字段值
-
BACKTRACK_SEMPRED
public static final int BACKTRACK_SEMPRED
- 另请参阅:
- 常量字段值
-
BANG
public static final int BANG
- 另请参阅:
- 常量字段值
-
BLOCK
public static final int BLOCK
- 另请参阅:
- 常量字段值
-
CATCH
public static final int CATCH
- 另请参阅:
- 常量字段值
-
CHAR_LITERAL
public static final int CHAR_LITERAL
- 另请参阅:
- 常量字段值
-
CHAR_RANGE
public static final int CHAR_RANGE
- 另请参阅:
- 常量字段值
-
CLOSE_ELEMENT_OPTION
public static final int CLOSE_ELEMENT_OPTION
- 另请参阅:
- 常量字段值
-
CLOSURE
public static final int CLOSURE
- 另请参阅:
- 常量字段值
-
COLON
public static final int COLON
- 另请参阅:
- 常量字段值
-
COMBINED_GRAMMAR
public static final int COMBINED_GRAMMAR
- 另请参阅:
- 常量字段值
-
COMMA
public static final int COMMA
- 另请参阅:
- 常量字段值
-
COMMENT
public static final int COMMENT
- 另请参阅:
- 常量字段值
-
DIGIT
public static final int DIGIT
- 另请参阅:
- 常量字段值
-
DOC_COMMENT
public static final int DOC_COMMENT
- 另请参阅:
- 常量字段值
-
DOLLAR
public static final int DOLLAR
- 另请参阅:
- 常量字段值
-
DOT
public static final int DOT
- 另请参阅:
- 常量字段值
-
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
- 另请参阅:
- 常量字段值
-
ETC
public static final int ETC
- 另请参阅:
- 常量字段值
-
FINALLY
public static final int FINALLY
- 另请参阅:
- 常量字段值
-
FORCED_ACTION
public static final int FORCED_ACTION
- 另请参阅:
- 常量字段值
-
FRAGMENT
public static final int FRAGMENT
- 另请参阅:
- 常量字段值
-
GATED_SEMPRED
public static final int GATED_SEMPRED
- 另请参阅:
- 常量字段值
-
GRAMMAR
public static final int GRAMMAR
- 另请参阅:
- 常量字段值
-
ID
public static final int ID
- 另请参阅:
- 常量字段值
-
IMPLIES
public static final int IMPLIES
- 另请参阅:
- 常量字段值
-
IMPORT
public static final int IMPORT
- 另请参阅:
- 常量字段值
-
INITACTION
public static final int INITACTION
- 另请参阅:
- 常量字段值
-
INT
public static final int INT
- 另请参阅:
- 常量字段值
-
LABEL
public static final int LABEL
- 另请参阅:
- 常量字段值
-
LEXER
public static final int LEXER
- 另请参阅:
- 常量字段值
-
LEXER_GRAMMAR
public static final int LEXER_GRAMMAR
- 另请参阅:
- 常量字段值
-
LPAREN
public static final int LPAREN
- 另请参阅:
- 常量字段值
-
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
- 另请参阅:
- 常量字段值
-
NOT
public static final int NOT
- 另请参阅:
- 常量字段值
-
OPEN_ELEMENT_OPTION
public static final int OPEN_ELEMENT_OPTION
- 另请参阅:
- 常量字段值
-
OPTIONAL
public static final int OPTIONAL
- 另请参阅:
- 常量字段值
-
OPTIONS
public static final int OPTIONS
- 另请参阅:
- 常量字段值
-
OR
public static final int OR
- 另请参阅:
- 常量字段值
-
PARSER
public static final int PARSER
- 另请参阅:
- 常量字段值
-
PARSER_GRAMMAR
public static final int PARSER_GRAMMAR
- 另请参阅:
- 常量字段值
-
PLUS
public static final int PLUS
- 另请参阅:
- 常量字段值
-
PLUS_ASSIGN
public static final int PLUS_ASSIGN
- 另请参阅:
- 常量字段值
-
POSITIVE_CLOSURE
public static final int POSITIVE_CLOSURE
- 另请参阅:
- 常量字段值
-
PREC_RULE
public static final int PREC_RULE
- 另请参阅:
- 常量字段值
-
PRIVATE
public static final int PRIVATE
- 另请参阅:
- 常量字段值
-
PROTECTED
public static final int PROTECTED
- 另请参阅:
- 常量字段值
-
PUBLIC
public static final int PUBLIC
- 另请参阅:
- 常量字段值
-
QUESTION
public static final int QUESTION
- 另请参阅:
- 常量字段值
-
RANGE
public static final int RANGE
- 另请参阅:
- 常量字段值
-
RCURLY
public static final int RCURLY
- 另请参阅:
- 常量字段值
-
RECURSIVE_RULE_REF
public static final int RECURSIVE_RULE_REF
- 另请参阅:
- 常量字段值
-
RET
public static final int RET
- 另请参阅:
- 常量字段值
-
RETURNS
public static final int RETURNS
- 另请参阅:
- 常量字段值
-
REWRITE
public static final int REWRITE
- 另请参阅:
- 常量字段值
-
REWRITES
public static final int REWRITES
- 另请参阅:
- 常量字段值
-
ROOT
public static final int ROOT
- 另请参阅:
- 常量字段值
-
RPAREN
public static final int RPAREN
- 另请参阅:
- 常量字段值
-
RULE
public static final int RULE
- 另请参阅:
- 常量字段值
-
RULE_REF
public static final int RULE_REF
- 另请参阅:
- 常量字段值
-
SCOPE
public static final int SCOPE
- 另请参阅:
- 常量字段值
-
SEMI
public static final int SEMI
- 另请参阅:
- 常量字段值
-
SEMPRED
public static final int SEMPRED
- 另请参阅:
- 常量字段值
-
SL_COMMENT
public static final int SL_COMMENT
- 另请参阅:
- 常量字段值
-
SRC
public static final int SRC
- 另请参阅:
- 常量字段值
-
STAR
public static final int STAR
- 另请参阅:
- 常量字段值
-
STRAY_BRACKET
public static final int STRAY_BRACKET
- 另请参阅:
- 常量字段值
-
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
- 另请参阅:
- 常量字段值
-
THROWS
public static final int THROWS
- 另请参阅:
- 常量字段值
-
TOKENS
public static final int TOKENS
- 另请参阅:
- 常量字段值
-
TOKEN_REF
public static final int TOKEN_REF
- 另请参阅:
- 常量字段值
-
TREE
public static final int TREE
- 另请参阅:
- 常量字段值
-
TREE_BEGIN
public static final int TREE_BEGIN
- 另请参阅:
- 常量字段值
-
TREE_GRAMMAR
public static final int TREE_GRAMMAR
- 另请参阅:
- 常量字段值
-
WILDCARD
public static final int WILDCARD
- 另请参阅:
- 常量字段值
-
WS
public static final int WS
- 另请参阅:
- 常量字段值
-
WS_LOOP
public static final int WS_LOOP
- 另请参阅:
- 常量字段值
-
WS_OPT
public static final int WS_OPT
- 另请参阅:
- 常量字段值
-
XDIGIT
public static final int XDIGIT
- 另请参阅:
- 常量字段值
-
hasASTOperator
public boolean hasASTOperator
-
dfa9
protected ANTLRLexer.DFA9 dfa9
-
dfa25
protected ANTLRLexer.DFA25 dfa25
-
-
构造器详细资料
-
ANTLRLexer
public ANTLRLexer()
-
ANTLRLexer
public ANTLRLexer(CharStream input)
-
ANTLRLexer
public ANTLRLexer(CharStream input, RecognizerSharedState state)
-
-
方法详细资料
-
getFileName
public java.lang.String getFileName()
-
setFileName
public void setFileName(java.lang.String value)
-
nextToken
public Token nextToken()
从类复制的说明:Lexer
Return a token from this source; i.e., match a token on the char stream.- 指定者:
nextToken
在接口中TokenSource
- 覆盖:
nextToken
在类中Lexer
-
getDelegates
public Lexer[] getDelegates()
-
getGrammarFileName
public java.lang.String getGrammarFileName()
从类复制的说明:BaseRecognizer
For debugging and other purposes, might want the grammar name. Have ANTLR generate an implementation for this method.- 覆盖:
getGrammarFileName
在类中BaseRecognizer
-
mCATCH
public final void mCATCH() throws RecognitionException
-
mFINALLY
public final void mFINALLY() throws RecognitionException
-
mFRAGMENT
public final void mFRAGMENT() throws RecognitionException
-
mGRAMMAR
public final void mGRAMMAR() throws RecognitionException
-
mIMPORT
public final void mIMPORT() throws RecognitionException
-
mLEXER
public final void mLEXER() throws RecognitionException
-
mPARSER
public final void mPARSER() throws RecognitionException
-
mPRIVATE
public final void mPRIVATE() throws RecognitionException
-
mPROTECTED
public final void mPROTECTED() throws RecognitionException
-
mPUBLIC
public final void mPUBLIC() throws RecognitionException
-
mRETURNS
public final void mRETURNS() throws RecognitionException
-
mSCOPE
public final void mSCOPE() throws RecognitionException
-
mTHROWS
public final void mTHROWS() throws RecognitionException
-
mTREE
public final void mTREE() throws RecognitionException
-
mSTRING_LITERAL
public final void mSTRING_LITERAL() throws RecognitionException
-
mFORCED_ACTION
public final void mFORCED_ACTION() throws RecognitionException
-
mDOC_COMMENT
public final void mDOC_COMMENT() throws RecognitionException
-
mSEMPRED
public final void mSEMPRED() throws RecognitionException
-
mWS
public final void mWS() throws RecognitionException
-
mCOMMENT
public final void mCOMMENT() throws RecognitionException
-
mSL_COMMENT
public final void mSL_COMMENT() throws RecognitionException
-
mML_COMMENT
public final void mML_COMMENT(java.util.List<java.lang.Integer> type) throws RecognitionException
-
mOPEN_ELEMENT_OPTION
public final void mOPEN_ELEMENT_OPTION() throws RecognitionException
-
mCLOSE_ELEMENT_OPTION
public final void mCLOSE_ELEMENT_OPTION() throws RecognitionException
-
mAMPERSAND
public final void mAMPERSAND() throws RecognitionException
-
mCOMMA
public final void mCOMMA() throws RecognitionException
-
mQUESTION
public final void mQUESTION() throws RecognitionException
-
mTREE_BEGIN
public final void mTREE_BEGIN() throws RecognitionException
-
mLPAREN
public final void mLPAREN() throws RecognitionException
-
mRPAREN
public final void mRPAREN() throws RecognitionException
-
mCOLON
public final void mCOLON() throws RecognitionException
-
mSTAR
public final void mSTAR() throws RecognitionException
-
mPLUS
public final void mPLUS() throws RecognitionException
-
mASSIGN
public final void mASSIGN() throws RecognitionException
-
mPLUS_ASSIGN
public final void mPLUS_ASSIGN() throws RecognitionException
-
mIMPLIES
public final void mIMPLIES() throws RecognitionException
-
mREWRITE
public final void mREWRITE() throws RecognitionException
-
mSEMI
public final void mSEMI() throws RecognitionException
-
mROOT
public final void mROOT() throws RecognitionException
-
mBANG
public final void mBANG() throws RecognitionException
-
mOR
public final void mOR() throws RecognitionException
-
mWILDCARD
public final void mWILDCARD() throws RecognitionException
-
mETC
public final void mETC() throws RecognitionException
-
mRANGE
public final void mRANGE() throws RecognitionException
-
mNOT
public final void mNOT() throws RecognitionException
-
mRCURLY
public final void mRCURLY() throws RecognitionException
-
mDOLLAR
public final void mDOLLAR() throws RecognitionException
-
mSTRAY_BRACKET
public final void mSTRAY_BRACKET() throws RecognitionException
-
mCHAR_LITERAL
public final void mCHAR_LITERAL() 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
-
mDIGIT
public final void mDIGIT() 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(java.util.List<java.lang.String> text) 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
-
mTOKENS
public final void mTOKENS() throws RecognitionException
-
mOPTIONS
public final void mOPTIONS() throws RecognitionException
-
mRULE_REF
public final void mRULE_REF() throws RecognitionException
-
mWS_LOOP
public final void mWS_LOOP() throws RecognitionException
-
mWS_OPT
public final void mWS_OPT() throws RecognitionException
-
mSRC
public final void mSRC() throws RecognitionException
-
mTokens
public void mTokens() throws RecognitionException
从类复制的说明:Lexer
This is the lexer entry point that sets instance var 'token'- 指定者:
mTokens
在类中Lexer
- 抛出:
RecognitionException
-
synpred1_ANTLR_fragment
public final void synpred1_ANTLR_fragment() throws RecognitionException
-
synpred2_ANTLR_fragment
public final void synpred2_ANTLR_fragment() throws RecognitionException
-
synpred3_ANTLR_fragment
public final void synpred3_ANTLR_fragment() throws RecognitionException
-
synpred4_ANTLR_fragment
public final void synpred4_ANTLR_fragment() throws RecognitionException
-
synpred1_ANTLR
public final boolean synpred1_ANTLR()
-
synpred3_ANTLR
public final boolean synpred3_ANTLR()
-
synpred4_ANTLR
public final boolean synpred4_ANTLR()
-
synpred2_ANTLR
public final boolean synpred2_ANTLR()
-
-