public interface IRepairingTokenBuffer
| Modifier and Type | Method and Description | 
|---|---|
void | 
addError(SyntaxProblem error)
Adds a syntax error that we encountered during parsing 
 | 
void | 
consume()
Consumes the current token in the buffer 
 | 
boolean | 
insertSemicolon(boolean isNextToken)
Inserts a semicolon into the token stream 
 | 
int | 
LA(int i)
Looks ahead an arbitrary distance and returns back the token type. 
 | 
ASToken | 
lookAheadSkipInsertedSemicolon()
Get the first non-fix-up-semicolon from the look-ahead. 
 | 
ASToken | 
LT(int i)
Looks ahead an arbitrary distance and returns back the token. 
 | 
int | 
mark()
Marks the position in the underlying token buffer. 
 | 
boolean | 
matchOptionalSemicolon()
Match an optional semicolon. 
 | 
ASToken | 
previous()
Returns the previous token the buffer was looking at 
 | 
void | 
rewind(int position)
Rewinds the token buffer to the given position. 
 | 
void | 
setEnableSemicolonInsertion(boolean enable)
Enables or disables the insertion of semicolons 
 | 
void setEnableSemicolonInsertion(boolean enable)
enable - true if we should insert semicolons into the token streamboolean insertSemicolon(boolean isNextToken)
isNextToken - true if the semicolon should be the next tokenvoid addError(SyntaxProblem error)
error - the SyntaxProblem to addint mark()
void rewind(int position)
position - the non-negative positionvoid consume()
int LA(int i)
i - the offset to look aheadASToken LT(int i)
i - the offset to look aheadASToken lookAheadSkipInsertedSemicolon()
ASToken previous()
boolean matchOptionalSemicolon()
Copyright © 2016 The Apache Software Foundation. All rights reserved.