public class TokenListLookahead extends java.lang.Object implements ILookahead<ETokenType,NeverThrownRuntimeException>
ILookahead on Lists of ITokens| Constructor and Description |
|---|
TokenListLookahead(java.util.List<IToken> tokens,
int index)
Set list and position
|
| Modifier and Type | Method and Description |
|---|---|
ETokenType |
lookahead(int lookahead)
Returned elements remain in the underlying data structure and are still
accessible.
|
public TokenListLookahead(java.util.List<IToken> tokens, int index)
public ETokenType lookahead(int lookahead)
lookahead in interface ILookahead<ETokenType,NeverThrownRuntimeException>lookahead - Number of elements that are looked ahead