public class CodeLexer extends CharScanner implements CodeLexerTokenTypes, TokenStream
| Modifier and Type | Field and Description |
|---|---|
static BitSet |
_tokenSet_0 |
static BitSet |
_tokenSet_1 |
protected int |
lineOffset |
_returnToken, caseSensitive, caseSensitiveLiterals, commitToPath, EOF_CHAR, hashString, inputState, literals, saveConsumedInput, tabsize, text, tokenObjectClass, traceDepthACTION, COMMENT, EOF, IGNWS, ML_COMMENT, NULL_TREE_LOOKAHEAD, SL_COMMENT, STUFF| Constructor and Description |
|---|
CodeLexer(InputBuffer ib) |
CodeLexer(InputStream in) |
CodeLexer(LexerSharedInputState state) |
CodeLexer(Reader in) |
CodeLexer(String s,
String fname,
int line,
Tool tool) |
| Modifier and Type | Method and Description |
|---|---|
void |
mACTION(boolean _createToken) |
protected void |
mCOMMENT(boolean _createToken) |
protected void |
mIGNWS(boolean _createToken) |
protected void |
mML_COMMENT(boolean _createToken) |
protected void |
mSL_COMMENT(boolean _createToken) |
protected void |
mSTUFF(boolean _createToken) |
Token |
nextToken() |
void |
reportError(RecognitionException e)
Parser error-reporting function can be overridden in subclass
|
void |
reportError(String s)
Parser error-reporting function can be overridden in subclass
|
void |
reportWarning(String s)
Parser warning-reporting function can be overridden in subclass
|
void |
setLineOffset(int lineOffset) |
append, append, commit, consume, consumeUntil, consumeUntil, getCaseSensitive, getCaseSensitiveLiterals, getColumn, getCommitToPath, getFilename, getInputBuffer, getInputState, getLine, getTabSize, getText, getTokenObject, LA, makeToken, mark, match, match, match, matchNot, matchRange, newline, panic, panic, resetText, rewind, setCaseSensitive, setColumn, setCommitToPath, setFilename, setInputState, setLine, setTabSize, setText, setTokenObjectClass, tab, testLiteralsTable, testLiteralsTable, toLower, traceIn, traceIndent, traceOut, uponEOFprotected int lineOffset
public static final BitSet _tokenSet_0
public static final BitSet _tokenSet_1
public CodeLexer(InputStream in)
public CodeLexer(Reader in)
public CodeLexer(InputBuffer ib)
public CodeLexer(LexerSharedInputState state)
public void setLineOffset(int lineOffset)
public void reportError(RecognitionException e)
CharScannerreportError in class CharScannerpublic void reportError(String s)
CharScannerreportError in class CharScannerpublic void reportWarning(String s)
CharScannerreportWarning in class CharScannerpublic Token nextToken() throws TokenStreamException
nextToken in interface TokenStreamTokenStreamExceptionpublic final void mACTION(boolean _createToken)
throws RecognitionException,
CharStreamException,
TokenStreamException
protected final void mSTUFF(boolean _createToken)
throws RecognitionException,
CharStreamException,
TokenStreamException
protected final void mCOMMENT(boolean _createToken)
throws RecognitionException,
CharStreamException,
TokenStreamException
protected final void mSL_COMMENT(boolean _createToken)
throws RecognitionException,
CharStreamException,
TokenStreamException
protected final void mML_COMMENT(boolean _createToken)
throws RecognitionException,
CharStreamException,
TokenStreamException
protected final void mIGNWS(boolean _createToken)
throws RecognitionException,
CharStreamException,
TokenStreamException
Copyright © 2017–2019 Eclipse Foundation. All rights reserved.