public abstract class TextTokenizerBase extends ReaderScannerBase
T_BASE_LAST, T_COMMENT, T_EOF, T_IDENT, T_IPADDR, T_NUMBER, T_STRING| Constructor and Description |
|---|
TextTokenizerBase(Object source,
Reader r) |
| Modifier and Type | Method and Description |
|---|---|
int |
nextToken(LexerToken t)
Checks if the token queue contains tokens, and if so returns the topmost one.
|
protected abstract int |
nextTokenPrim()
Handles actual token generation using the reader's globals.
|
LexerToken |
popToken() |
void |
pushToken(LexerToken t)
Push the specified token into the token queue.
|
void |
pushTokenCopy(LexerToken t) |
int |
tokenStackSize() |
error, getSourceLocation, getTokenColumn, getTokenLine, isAllowNewlineInString, isIdChar, isIdStart, scanIdentifier, scanNumber, scanSimpleString, scanUndottedNumber, setAllowNewlineInString, skipWs, skipWsNoNL, startToken, tokenStringaccept, accept, append, append, clearCopy, copy, copy, getCopied, getCurrentColumn, getCurrentLine, getSource, LA, LA, sbprotected abstract int nextTokenPrim()
throws Exception
t - Exceptionpublic void pushToken(LexerToken t)
t - public void pushTokenCopy(LexerToken t)
public LexerToken popToken()
public int tokenStackSize()
public int nextToken(LexerToken t) throws Exception
t - ExceptionCopyright © 2017 etc.to. All rights reserved.