antlr

Class ANTLRLexer

Implemented Interfaces:
ANTLRTokenTypes, TokenStream

public class ANTLRLexer
extends CharScanner
implements ANTLRTokenTypes, TokenStream

Field Summary

static BitSet
_tokenSet_0
static BitSet
_tokenSet_1
static BitSet
_tokenSet_2
static BitSet
_tokenSet_3
static BitSet
_tokenSet_4
static BitSet
_tokenSet_5

Fields inherited from class antlr.CharScanner

EOF_CHAR, NO_CHAR, _returnToken, caseSensitive, caseSensitiveLiterals, commitToPath, hashString, inputState, literals, saveConsumedInput, tabsize, text, tokenObjectClass, traceDepth

Fields inherited from interface antlr.ANTLRTokenTypes

ACTION, ARG_ACTION, ASSIGN, BANG, CARET, CHAR_LITERAL, CLOSE_ELEMENT_OPTION, COLON, COMMA, COMMENT, DIGIT, DOC_COMMENT, EOF, ESC, IMPLIES, INT, INTERNAL_RULE_REF, LITERAL_Lexer, LITERAL_Parser, LITERAL_TreeParser, LITERAL_catch, LITERAL_charVocabulary, LITERAL_class, LITERAL_exception, LITERAL_extends, LITERAL_header, LITERAL_lexclass, LITERAL_options, LITERAL_private, LITERAL_protected, LITERAL_public, LITERAL_returns, LITERAL_throws, LITERAL_tokens, LPAREN, ML_COMMENT, NESTED_ACTION, NESTED_ARG_ACTION, NOT_OP, NULL_TREE_LOOKAHEAD, OPEN_ELEMENT_OPTION, OPTIONS, OR, PLUS, QUESTION, RANGE, RCURLY, RPAREN, RULE_REF, SEMI, SEMPRED, SL_COMMENT, STAR, STRING_LITERAL, TOKENS, TOKEN_REF, TREE_BEGIN, WILDCARD, WS, WS_LOOP, WS_OPT, XDIGIT

Constructor Summary

ANTLRLexer(InputStream in)
ANTLRLexer(Reader in)
ANTLRLexer(InputBuffer ib)
ANTLRLexer(LexerSharedInputState state)

Method Summary

static int
escapeCharValue(String cs)
Convert 'c' to an integer char value.
void
mACTION(boolean _createToken)
void
mARG_ACTION(boolean _createToken)
void
mASSIGN(boolean _createToken)
void
mBANG(boolean _createToken)
void
mCARET(boolean _createToken)
void
mCHAR_LITERAL(boolean _createToken)
void
mCLOSE_ELEMENT_OPTION(boolean _createToken)
void
mCOLON(boolean _createToken)
void
mCOMMA(boolean _createToken)
void
mCOMMENT(boolean _createToken)
protected void
mDIGIT(boolean _createToken)
protected void
mESC(boolean _createToken)
void
mIMPLIES(boolean _createToken)
void
mINT(boolean _createToken)
protected int
mINTERNAL_RULE_REF(boolean _createToken)
void
mLPAREN(boolean _createToken)
protected void
mML_COMMENT(boolean _createToken)
protected void
mNESTED_ACTION(boolean _createToken)
protected void
mNESTED_ARG_ACTION(boolean _createToken)
void
mNOT_OP(boolean _createToken)
void
mOPEN_ELEMENT_OPTION(boolean _createToken)
void
mOR(boolean _createToken)
void
mPLUS(boolean _createToken)
void
mQUESTION(boolean _createToken)
void
mRANGE(boolean _createToken)
void
mRCURLY(boolean _createToken)
void
mRPAREN(boolean _createToken)
void
mRULE_REF(boolean _createToken)
void
mSEMI(boolean _createToken)
protected void
mSL_COMMENT(boolean _createToken)
void
mSTAR(boolean _createToken)
void
mSTRING_LITERAL(boolean _createToken)
void
mTOKEN_REF(boolean _createToken)
void
mTREE_BEGIN(boolean _createToken)
void
mWILDCARD(boolean _createToken)
void
mWS(boolean _createToken)
protected void
mWS_LOOP(boolean _createToken)
protected void
mWS_OPT(boolean _createToken)
protected void
mXDIGIT(boolean _createToken)
Token
nextToken()
static int
tokenTypeForCharLiteral(String lit)

