Public Member Functions | |
Token () | |
Token (int t) | |
Token (int t, String txt) | |
int | getColumn () |
int | getLine () |
String | getFilename () |
void | setFilename (String name) |
String | getText () |
void | setText (String t) |
void | setColumn (int c) |
void | setLine (int l) |
int | getType () |
void | setType (int t) |
String | toString () |
Static Public Attributes | |
static final int | MIN_USER_TYPE = 4 |
static final int | NULL_TREE_LOOKAHEAD = 3 |
static final int | INVALID_TYPE = 0 |
static final int | EOF_TYPE = 1 |
static final int | SKIP = -1 |
static Token | badToken = new Token(INVALID_TYPE, "<no text>") |
Protected Attributes | |
int | type = INVALID_TYPE |
A token is minimally a token type. Subclasses can add the text matched for the token and line info.
antlr.Token.Token | ( | ) |
antlr.Token.Token | ( | int | t | ) |
References antlr.Token.type.
antlr.Token.Token | ( | int | t, | |
String | txt | |||
) |
References antlr.Token.setText(), and antlr.Token.type.
int antlr.Token.getColumn | ( | ) |
Reimplemented in antlr.CommonToken.
Referenced by antlr.ActionElement.ActionElement(), antlr.preprocessor.Preprocessor.class_def(), antlr.DefineGrammarSymbols.defineToken(), antlr.CodeGenerator.extractIdOfAction(), antlr.CodeGenerator.extractTypeOfAction(), antlr.GrammarElement.GrammarElement(), antlr.ANTLRParser.lexerSpec(), antlr.MismatchedTokenException.MismatchedTokenException(), antlr.NoViableAltException.NoViableAltException(), antlr.ANTLRParser.parserSpec(), antlr.MakeGrammar.refCharLiteral(), antlr.MakeGrammar.refCharRange(), antlr.MakeGrammar.refElementOption(), antlr.MakeGrammar.refReturnAction(), antlr.MakeGrammar.refRule(), antlr.MakeGrammar.refStringLiteral(), antlr.MakeGrammar.refToken(), antlr.MakeGrammar.refTokenRange(), antlr.MakeGrammar.refTokensSpecElementOption(), antlr.ANTLRParser.setBlockElement(), antlr.DefineGrammarSymbols.setFileOption(), antlr.CodeGenerator.setGrammar(), antlr.DefineGrammarSymbols.setGrammarOption(), antlr.TreeWalkerGrammar.setOption(), antlr.RuleBlock.setOption(), antlr.ParserGrammar.setOption(), antlr.LexerGrammar.setOption(), antlr.GrammarAtom.setOption(), antlr.Grammar.setOption(), antlr.AlternativeBlock.setOption(), antlr.StringLiteralElement.StringLiteralElement(), and antlr.TokenRefElement.TokenRefElement().
String antlr.Token.getFilename | ( | ) |
int antlr.Token.getLine | ( | ) |
Reimplemented in antlr.CommonToken.
Referenced by antlr.ActionElement.ActionElement(), antlr.CharLiteralElement.CharLiteralElement(), antlr.CharRangeElement.CharRangeElement(), antlr.preprocessor.Preprocessor.class_def(), antlr.DefineGrammarSymbols.defineToken(), antlr.CodeGenerator.extractIdOfAction(), antlr.CodeGenerator.extractTypeOfAction(), antlr.JavaCodeGenerator.gen(), antlr.CSharpCodeGenerator.genBody(), antlr.CppCodeGenerator.genInclude(), antlr.CppCodeGenerator.genLineNo(), antlr.DefineGrammarSymbols.getHeaderActionLine(), antlr.GrammarElement.GrammarElement(), antlr.ANTLRParser.lexerSpec(), antlr.MismatchedTokenException.MismatchedTokenException(), antlr.NoViableAltException.NoViableAltException(), antlr.ANTLRParser.parserSpec(), antlr.CppCodeGenerator.printAction(), antlr.PythonCodeGenerator.printGrammarAction(), antlr.CppCodeGenerator.printHeaderAction(), antlr.ANTLRParser.qualifiedID(), antlr.MakeGrammar.refCharLiteral(), antlr.MakeGrammar.refCharRange(), antlr.MakeGrammar.refElementOption(), antlr.DefineGrammarSymbols.refHeaderAction(), antlr.MakeGrammar.refReturnAction(), antlr.MakeGrammar.refRule(), antlr.MakeGrammar.refStringLiteral(), antlr.MakeGrammar.refToken(), antlr.MakeGrammar.refTokenRange(), antlr.MakeGrammar.refTokensSpecElementOption(), antlr.ANTLRParser.setBlockElement(), antlr.DefineGrammarSymbols.setFileOption(), antlr.CodeGenerator.setGrammar(), antlr.DefineGrammarSymbols.setGrammarOption(), antlr.TreeWalkerGrammar.setOption(), antlr.RuleBlock.setOption(), antlr.ParserGrammar.setOption(), antlr.LexerGrammar.setOption(), antlr.GrammarAtom.setOption(), antlr.Grammar.setOption(), antlr.AlternativeBlock.setOption(), antlr.StringLiteralElement.StringLiteralElement(), antlr.TokenRangeElement.TokenRangeElement(), antlr.TokenRefElement.TokenRefElement(), and antlr.WildcardElement.WildcardElement().
String antlr.Token.getText | ( | ) |
Reimplemented in antlr.CommonToken.
Referenced by antlr.DefineGrammarSymbols._refStringLiteral(), antlr.DefineGrammarSymbols._refToken(), antlr.ActionElement.ActionElement(), antlr.RuleBlock.addExceptionSpec(), antlr.MakeGrammar.beginExceptionSpec(), antlr.CharLiteralElement.CharLiteralElement(), antlr.CharRangeElement.CharRangeElement(), antlr.preprocessor.Preprocessor.class_def(), antlr.ANTLRParser.classDef(), antlr.DefineGrammarSymbols.defineToken(), antlr.preprocessor.Preprocessor.exceptionHandler(), antlr.preprocessor.Preprocessor.exceptionSpec(), antlr.CodeGenerator.extractIdOfAction(), antlr.CodeGenerator.extractTypeOfAction(), antlr.RuleBlock.findExceptionSpec(), antlr.PythonCodeGenerator.gen(), antlr.JavaCodeGenerator.gen(), antlr.DiagnosticCodeGenerator.gen(), antlr.HTMLCodeGenerator.genAlt(), antlr.DocBookCodeGenerator.genAlt(), antlr.DiagnosticCodeGenerator.genAlt(), antlr.CSharpCodeGenerator.genBody(), antlr.CppCodeGenerator.genInclude(), antlr.DiagnosticCodeGenerator.genRule(), antlr.DefineGrammarSymbols.getHeaderAction(), antlr.Grammar.getIntegerOption(), antlr.NoViableAltException.getMessage(), antlr.GrammarAtom.GrammarAtom(), antlr.preprocessor.Preprocessor.grammarFile(), antlr.CommonAST.initialize(), INTNode.INTNode(), antlr.ANTLRTokdefParser.line(), antlr.actions.python.ActionLexer.mAST_CONSTRUCTOR(), antlr.actions.java.ActionLexer.mAST_CONSTRUCTOR(), antlr.actions.csharp.ActionLexer.mAST_CONSTRUCTOR(), antlr.actions.cpp.ActionLexer.mAST_CONSTRUCTOR(), antlr.actions.python.ActionLexer.mAST_ITEM(), antlr.actions.java.ActionLexer.mAST_ITEM(), antlr.actions.csharp.ActionLexer.mAST_ITEM(), antlr.actions.cpp.ActionLexer.mAST_ITEM(), antlr.debug.LLkDebuggingParser.match(), antlr.debug.LLkDebuggingParser.matchNot(), antlr.MismatchedTokenException.MismatchedTokenException(), antlr.actions.python.ActionLexer.mTEXT_ITEM(), antlr.actions.java.ActionLexer.mTEXT_ITEM(), antlr.actions.csharp.ActionLexer.mTEXT_ITEM(), antlr.actions.cpp.ActionLexer.mTEXT_ITEM(), antlr.actions.python.ActionLexer.mTREE(), antlr.actions.java.ActionLexer.mTREE(), antlr.actions.csharp.ActionLexer.mTREE(), antlr.actions.cpp.ActionLexer.mTREE(), antlr.preprocessor.Preprocessor.optionSpec(), antlr.CppCodeGenerator.printAction(), antlr.PythonCodeGenerator.printGrammarAction(), antlr.CppCodeGenerator.printHeaderAction(), antlr.ANTLRParser.qualifiedID(), antlr.MakeGrammar.refArgAction(), antlr.MakeGrammar.refCharRange(), antlr.MakeGrammar.refElementOption(), antlr.DefineGrammarSymbols.refHeaderAction(), antlr.MakeGrammar.refInitAction(), antlr.MakeGrammar.refReturnAction(), antlr.MakeGrammar.refRule(), antlr.DefineGrammarSymbols.refRule(), antlr.MakeGrammar.refSemPred(), antlr.MakeGrammar.refStringLiteral(), antlr.DefineGrammarSymbols.refTokenRange(), antlr.MakeGrammar.refTokensSpecElementOption(), antlr.preprocessor.Preprocessor.rule(), antlr.ANTLRParser.rule(), antlr.RuleRefElement.RuleRefElement(), antlr.MakeGrammar.setArgOfRuleRef(), antlr.ANTLRParser.setBlockElement(), antlr.DefineGrammarSymbols.setFileOption(), antlr.CodeGenerator.setGrammar(), antlr.DefineGrammarSymbols.setGrammarOption(), antlr.TreeWalkerGrammar.setOption(), antlr.RuleBlock.setOption(), antlr.ParserGrammar.setOption(), antlr.LexerGrammar.setOption(), antlr.GrammarAtom.setOption(), antlr.Grammar.setOption(), antlr.AlternativeBlock.setOption(), antlr.DefineGrammarSymbols.startLexer(), antlr.DefineGrammarSymbols.startParser(), antlr.DefineGrammarSymbols.startTreeWalker(), antlr.preprocessor.Preprocessor.superClass(), antlr.ANTLRParser.superClass(), antlr.preprocessor.Preprocessor.throwsSpec(), antlr.ANTLRParser.throwsSpec(), antlr.TokenRangeElement.TokenRangeElement(), antlr.Token.toString(), and antlr.ParseTreeToken.toString().
int antlr.Token.getType | ( | ) |
References antlr.Token.type.
Referenced by antlr.ANTLRParser.classDef(), antlr.ASTFactory.create(), antlr.Grammar.getIntegerOption(), antlr.CommonAST.initialize(), antlr.TokenBuffer.LA(), Test.main(), antlr.ANTLRLexer.mCOMMENT(), antlr.preprocessor.PreprocessorLexer.mID_OR_KEYWORD(), antlr.TokenStreamRewriteEngine.nextToken(), antlr.TokenStreamBasicFilter.nextToken(), antlr.preprocessor.PreprocessorLexer.nextToken(), PascalLexer.nextToken(), antlr.actions.python.CodeLexer.nextToken(), antlr.ANTLRTokdefLexer.nextToken(), antlr.ANTLRLexer.nextToken(), antlr.actions.python.ActionLexer.nextToken(), antlr.actions.java.ActionLexer.nextToken(), antlr.actions.csharp.ActionLexer.nextToken(), antlr.actions.cpp.ActionLexer.nextToken(), antlr.DefineGrammarSymbols.setFileOption(), antlr.DefineGrammarSymbols.setGrammarOption(), antlr.LexerGrammar.setOption(), antlr.TokenWithIndex.toString(), and antlr.Token.toString().
void antlr.Token.setColumn | ( | int | c | ) |
Reimplemented in antlr.CommonToken.
Referenced by antlr.CharScanner.makeToken().
void antlr.Token.setFilename | ( | String | name | ) |
void antlr.Token.setLine | ( | int | l | ) |
Reimplemented in antlr.CommonToken.
Referenced by antlr.CharScanner.makeToken(), and antlr.ANTLRParser.qualifiedID().
void antlr.Token.setText | ( | String | t | ) |
Reimplemented in antlr.CommonToken.
Referenced by antlr.MakeGrammar.beginExceptionSpec(), antlr.preprocessor.PreprocessorLexer.mACTION(), antlr.actions.python.CodeLexer.mACTION(), antlr.ANTLRLexer.mACTION(), antlr.actions.python.ActionLexer.mACTION(), antlr.actions.java.ActionLexer.mACTION(), antlr.actions.csharp.ActionLexer.mACTION(), antlr.actions.cpp.ActionLexer.mACTION(), antlr.preprocessor.PreprocessorLexer.mALT(), antlr.actions.python.ActionLexer.mARG(), antlr.actions.java.ActionLexer.mARG(), antlr.actions.csharp.ActionLexer.mARG(), antlr.actions.cpp.ActionLexer.mARG(), antlr.preprocessor.PreprocessorLexer.mARG_ACTION(), antlr.ANTLRLexer.mARG_ACTION(), PascalLexer.mASSIGN(), antlr.ANTLRTokdefLexer.mASSIGN(), antlr.ANTLRLexer.mASSIGN(), antlr.preprocessor.PreprocessorLexer.mASSIGN_RHS(), antlr.actions.python.ActionLexer.mAST_CONSTRUCTOR(), antlr.actions.java.ActionLexer.mAST_CONSTRUCTOR(), antlr.actions.csharp.ActionLexer.mAST_CONSTRUCTOR(), antlr.actions.cpp.ActionLexer.mAST_CONSTRUCTOR(), antlr.actions.python.ActionLexer.mAST_CTOR_ELEMENT(), antlr.actions.java.ActionLexer.mAST_CTOR_ELEMENT(), antlr.actions.csharp.ActionLexer.mAST_CTOR_ELEMENT(), antlr.actions.cpp.ActionLexer.mAST_CTOR_ELEMENT(), antlr.actions.python.ActionLexer.mAST_ITEM(), antlr.actions.java.ActionLexer.mAST_ITEM(), antlr.actions.csharp.ActionLexer.mAST_ITEM(), antlr.actions.cpp.ActionLexer.mAST_ITEM(), PascalLexer.mAT(), antlr.preprocessor.PreprocessorLexer.mBANG(), antlr.ANTLRLexer.mBANG(), antlr.ANTLRLexer.mCARET(), antlr.actions.python.ActionLexer.mCHAR(), antlr.actions.java.ActionLexer.mCHAR(), antlr.actions.csharp.ActionLexer.mCHAR(), antlr.actions.cpp.ActionLexer.mCHAR(), antlr.preprocessor.PreprocessorLexer.mCHAR_LITERAL(), antlr.ANTLRLexer.mCHAR_LITERAL(), antlr.ANTLRLexer.mCLOSE_ELEMENT_OPTION(), PascalLexer.mCOLON(), antlr.ANTLRLexer.mCOLON(), antlr.preprocessor.PreprocessorLexer.mCOMMA(), PascalLexer.mCOMMA(), antlr.ANTLRLexer.mCOMMA(), antlr.preprocessor.PreprocessorLexer.mCOMMENT(), antlr.actions.python.CodeLexer.mCOMMENT(), antlr.ANTLRLexer.mCOMMENT(), antlr.actions.python.ActionLexer.mCOMMENT(), antlr.actions.java.ActionLexer.mCOMMENT(), antlr.actions.csharp.ActionLexer.mCOMMENT(), antlr.actions.cpp.ActionLexer.mCOMMENT(), PascalLexer.mCOMMENT_1(), PascalLexer.mCOMMENT_2(), antlr.preprocessor.PreprocessorLexer.mCURLY_BLOCK_SCARF(), antlr.preprocessor.PreprocessorLexer.mDIGIT(), antlr.ANTLRTokdefLexer.mDIGIT(), antlr.ANTLRLexer.mDIGIT(), antlr.actions.python.ActionLexer.mDIGIT(), antlr.actions.java.ActionLexer.mDIGIT(), antlr.actions.csharp.ActionLexer.mDIGIT(), antlr.actions.cpp.ActionLexer.mDIGIT(), PascalLexer.mDOT(), antlr.preprocessor.PreprocessorLexer.mELEMENT(), PascalLexer.mEQUAL(), antlr.preprocessor.PreprocessorLexer.mESC(), antlr.ANTLRTokdefLexer.mESC(), antlr.ANTLRLexer.mESC(), antlr.actions.python.ActionLexer.mESC(), antlr.actions.java.ActionLexer.mESC(), antlr.actions.csharp.ActionLexer.mESC(), antlr.actions.cpp.ActionLexer.mESC(), PascalLexer.mEXPONENT(), PascalLexer.mGE(), PascalLexer.mGT(), antlr.preprocessor.PreprocessorLexer.mID(), antlr.ANTLRTokdefLexer.mID(), antlr.actions.python.ActionLexer.mID(), antlr.actions.java.ActionLexer.mID(), antlr.actions.csharp.ActionLexer.mID(), antlr.actions.cpp.ActionLexer.mID(), antlr.actions.python.ActionLexer.mID_ELEMENT(), antlr.actions.java.ActionLexer.mID_ELEMENT(), antlr.actions.csharp.ActionLexer.mID_ELEMENT(), antlr.actions.cpp.ActionLexer.mID_ELEMENT(), antlr.preprocessor.PreprocessorLexer.mID_OR_KEYWORD(), PascalLexer.mIDENT(), antlr.actions.python.CodeLexer.mIGNWS(), antlr.actions.python.ActionLexer.mIGNWS(), antlr.ANTLRLexer.mIMPLIES(), antlr.ANTLRTokdefLexer.mINT(), antlr.ANTLRLexer.mINT(), antlr.actions.python.ActionLexer.mINT(), antlr.actions.java.ActionLexer.mINT(), antlr.actions.csharp.ActionLexer.mINT(), antlr.actions.cpp.ActionLexer.mINT(), antlr.actions.python.ActionLexer.mINT_OR_FLOAT(), antlr.actions.java.ActionLexer.mINT_OR_FLOAT(), antlr.actions.csharp.ActionLexer.mINT_OR_FLOAT(), antlr.actions.cpp.ActionLexer.mINT_OR_FLOAT(), antlr.ANTLRLexer.mINTERNAL_RULE_REF(), PascalLexer.mLBRACK(), PascalLexer.mLBRACK2(), PascalLexer.mLCURLY(), PascalLexer.mLE(), antlr.preprocessor.PreprocessorLexer.mLPAREN(), PascalLexer.mLPAREN(), antlr.ANTLRTokdefLexer.mLPAREN(), antlr.ANTLRLexer.mLPAREN(), PascalLexer.mLT(), PascalLexer.mMINUS(), antlr.preprocessor.PreprocessorLexer.mML_COMMENT(), antlr.actions.python.CodeLexer.mML_COMMENT(), antlr.ANTLRTokdefLexer.mML_COMMENT(), antlr.ANTLRLexer.mML_COMMENT(), antlr.actions.python.ActionLexer.mML_COMMENT(), antlr.actions.java.ActionLexer.mML_COMMENT(), antlr.actions.csharp.ActionLexer.mML_COMMENT(), antlr.actions.cpp.ActionLexer.mML_COMMENT(), antlr.ANTLRLexer.mNESTED_ACTION(), antlr.ANTLRLexer.mNESTED_ARG_ACTION(), antlr.preprocessor.PreprocessorLexer.mNEWLINE(), PascalLexer.mNOT_EQUAL(), antlr.ANTLRLexer.mNOT_OP(), PascalLexer.mNUM_INT(), antlr.ANTLRLexer.mOPEN_ELEMENT_OPTION(), antlr.ANTLRLexer.mOR(), PascalLexer.mPLUS(), antlr.ANTLRLexer.mPLUS(), PascalLexer.mPOINTER(), antlr.ANTLRLexer.mQUESTION(), antlr.ANTLRLexer.mRANGE(), PascalLexer.mRBRACK(), PascalLexer.mRBRACK2(), antlr.preprocessor.PreprocessorLexer.mRCURLY(), PascalLexer.mRCURLY(), antlr.ANTLRLexer.mRCURLY(), antlr.preprocessor.PreprocessorLexer.mRPAREN(), PascalLexer.mRPAREN(), antlr.ANTLRTokdefLexer.mRPAREN(), antlr.ANTLRLexer.mRPAREN(), antlr.preprocessor.PreprocessorLexer.mRULE_BLOCK(), antlr.ANTLRLexer.mRULE_REF(), antlr.preprocessor.PreprocessorLexer.mSEMI(), PascalLexer.mSEMI(), antlr.ANTLRLexer.mSEMI(), antlr.preprocessor.PreprocessorLexer.mSL_COMMENT(), antlr.actions.python.CodeLexer.mSL_COMMENT(), antlr.ANTLRTokdefLexer.mSL_COMMENT(), antlr.ANTLRLexer.mSL_COMMENT(), antlr.actions.python.ActionLexer.mSL_COMMENT(), antlr.actions.java.ActionLexer.mSL_COMMENT(), antlr.actions.csharp.ActionLexer.mSL_COMMENT(), antlr.actions.cpp.ActionLexer.mSL_COMMENT(), PascalLexer.mSLASH(), PascalLexer.mSTAR(), antlr.ANTLRLexer.mSTAR(), antlr.ANTLRTokdefLexer.mSTRING(), antlr.actions.python.ActionLexer.mSTRING(), antlr.actions.java.ActionLexer.mSTRING(), antlr.actions.csharp.ActionLexer.mSTRING(), antlr.actions.cpp.ActionLexer.mSTRING(), antlr.preprocessor.PreprocessorLexer.mSTRING_LITERAL(), PascalLexer.mSTRING_LITERAL(), antlr.ANTLRLexer.mSTRING_LITERAL(), antlr.actions.python.CodeLexer.mSTUFF(), antlr.actions.python.ActionLexer.mSTUFF(), antlr.actions.java.ActionLexer.mSTUFF(), antlr.actions.csharp.ActionLexer.mSTUFF(), antlr.actions.cpp.ActionLexer.mSTUFF(), antlr.preprocessor.PreprocessorLexer.mSUBRULE_BLOCK(), antlr.actions.python.ActionLexer.mTEXT_ARG(), antlr.actions.java.ActionLexer.mTEXT_ARG(), antlr.actions.csharp.ActionLexer.mTEXT_ARG(), antlr.actions.cpp.ActionLexer.mTEXT_ARG(), antlr.actions.python.ActionLexer.mTEXT_ARG_ELEMENT(), antlr.actions.java.ActionLexer.mTEXT_ARG_ELEMENT(), antlr.actions.csharp.ActionLexer.mTEXT_ARG_ELEMENT(), antlr.actions.cpp.ActionLexer.mTEXT_ARG_ELEMENT(), antlr.actions.python.ActionLexer.mTEXT_ARG_ID_ELEMENT(), antlr.actions.java.ActionLexer.mTEXT_ARG_ID_ELEMENT(), antlr.actions.csharp.ActionLexer.mTEXT_ARG_ID_ELEMENT(), antlr.actions.cpp.ActionLexer.mTEXT_ARG_ID_ELEMENT(), antlr.actions.python.ActionLexer.mTEXT_ITEM(), antlr.actions.java.ActionLexer.mTEXT_ITEM(), antlr.actions.csharp.ActionLexer.mTEXT_ITEM(), antlr.actions.cpp.ActionLexer.mTEXT_ITEM(), antlr.ANTLRLexer.mTOKEN_REF(), antlr.actions.python.ActionLexer.mTREE(), antlr.actions.java.ActionLexer.mTREE(), antlr.actions.csharp.ActionLexer.mTREE(), antlr.actions.cpp.ActionLexer.mTREE(), antlr.ANTLRLexer.mTREE_BEGIN(), antlr.actions.python.ActionLexer.mTREE_ELEMENT(), antlr.actions.java.ActionLexer.mTREE_ELEMENT(), antlr.actions.csharp.ActionLexer.mTREE_ELEMENT(), antlr.actions.cpp.ActionLexer.mTREE_ELEMENT(), antlr.actions.python.ActionLexer.mVAR_ASSIGN(), antlr.actions.java.ActionLexer.mVAR_ASSIGN(), antlr.actions.csharp.ActionLexer.mVAR_ASSIGN(), antlr.actions.cpp.ActionLexer.mVAR_ASSIGN(), antlr.ANTLRLexer.mWILDCARD(), antlr.preprocessor.PreprocessorLexer.mWS(), PascalLexer.mWS(), antlr.ANTLRTokdefLexer.mWS(), antlr.ANTLRLexer.mWS(), antlr.actions.python.ActionLexer.mWS(), antlr.actions.java.ActionLexer.mWS(), antlr.actions.csharp.ActionLexer.mWS(), antlr.actions.cpp.ActionLexer.mWS(), antlr.ANTLRLexer.mWS_LOOP(), antlr.ANTLRLexer.mWS_OPT(), antlr.preprocessor.PreprocessorLexer.mXDIGIT(), antlr.ANTLRTokdefLexer.mXDIGIT(), antlr.ANTLRLexer.mXDIGIT(), and antlr.Token.Token().
void antlr.Token.setType | ( | int | t | ) |
References antlr.Token.type.
Referenced by antlr.CharScanner.makeToken(), antlr.preprocessor.PreprocessorLexer.nextToken(), PascalLexer.nextToken(), antlr.actions.python.CodeLexer.nextToken(), antlr.ANTLRTokdefLexer.nextToken(), antlr.ANTLRLexer.nextToken(), antlr.actions.python.ActionLexer.nextToken(), antlr.actions.java.ActionLexer.nextToken(), antlr.actions.csharp.ActionLexer.nextToken(), and antlr.actions.cpp.ActionLexer.nextToken().
String antlr.Token.toString | ( | ) |
Reimplemented in antlr.CommonToken, and antlr.TokenWithIndex.
References antlr.Token.getText(), and antlr.Token.getType().
Token antlr.Token.badToken = new Token(INVALID_TYPE, "<no text>") [static] |
final int antlr.Token.EOF_TYPE = 1 [static] |
final int antlr.Token.INVALID_TYPE = 0 [static] |
Referenced by antlr.preprocessor.PreprocessorLexer.nextToken(), PascalLexer.nextToken(), antlr.actions.python.CodeLexer.nextToken(), antlr.ANTLRTokdefLexer.nextToken(), antlr.ANTLRLexer.nextToken(), antlr.actions.python.ActionLexer.nextToken(), antlr.actions.java.ActionLexer.nextToken(), antlr.actions.csharp.ActionLexer.nextToken(), and antlr.actions.cpp.ActionLexer.nextToken().
final int antlr.Token.MIN_USER_TYPE = 4 [static] |
final int antlr.Token.NULL_TREE_LOOKAHEAD = 3 [static] |
final int antlr.Token.SKIP = -1 [static] |
Referenced by antlr.preprocessor.PreprocessorLexer.mACTION(), antlr.actions.python.CodeLexer.mACTION(), antlr.ANTLRLexer.mACTION(), antlr.actions.python.ActionLexer.mACTION(), antlr.actions.java.ActionLexer.mACTION(), antlr.actions.csharp.ActionLexer.mACTION(), antlr.actions.cpp.ActionLexer.mACTION(), antlr.preprocessor.PreprocessorLexer.mALT(), antlr.actions.python.ActionLexer.mARG(), antlr.actions.java.ActionLexer.mARG(), antlr.actions.csharp.ActionLexer.mARG(), antlr.actions.cpp.ActionLexer.mARG(), antlr.preprocessor.PreprocessorLexer.mARG_ACTION(), antlr.ANTLRLexer.mARG_ACTION(), PascalLexer.mASSIGN(), antlr.ANTLRTokdefLexer.mASSIGN(), antlr.ANTLRLexer.mASSIGN(), antlr.preprocessor.PreprocessorLexer.mASSIGN_RHS(), antlr.actions.python.ActionLexer.mAST_CONSTRUCTOR(), antlr.actions.java.ActionLexer.mAST_CONSTRUCTOR(), antlr.actions.csharp.ActionLexer.mAST_CONSTRUCTOR(), antlr.actions.cpp.ActionLexer.mAST_CONSTRUCTOR(), antlr.actions.python.ActionLexer.mAST_CTOR_ELEMENT(), antlr.actions.java.ActionLexer.mAST_CTOR_ELEMENT(), antlr.actions.csharp.ActionLexer.mAST_CTOR_ELEMENT(), antlr.actions.cpp.ActionLexer.mAST_CTOR_ELEMENT(), antlr.actions.python.ActionLexer.mAST_ITEM(), antlr.actions.java.ActionLexer.mAST_ITEM(), antlr.actions.csharp.ActionLexer.mAST_ITEM(), antlr.actions.cpp.ActionLexer.mAST_ITEM(), PascalLexer.mAT(), antlr.preprocessor.PreprocessorLexer.mBANG(), antlr.ANTLRLexer.mBANG(), antlr.ANTLRLexer.mCARET(), antlr.actions.python.ActionLexer.mCHAR(), antlr.actions.java.ActionLexer.mCHAR(), antlr.actions.csharp.ActionLexer.mCHAR(), antlr.actions.cpp.ActionLexer.mCHAR(), antlr.preprocessor.PreprocessorLexer.mCHAR_LITERAL(), antlr.ANTLRLexer.mCHAR_LITERAL(), antlr.ANTLRLexer.mCLOSE_ELEMENT_OPTION(), PascalLexer.mCOLON(), antlr.ANTLRLexer.mCOLON(), antlr.preprocessor.PreprocessorLexer.mCOMMA(), PascalLexer.mCOMMA(), antlr.ANTLRLexer.mCOMMA(), antlr.preprocessor.PreprocessorLexer.mCOMMENT(), antlr.actions.python.CodeLexer.mCOMMENT(), antlr.ANTLRLexer.mCOMMENT(), antlr.actions.python.ActionLexer.mCOMMENT(), antlr.actions.java.ActionLexer.mCOMMENT(), antlr.actions.csharp.ActionLexer.mCOMMENT(), antlr.actions.cpp.ActionLexer.mCOMMENT(), PascalLexer.mCOMMENT_1(), PascalLexer.mCOMMENT_2(), antlr.preprocessor.PreprocessorLexer.mCURLY_BLOCK_SCARF(), antlr.preprocessor.PreprocessorLexer.mDIGIT(), antlr.ANTLRTokdefLexer.mDIGIT(), antlr.ANTLRLexer.mDIGIT(), antlr.actions.python.ActionLexer.mDIGIT(), antlr.actions.java.ActionLexer.mDIGIT(), antlr.actions.csharp.ActionLexer.mDIGIT(), antlr.actions.cpp.ActionLexer.mDIGIT(), PascalLexer.mDOT(), antlr.preprocessor.PreprocessorLexer.mELEMENT(), PascalLexer.mEQUAL(), antlr.preprocessor.PreprocessorLexer.mESC(), antlr.ANTLRTokdefLexer.mESC(), antlr.ANTLRLexer.mESC(), antlr.actions.python.ActionLexer.mESC(), antlr.actions.java.ActionLexer.mESC(), antlr.actions.csharp.ActionLexer.mESC(), antlr.actions.cpp.ActionLexer.mESC(), PascalLexer.mEXPONENT(), PascalLexer.mGE(), PascalLexer.mGT(), antlr.preprocessor.PreprocessorLexer.mID(), antlr.ANTLRTokdefLexer.mID(), antlr.actions.python.ActionLexer.mID(), antlr.actions.java.ActionLexer.mID(), antlr.actions.csharp.ActionLexer.mID(), antlr.actions.cpp.ActionLexer.mID(), antlr.actions.python.ActionLexer.mID_ELEMENT(), antlr.actions.java.ActionLexer.mID_ELEMENT(), antlr.actions.csharp.ActionLexer.mID_ELEMENT(), antlr.actions.cpp.ActionLexer.mID_ELEMENT(), antlr.preprocessor.PreprocessorLexer.mID_OR_KEYWORD(), PascalLexer.mIDENT(), antlr.actions.python.CodeLexer.mIGNWS(), antlr.actions.python.ActionLexer.mIGNWS(), antlr.ANTLRLexer.mIMPLIES(), antlr.ANTLRTokdefLexer.mINT(), antlr.ANTLRLexer.mINT(), antlr.actions.python.ActionLexer.mINT(), antlr.actions.java.ActionLexer.mINT(), antlr.actions.csharp.ActionLexer.mINT(), antlr.actions.cpp.ActionLexer.mINT(), antlr.actions.python.ActionLexer.mINT_OR_FLOAT(), antlr.actions.java.ActionLexer.mINT_OR_FLOAT(), antlr.actions.csharp.ActionLexer.mINT_OR_FLOAT(), antlr.actions.cpp.ActionLexer.mINT_OR_FLOAT(), antlr.ANTLRLexer.mINTERNAL_RULE_REF(), PascalLexer.mLBRACK(), PascalLexer.mLBRACK2(), PascalLexer.mLCURLY(), PascalLexer.mLE(), antlr.preprocessor.PreprocessorLexer.mLPAREN(), PascalLexer.mLPAREN(), antlr.ANTLRTokdefLexer.mLPAREN(), antlr.ANTLRLexer.mLPAREN(), PascalLexer.mLT(), PascalLexer.mMINUS(), antlr.preprocessor.PreprocessorLexer.mML_COMMENT(), antlr.actions.python.CodeLexer.mML_COMMENT(), antlr.ANTLRTokdefLexer.mML_COMMENT(), antlr.ANTLRLexer.mML_COMMENT(), antlr.actions.python.ActionLexer.mML_COMMENT(), antlr.actions.java.ActionLexer.mML_COMMENT(), antlr.actions.csharp.ActionLexer.mML_COMMENT(), antlr.actions.cpp.ActionLexer.mML_COMMENT(), antlr.ANTLRLexer.mNESTED_ACTION(), antlr.ANTLRLexer.mNESTED_ARG_ACTION(), antlr.preprocessor.PreprocessorLexer.mNEWLINE(), PascalLexer.mNOT_EQUAL(), antlr.ANTLRLexer.mNOT_OP(), PascalLexer.mNUM_INT(), antlr.ANTLRLexer.mOPEN_ELEMENT_OPTION(), antlr.ANTLRLexer.mOR(), PascalLexer.mPLUS(), antlr.ANTLRLexer.mPLUS(), PascalLexer.mPOINTER(), antlr.ANTLRLexer.mQUESTION(), antlr.ANTLRLexer.mRANGE(), PascalLexer.mRBRACK(), PascalLexer.mRBRACK2(), antlr.preprocessor.PreprocessorLexer.mRCURLY(), PascalLexer.mRCURLY(), antlr.ANTLRLexer.mRCURLY(), antlr.preprocessor.PreprocessorLexer.mRPAREN(), PascalLexer.mRPAREN(), antlr.ANTLRTokdefLexer.mRPAREN(), antlr.ANTLRLexer.mRPAREN(), antlr.preprocessor.PreprocessorLexer.mRULE_BLOCK(), antlr.ANTLRLexer.mRULE_REF(), antlr.preprocessor.PreprocessorLexer.mSEMI(), PascalLexer.mSEMI(), antlr.ANTLRLexer.mSEMI(), antlr.preprocessor.PreprocessorLexer.mSL_COMMENT(), antlr.actions.python.CodeLexer.mSL_COMMENT(), antlr.ANTLRTokdefLexer.mSL_COMMENT(), antlr.ANTLRLexer.mSL_COMMENT(), antlr.actions.python.ActionLexer.mSL_COMMENT(), antlr.actions.java.ActionLexer.mSL_COMMENT(), antlr.actions.csharp.ActionLexer.mSL_COMMENT(), antlr.actions.cpp.ActionLexer.mSL_COMMENT(), PascalLexer.mSLASH(), PascalLexer.mSTAR(), antlr.ANTLRLexer.mSTAR(), antlr.ANTLRTokdefLexer.mSTRING(), antlr.actions.python.ActionLexer.mSTRING(), antlr.actions.java.ActionLexer.mSTRING(), antlr.actions.csharp.ActionLexer.mSTRING(), antlr.actions.cpp.ActionLexer.mSTRING(), antlr.preprocessor.PreprocessorLexer.mSTRING_LITERAL(), PascalLexer.mSTRING_LITERAL(), antlr.ANTLRLexer.mSTRING_LITERAL(), antlr.actions.python.CodeLexer.mSTUFF(), antlr.actions.python.ActionLexer.mSTUFF(), antlr.actions.java.ActionLexer.mSTUFF(), antlr.actions.csharp.ActionLexer.mSTUFF(), antlr.actions.cpp.ActionLexer.mSTUFF(), antlr.preprocessor.PreprocessorLexer.mSUBRULE_BLOCK(), antlr.actions.python.ActionLexer.mTEXT_ARG(), antlr.actions.java.ActionLexer.mTEXT_ARG(), antlr.actions.csharp.ActionLexer.mTEXT_ARG(), antlr.actions.cpp.ActionLexer.mTEXT_ARG(), antlr.actions.python.ActionLexer.mTEXT_ARG_ELEMENT(), antlr.actions.java.ActionLexer.mTEXT_ARG_ELEMENT(), antlr.actions.csharp.ActionLexer.mTEXT_ARG_ELEMENT(), antlr.actions.cpp.ActionLexer.mTEXT_ARG_ELEMENT(), antlr.actions.python.ActionLexer.mTEXT_ARG_ID_ELEMENT(), antlr.actions.java.ActionLexer.mTEXT_ARG_ID_ELEMENT(), antlr.actions.csharp.ActionLexer.mTEXT_ARG_ID_ELEMENT(), antlr.actions.cpp.ActionLexer.mTEXT_ARG_ID_ELEMENT(), antlr.actions.python.ActionLexer.mTEXT_ITEM(), antlr.actions.java.ActionLexer.mTEXT_ITEM(), antlr.actions.csharp.ActionLexer.mTEXT_ITEM(), antlr.actions.cpp.ActionLexer.mTEXT_ITEM(), antlr.ANTLRLexer.mTOKEN_REF(), antlr.actions.python.ActionLexer.mTREE(), antlr.actions.java.ActionLexer.mTREE(), antlr.actions.csharp.ActionLexer.mTREE(), antlr.actions.cpp.ActionLexer.mTREE(), antlr.ANTLRLexer.mTREE_BEGIN(), antlr.actions.python.ActionLexer.mTREE_ELEMENT(), antlr.actions.java.ActionLexer.mTREE_ELEMENT(), antlr.actions.csharp.ActionLexer.mTREE_ELEMENT(), antlr.actions.cpp.ActionLexer.mTREE_ELEMENT(), antlr.actions.python.ActionLexer.mVAR_ASSIGN(), antlr.actions.java.ActionLexer.mVAR_ASSIGN(), antlr.actions.csharp.ActionLexer.mVAR_ASSIGN(), antlr.actions.cpp.ActionLexer.mVAR_ASSIGN(), antlr.ANTLRLexer.mWILDCARD(), antlr.preprocessor.PreprocessorLexer.mWS(), PascalLexer.mWS(), antlr.ANTLRTokdefLexer.mWS(), antlr.ANTLRLexer.mWS(), antlr.actions.python.ActionLexer.mWS(), antlr.actions.java.ActionLexer.mWS(), antlr.actions.csharp.ActionLexer.mWS(), antlr.actions.cpp.ActionLexer.mWS(), antlr.ANTLRLexer.mWS_LOOP(), antlr.ANTLRLexer.mWS_OPT(), antlr.preprocessor.PreprocessorLexer.mXDIGIT(), antlr.ANTLRTokdefLexer.mXDIGIT(), and antlr.ANTLRLexer.mXDIGIT().
int antlr.Token.type = INVALID_TYPE [protected] |