public class JavaLexer extends CharScanner
Modifiers | Name | Description |
---|---|---|
protected static int |
SCS_LIMIT |
|
protected static int |
SCS_LIT |
|
protected static int |
SCS_RE_TYPE |
|
protected static int |
SCS_SQ_TYPE |
|
protected static int |
SCS_TQ_TYPE |
|
protected static int |
SCS_TYPE |
|
protected static int |
SCS_VAL |
|
static BitSet |
_tokenSet_0 |
|
static BitSet |
_tokenSet_1 |
|
static BitSet |
_tokenSet_2 |
|
static BitSet |
_tokenSet_3 |
|
static BitSet |
_tokenSet_4 |
|
static BitSet |
_tokenSet_5 |
|
protected int |
lastSigTokenType |
|
protected JavaRecognizer |
parser |
|
protected int |
stringCtorState |
Fields inherited from class | Fields |
---|---|
class CharScanner |
EOF_CHAR |
Constructor and description |
---|
JavaLexer
(InputStream in) |
JavaLexer
(Reader in) |
JavaLexer
(InputBuffer ib) |
JavaLexer
(LexerSharedInputState state) |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
enableAssert(boolean shouldEnable) Enable the "assert" keyword |
|
void |
enableEnum(boolean shouldEnable) Enable the "enum" keyword |
|
boolean |
isAssertEnabled() Query the "assert" keyword state |
|
boolean |
isEnumEnabled() Query the "enum" keyword state |
|
void |
mASSIGN(boolean _createToken) |
|
void |
mAT(boolean _createToken) |
|
void |
mBAND(boolean _createToken) |
|
void |
mBAND_ASSIGN(boolean _createToken) |
|
void |
mBNOT(boolean _createToken) |
|
void |
mBOR(boolean _createToken) |
|
void |
mBOR_ASSIGN(boolean _createToken) |
|
void |
mBSR(boolean _createToken) |
|
void |
mBSR_ASSIGN(boolean _createToken) |
|
void |
mBXOR(boolean _createToken) |
|
void |
mBXOR_ASSIGN(boolean _createToken) |
|
void |
mCHAR_LITERAL(boolean _createToken) |
|
void |
mCOLON(boolean _createToken) |
|
void |
mCOMMA(boolean _createToken) |
|
void |
mDEC(boolean _createToken) |
|
void |
mDIV(boolean _createToken) |
|
void |
mDIV_ASSIGN(boolean _createToken) |
|
void |
mEQUAL(boolean _createToken) |
|
protected void |
mESC(boolean _createToken) |
|
protected void |
mEXPONENT(boolean _createToken) |
|
protected void |
mFLOAT_SUFFIX(boolean _createToken) |
|
void |
mGE(boolean _createToken) |
|
void |
mGT(boolean _createToken) |
|
protected void |
mHEX_DIGIT(boolean _createToken) |
|
void |
mIDENT(boolean _createToken) |
|
void |
mINC(boolean _createToken) |
|
void |
mLAND(boolean _createToken) |
|
void |
mLBRACK(boolean _createToken) |
|
void |
mLCURLY(boolean _createToken) |
|
void |
mLE(boolean _createToken) |
|
void |
mLNOT(boolean _createToken) |
|
void |
mLOR(boolean _createToken) |
|
void |
mLPAREN(boolean _createToken) |
|
void |
mLT(boolean _createToken) |
|
void |
mMINUS(boolean _createToken) |
|
void |
mMINUS_ASSIGN(boolean _createToken) |
|
void |
mML_COMMENT(boolean _createToken) |
|
void |
mMOD(boolean _createToken) |
|
void |
mMOD_ASSIGN(boolean _createToken) |
|
void |
mNOT_EQUAL(boolean _createToken) |
|
void |
mNUM_INT(boolean _createToken) |
|
void |
mPLUS(boolean _createToken) |
|
void |
mPLUS_ASSIGN(boolean _createToken) |
|
void |
mQUESTION(boolean _createToken) |
|
void |
mRBRACK(boolean _createToken) |
|
void |
mRCURLY(boolean _createToken) |
|
void |
mRPAREN(boolean _createToken) |
|
void |
mSEMI(boolean _createToken) |
|
void |
mSL(boolean _createToken) |
|
void |
mSL_ASSIGN(boolean _createToken) |
|
void |
mSL_COMMENT(boolean _createToken) |
|
void |
mSR(boolean _createToken) |
|
void |
mSR_ASSIGN(boolean _createToken) |
|
void |
mSTAR(boolean _createToken) |
|
void |
mSTAR_ASSIGN(boolean _createToken) |
|
void |
mSTRING_LITERAL(boolean _createToken) |
|
protected void |
mVOCAB(boolean _createToken) |
|
void |
mWS(boolean _createToken) |
|
Token |
nextToken() |
|
TokenStream |
plumb() This is a bit of plumbing which resumes collection of string constructor bodies, after an embedded expression has been parsed. |
Methods inherited from class | Name |
---|---|
class CharScanner |
append, append, mark, toLower, rewind, match, match, match, tab, reportError, reportError, getText, setCaseSensitive, consume, getColumn, setText, getLine, setFilename, newline, commit, consumeUntil, consumeUntil, getCaseSensitive, setColumn, getCommitToPath, getInputBuffer, getInputState, setInputState, resetText, setCommitToPath, traceOut, traceIn, traceIndent, getTabSize, getTokenObject, panic, panic, setTabSize, uponEOF, LA, reportWarning, matchNot, matchRange, setTokenObjectClass, testLiteralsTable, testLiteralsTable, getCaseSensitiveLiterals, setLine, getFilename, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll, nextToken |
class Object |
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Enable the "assert" keyword
Enable the "enum" keyword
Query the "assert" keyword state
Query the "enum" keyword state
This is a bit of plumbing which resumes collection of string constructor bodies, after an embedded expression has been parsed. Usage: new JavaRecognizer(new JavaLexer(in).plumb()).
Copyright © 2003-2018 The Apache Software Foundation. All rights reserved.