Methods inherited from class antlr.CharScanner

LA, append, append, commit, consume, consumeUntil, consumeUntil, getCaseSensitive, getCaseSensitiveLiterals, getColumn, getCommitToPath, getFilename, getInputBuffer, getInputState, getLine, getTabSize, getText, getTokenObject, makeToken, mark, match, match, match, matchNot, matchRange, newline, panic, panic, reportError, reportError, reportWarning, resetText, rewind, setCaseSensitive, setColumn, setCommitToPath, setFilename, setInputState, setLine, setTabSize, setText, setTokenObjectClass, tab, testLiteralsTable, testLiteralsTable, toLower, traceIn, traceIndent, traceOut, uponEOF

Field Details

_tokenSet_0

public static final BitSet _tokenSet_0


_tokenSet_1

public static final BitSet _tokenSet_1


_tokenSet_2

public static final BitSet _tokenSet_2


_tokenSet_3

public static final BitSet _tokenSet_3


_tokenSet_4

public static final BitSet _tokenSet_4


_tokenSet_5

public static final BitSet _tokenSet_5

Constructor Details

ANTLRLexer

public ANTLRLexer(InputStream in)


ANTLRLexer

public ANTLRLexer(Reader in)


ANTLRLexer

public ANTLRLexer(InputBuffer ib)


ANTLRLexer

public ANTLRLexer(LexerSharedInputState state)

Method Details

escapeCharValue

public static int escapeCharValue(String cs)
Convert 'c' to an integer char value.


mACTION

public final void mACTION(boolean _createToken)
            throws RecognitionException,
                   CharStreamException,
                   TokenStreamException


mARG_ACTION

public final void mARG_ACTION(boolean _createToken)
            throws RecognitionException,
                   CharStreamException,
                   TokenStreamException


mASSIGN

public final void mASSIGN(boolean _createToken)
            throws RecognitionException,
                   CharStreamException,
                   TokenStreamException


mBANG

public final void mBANG(boolean _createToken)
            throws RecognitionException,
                   CharStreamException,
                   TokenStreamException


mCARET

public final void mCARET(boolean _createToken)
            throws RecognitionException,
                   CharStreamException,
                   TokenStreamException


mCHAR_LITERAL

public final void mCHAR_LITERAL(boolean _createToken)
            throws RecognitionException,
                   CharStreamException,
                   TokenStreamException


mCLOSE_ELEMENT_OPTION

public final void mCLOSE_ELEMENT_OPTION(boolean _createToken)
            throws RecognitionException,
                   CharStreamException,
                   TokenStreamException


mCOLON

public final void mCOLON(boolean _createToken)
            throws RecognitionException,
                   CharStreamException,
                   TokenStreamException


mCOMMA

public final void mCOMMA(boolean _createToken)
            throws RecognitionException,
                   CharStreamException,
                   TokenStreamException


mCOMMENT

public final void mCOMMENT(boolean _createToken)
            throws RecognitionException,
                   CharStreamException,
                   TokenStreamException


mDIGIT

protected final void mDIGIT(boolean _createToken)
            throws RecognitionException,
                   CharStreamException,
                   TokenStreamException


mESC

protected final void mESC(boolean _createToken)
            throws RecognitionException,
                   CharStreamException,
                   TokenStreamException


mIMPLIES

public final void mIMPLIES(boolean _createToken)
            throws RecognitionException,
                   CharStreamException,
                   TokenStreamException


mINT

public final void mINT(boolean _createToken)
            throws RecognitionException,
                   CharStreamException,
                   TokenStreamException


mINTERNAL_RULE_REF

