| |
|
| java.lang.Object org.netbeans.lib.lexer.LexerInputOperation
LexerInputOperation | abstract public class LexerInputOperation implements CharProvider(Code) | | Implementation of the functionality related to lexer input.
author: Miloslav Metelka version: 1.00 |
preprocessingLevelCount | protected int preprocessingLevelCount(Code) | | Total count of preprocessors used during lexing.
It's used to determine whether extra preprocessed chars need to be used.
|
LexerInputOperation | public LexerInputOperation(TokenList<T> tokenList, int tokenIndex, Object lexerRestartState)(Code) | | |
backup | final public void backup(int count)(Code) | | |
clearFlySequence | final protected void clearFlySequence()(Code) | | |
deepRawLength | public int deepRawLength(int length)(Code) | | |
deepRawLengthShift | public int deepRawLengthShift(int index)(Code) | | |
flyTokenAdded | final protected void flyTokenAdded()(Code) | | |
isFlyTokenAllowed | final public boolean isFlyTokenAllowed()(Code) | | |
isMutableInput | final public boolean isMutableInput()(Code) | | |
isStoreLookaheadAndState | final public boolean isStoreLookaheadAndState()(Code) | | |
lookahead | final public int lookahead()(Code) | | Get a distance between the index of the rightmost character already returned
by previous
LexerInputOperation.read() operations and the present read index.
If there were no
LexerInputOperation.backup(int) operation performed
the lookahead will be zero except the case when EOF was already returned.
>=0 number of characters between the rightmost reading index reachedand the present read position. The EOF (when reached by reading) is treated as a single characterin lookahead. If there is an active character preprocessor the returned valueis a raw length of the lookahead. |
preventFlyToken | final protected void preventFlyToken()(Code) | | |
read | abstract public int read(int index)(Code) | | |
read | final public int read()(Code) | | |
readExisting | abstract public char readExisting(int index)(Code) | | |
readIndex | final public int readIndex()(Code) | | |
release | final public void release()(Code) | | |
setTokenStartIndex | final public void setTokenStartIndex(int tokenStartIndex)(Code) | | |
skipTokenIds | public Set<T> skipTokenIds()(Code) | | |
tokenApproved | public void tokenApproved()(Code) | | |
tokenLength | final public int tokenLength()(Code) | | |
tokenRecognized | public void tokenRecognized(int tokenLength)(Code) | | |
tokenRecognized | final public boolean tokenRecognized(int tokenLength, boolean skip)(Code) | | Notification that the token was recognized.
Parameters: tokenLength - length of the recognized token. Parameters: skip - whether the token should be skipped true if the token holding preprocessed text should be created.If skip is true then false is returned. |
tokenStartIndex | final protected int tokenStartIndex()(Code) | | |
|
|
|