| org.codehaus.groovy.antlr.parser.GroovyLexer
Method Summary | |
protected boolean | allowRegexpLiteral() | protected boolean | atValidDollarEscape() | public void | enableAssert(boolean shouldEnable) | public void | enableEnum(boolean shouldEnable) | public boolean | isAssertEnabled() | public boolean | isEnumEnabled() | protected static boolean | isExpressionEndingToken(int ttype) Return true for an operator or punctuation which can end an expression. | public boolean | isWhitespaceIncluded() | final public void | mASSIGN(boolean _createToken) | final public void | mAT(boolean _createToken) | final public void | mBAND(boolean _createToken) | final public void | mBAND_ASSIGN(boolean _createToken) | final protected void | mBIG_SUFFIX(boolean _createToken) | final public void | mBNOT(boolean _createToken) | final public void | mBOR(boolean _createToken) | final public void | mBOR_ASSIGN(boolean _createToken) | final public void | mBSR(boolean _createToken) | final public void | mBSR_ASSIGN(boolean _createToken) | final public void | mBXOR(boolean _createToken) | final public void | mBXOR_ASSIGN(boolean _createToken) | final public void | mCLOSABLE_BLOCK_OP(boolean _createToken) | final public void | mCOLON(boolean _createToken) | final public void | mCOMMA(boolean _createToken) | final public void | mCOMPARE_TO(boolean _createToken) | final public void | mDEC(boolean _createToken) | final protected void | mDIGIT(boolean _createToken) | final protected void | mDIV(boolean _createToken) | final protected void | mDIV_ASSIGN(boolean _createToken) | final public void | mDOLLAR(boolean _createToken) | final public void | mDOT(boolean _createToken) | final public void | mEQUAL(boolean _createToken) | final protected void | mESC(boolean _createToken) | final protected void | mEXPONENT(boolean _createToken) | final protected void | mFLOAT_SUFFIX(boolean _createToken) | final public void | mGE(boolean _createToken) | final public void | mGT(boolean _createToken) | final protected void | mHEX_DIGIT(boolean _createToken) | final public void | mIDENT(boolean _createToken) | final public void | mINC(boolean _createToken) | final public void | mLAND(boolean _createToken) | final public void | mLBRACK(boolean _createToken) | final public void | mLCURLY(boolean _createToken) | final public void | mLE(boolean _createToken) | final protected void | mLETTER(boolean _createToken) | final public void | mLNOT(boolean _createToken) | final public void | mLOR(boolean _createToken) | final public void | mLPAREN(boolean _createToken) | final public void | mLT(boolean _createToken) | final public void | mMEMBER_POINTER(boolean _createToken) | final public void | mMINUS(boolean _createToken) | final public void | mMINUS_ASSIGN(boolean _createToken) | final public void | mML_COMMENT(boolean _createToken) | final public void | mMOD(boolean _createToken) | final public void | mMOD_ASSIGN(boolean _createToken) | final public void | mNLS(boolean _createToken) | final public void | mNOT_EQUAL(boolean _createToken) | final public void | mNUM_INT(boolean _createToken) | final protected void | mONE_NL(boolean _createToken, boolean check) | final public void | mOPTIONAL_DOT(boolean _createToken) | final public void | mPLUS(boolean _createToken) | final public void | mPLUS_ASSIGN(boolean _createToken) | final public void | mQUESTION(boolean _createToken) | final public void | mRANGE_EXCLUSIVE(boolean _createToken) | final public void | mRANGE_INCLUSIVE(boolean _createToken) | final public void | mRBRACK(boolean _createToken) | final public void | mRCURLY(boolean _createToken) | final protected int | mREGEXP_CTOR_END(boolean _createToken, boolean fromStart) | final public void | mREGEXP_LITERAL(boolean _createToken) | final protected void | mREGEXP_SYMBOL(boolean _createToken) | final public void | mREGEX_FIND(boolean _createToken) | final public void | mREGEX_MATCH(boolean _createToken) | final public void | mRPAREN(boolean _createToken) | final public void | mSEMI(boolean _createToken) | final public void | mSH_COMMENT(boolean _createToken) | final public void | mSL(boolean _createToken) | final public void | mSL_ASSIGN(boolean _createToken) | final public void | mSL_COMMENT(boolean _createToken) | final public void | mSPREAD_DOT(boolean _createToken) | final public void | mSR(boolean _createToken) | final public void | mSR_ASSIGN(boolean _createToken) | final public void | mSTAR(boolean _createToken) | final public void | mSTAR_ASSIGN(boolean _createToken) | final public void | mSTAR_STAR(boolean _createToken) | final public void | mSTAR_STAR_ASSIGN(boolean _createToken) | final protected void | mSTRING_CH(boolean _createToken) | final protected int | mSTRING_CTOR_END(boolean _createToken, boolean fromStart, boolean tripleQuote) | final public void | mSTRING_LITERAL(boolean _createToken) | final protected void | mSTRING_NL(boolean _createToken, boolean allowNewline) | final public void | mTRIPLE_DOT(boolean _createToken) | final protected void | mVOCAB(boolean _createToken) | final public void | mWS(boolean _createToken) | protected void | newlineCheck(boolean check) | public Token | nextToken() | public TokenStream | plumb() This is a bit of plumbing which resumes collection of string constructor bodies,
after an embedded expression has been parsed. | protected void | popParenLevel() | protected void | pushParenLevel() | protected void | restartStringCtor(boolean expectLiteral) | public void | setWhitespaceIncluded(boolean z) Include whitespace tokens. | public void | traceIn(String rname) | public void | traceOut(String rname) |
SCS_SQ_TYPESCS_TQ_TYPESCS_RE_TYPE | final protected static int SCS_SQ_TYPESCS_TQ_TYPESCS_RE_TYPE(Code) | | |
SCS_TYPESCS_VALSCS_LITSCS_LIMIT | final protected static int SCS_TYPESCS_VALSCS_LITSCS_LIMIT(Code) | | |
lastSigTokenType | protected int lastSigTokenType(Code) | | |
parenLevel | protected int parenLevel(Code) | | Bumped when inside '[x]' or '(x)', reset inside '{x}'. See ONE_NL.
|
parenLevelStack | protected ArrayList parenLevelStack(Code) | | Push parenLevel here and reset whenever inside '{x}'.
|
stringCtorState | protected int stringCtorState(Code) | | |
suppressNewline | protected int suppressNewline(Code) | | |
tracing | public static boolean tracing(Code) | | |
GroovyLexer | public GroovyLexer(InputBuffer ib)(Code) | | |
GroovyLexer | public GroovyLexer(LexerSharedInputState state)(Code) | | |
allowRegexpLiteral | protected boolean allowRegexpLiteral()(Code) | | |
atValidDollarEscape | protected boolean atValidDollarEscape() throws CharStreamException(Code) | | |
enableAssert | public void enableAssert(boolean shouldEnable)(Code) | | Enable the "assert" keyword
|
enableEnum | public void enableEnum(boolean shouldEnable)(Code) | | Enable the "enum" keyword
|
isAssertEnabled | public boolean isAssertEnabled()(Code) | | Query the "assert" keyword state
|
isEnumEnabled | public boolean isEnumEnabled()(Code) | | Query the "enum" keyword state
|
isExpressionEndingToken | protected static boolean isExpressionEndingToken(int ttype)(Code) | | Return true for an operator or punctuation which can end an expression.
Return true for keywords, identifiers, and literals.
Return true for tokens which can end expressions (right brackets, ++, --).
Return false for EOF and all other operator and punctuation tokens.
Used to suppress the recognition of /foo/ as opposed to the simple division operator '/'.
|
isWhitespaceIncluded | public boolean isWhitespaceIncluded()(Code) | | Are whitespace tokens included?
|
mASSIGN | final public void mASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mAT | final public void mAT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mBAND | final public void mBAND(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mBAND_ASSIGN | final public void mBAND_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mBIG_SUFFIX | final protected void mBIG_SUFFIX(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mBNOT | final public void mBNOT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mBOR | final public void mBOR(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mBOR_ASSIGN | final public void mBOR_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mBSR | final public void mBSR(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mBSR_ASSIGN | final public void mBSR_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mBXOR | final public void mBXOR(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mBXOR_ASSIGN | final public void mBXOR_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mCLOSABLE_BLOCK_OP | final public void mCLOSABLE_BLOCK_OP(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mCOLON | final public void mCOLON(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mCOMMA | final public void mCOMMA(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mCOMPARE_TO | final public void mCOMPARE_TO(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mDEC | final public void mDEC(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mDIGIT | final protected void mDIGIT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mDIV | final protected void mDIV(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mDIV_ASSIGN | final protected void mDIV_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mDOLLAR | final public void mDOLLAR(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mDOT | final public void mDOT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mEQUAL | final public void mEQUAL(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mESC | final protected void mESC(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mEXPONENT | final protected void mEXPONENT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mFLOAT_SUFFIX | final protected void mFLOAT_SUFFIX(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mGE | final public void mGE(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mGT | final public void mGT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mHEX_DIGIT | final protected void mHEX_DIGIT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mIDENT | final public void mIDENT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mINC | final public void mINC(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mLAND | final public void mLAND(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mLBRACK | final public void mLBRACK(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mLCURLY | final public void mLCURLY(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mLE | final public void mLE(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mLETTER | final protected void mLETTER(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mLNOT | final public void mLNOT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mLOR | final public void mLOR(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mLPAREN | final public void mLPAREN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mLT | final public void mLT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mMEMBER_POINTER | final public void mMEMBER_POINTER(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mMINUS | final public void mMINUS(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mMINUS_ASSIGN | final public void mMINUS_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mML_COMMENT | final public void mML_COMMENT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mMOD | final public void mMOD(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mMOD_ASSIGN | final public void mMOD_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mNLS | final public void mNLS(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mNOT_EQUAL | final public void mNOT_EQUAL(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mNUM_INT | final public void mNUM_INT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mONE_NL | final protected void mONE_NL(boolean _createToken, boolean check) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mOPTIONAL_DOT | final public void mOPTIONAL_DOT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mPLUS | final public void mPLUS(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mPLUS_ASSIGN | final public void mPLUS_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mQUESTION | final public void mQUESTION(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mRANGE_EXCLUSIVE | final public void mRANGE_EXCLUSIVE(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mRANGE_INCLUSIVE | final public void mRANGE_INCLUSIVE(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mRBRACK | final public void mRBRACK(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mRCURLY | final public void mRCURLY(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mREGEXP_CTOR_END | final protected int mREGEXP_CTOR_END(boolean _createToken, boolean fromStart) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mREGEXP_LITERAL | final public void mREGEXP_LITERAL(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mREGEXP_SYMBOL | final protected void mREGEXP_SYMBOL(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mREGEX_FIND | final public void mREGEX_FIND(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mREGEX_MATCH | final public void mREGEX_MATCH(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mRPAREN | final public void mRPAREN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mSEMI | final public void mSEMI(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mSH_COMMENT | final public void mSH_COMMENT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mSL | final public void mSL(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mSL_ASSIGN | final public void mSL_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mSL_COMMENT | final public void mSL_COMMENT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mSPREAD_DOT | final public void mSPREAD_DOT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mSR | final public void mSR(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mSR_ASSIGN | final public void mSR_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mSTAR | final public void mSTAR(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mSTAR_ASSIGN | final public void mSTAR_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mSTAR_STAR | final public void mSTAR_STAR(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mSTAR_STAR_ASSIGN | final public void mSTAR_STAR_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mSTRING_CH | final protected void mSTRING_CH(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mSTRING_CTOR_END | final protected int mSTRING_CTOR_END(boolean _createToken, boolean fromStart, boolean tripleQuote) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mSTRING_LITERAL | final public void mSTRING_LITERAL(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mSTRING_NL | final protected void mSTRING_NL(boolean _createToken, boolean allowNewline) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mTRIPLE_DOT | final public void mTRIPLE_DOT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mVOCAB | final protected void mVOCAB(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
mWS | final public void mWS(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException(Code) | | |
newlineCheck | protected void newlineCheck(boolean check) throws RecognitionException(Code) | | |
nextToken | public Token nextToken() throws TokenStreamException(Code) | | |
plumb | public TokenStream plumb()(Code) | | This is a bit of plumbing which resumes collection of string constructor bodies,
after an embedded expression has been parsed.
Usage: new GroovyRecognizer(new GroovyLexer(in).plumb()).
|
popParenLevel | protected void popParenLevel()(Code) | | |
pushParenLevel | protected void pushParenLevel()(Code) | | |
restartStringCtor | protected void restartStringCtor(boolean expectLiteral)(Code) | | |
setWhitespaceIncluded | public void setWhitespaceIncluded(boolean z)(Code) | | Include whitespace tokens. Note that this breaks the parser.
|
traceIn | public void traceIn(String rname) throws CharStreamException(Code) | | |
traceOut | public void traceOut(String rname) throws CharStreamException(Code) | | |
|
|