protected final int mINTERNAL_RULE_REF(boolean _createToken)
            throws RecognitionException,
                   CharStreamException,
                   TokenStreamException


mLPAREN

public final void mLPAREN(boolean _createToken)
            throws RecognitionException,
                   CharStreamException,
                   TokenStreamException


mML_COMMENT

protected final void mML_COMMENT(boolean _createToken)
            throws RecognitionException,
                   CharStreamException,
                   TokenStreamException


mNESTED_ACTION

protected final void mNESTED_ACTION(boolean _createToken)
            throws RecognitionException,
                   CharStreamException,
                   TokenStreamException


mNESTED_ARG_ACTION

protected final void mNESTED_ARG_ACTION(boolean _createToken)
            throws RecognitionException,
                   CharStreamException,
                   TokenStreamException


mNOT_OP

public final void mNOT_OP(boolean _createToken)
            throws RecognitionException,
                   CharStreamException,
                   TokenStreamException


mOPEN_ELEMENT_OPTION

public final void mOPEN_ELEMENT_OPTION(boolean _createToken)
            throws RecognitionException,
                   CharStreamException,
                   TokenStreamException


mOR

public final void mOR(boolean _createToken)
            throws RecognitionException,
                   CharStreamException,
                   TokenStreamException


mPLUS

public final void mPLUS(boolean _createToken)
            throws RecognitionException,
                   CharStreamException,
                   TokenStreamException


mQUESTION

public final void mQUESTION(boolean _createToken)
            throws RecognitionException,
                   CharStreamException,
                   TokenStreamException


mRANGE

public final void mRANGE(boolean _createToken)
            throws RecognitionException,
                   CharStreamException,
                   TokenStreamException


mRCURLY

public final void mRCURLY(boolean _createToken)
            throws RecognitionException,
                   CharStreamException,
                   TokenStreamException


mRPAREN

public final void mRPAREN(boolean _createToken)
            throws RecognitionException,
                   CharStreamException,
                   TokenStreamException


mRULE_REF

public final void mRULE_REF(boolean _createToken)
            throws RecognitionException,
                   CharStreamException,
                   TokenStreamException


mSEMI

public final void mSEMI(boolean _createToken)
            throws RecognitionException,
                   CharStreamException,
                   TokenStreamException


mSL_COMMENT

protected final void mSL_COMMENT(boolean _createToken)
            throws RecognitionException,
                   CharStreamException,
                   TokenStreamException


mSTAR

public final void mSTAR(boolean _createToken)
            throws RecognitionException,
                   CharStreamException,
                   TokenStreamException


mSTRING_LITERAL

public final void mSTRING_LITERAL(boolean _createToken)
            throws RecognitionException,
                   CharStreamException,
                   TokenStreamException


mTOKEN_REF

public final void mTOKEN_REF(boolean _createToken)
            throws RecognitionException,
                   CharStreamException,
                   TokenStreamException


mTREE_BEGIN

public final void mTREE_BEGIN(boolean _createToken)
            throws RecognitionException,
                   CharStreamException,
                   TokenStreamException


mWILDCARD

public final void mWILDCARD(boolean _createToken)
            throws RecognitionException,
                   CharStreamException,
                   TokenStreamException


mWS

public final void mWS(boolean _createToken)
            throws RecognitionException,
                   CharStreamException,
                   TokenStreamException


mWS_LOOP

protected final void mWS_LOOP(boolean _createToken)
            throws RecognitionException,
                   CharStreamException,
                   TokenStreamException


mWS_OPT

protected final void mWS_OPT(boolean _createToken)
            throws RecognitionException,
                   CharStreamException,
                   TokenStreamException


mXDIGIT

protected final void mXDIGIT(boolean _createToken)
            throws RecognitionException,
                   CharStreamException,
                   TokenStreamException


nextToken

public Token nextToken()
            throws TokenStreamException
Specified by:
nextToken in interface TokenStream


tokenTypeForCharLiteral

public static int tokenTypeForCharLiteral(String lit)