org.antlr.runtime.UnbufferedTokenStream, org.antlr.runtime.BufferedTokenStream
| Modifier and Type | Field and Description |
|---|---|
| protected int | channel
Skip tokens on any channel but this one; this is how we skip whitespace... |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | consume()
Overrides org. Implements org. |
| public int | |
| protected Token | |
| public Token | LT(int k)
Overrides org. Implements org. |
| public void | |
| public void | setTokenSource(TokenSource tokenSource)
Overrides org. |
| protected void | |
| protected int | |
| protected int |
| channel | back to summary |
|---|---|
| protected int channel Skip tokens on any channel but this one; this is how we skip whitespace... | |
| CommonTokenStream | back to summary |
|---|---|
| public CommonTokenStream() | |
| CommonTokenStream | back to summary |
|---|---|
| public CommonTokenStream(TokenSource tokenSource) | |
| CommonTokenStream | back to summary |
|---|---|
| public CommonTokenStream(TokenSource tokenSource, int channel) | |
| consume | back to summary |
|---|---|
| public void consume() Overrides org. Implements org. Always leave p on an on-channel token.
| |
| getNumberOfOnChannelTokens | back to summary |
|---|---|
| public int getNumberOfOnChannelTokens() Count EOF just once. | |
| LB | back to summary |
|---|---|
| protected Token LB(int k) Overrides org.
| |
| LT | back to summary |
|---|---|
| public Token LT(int k) Overrides org. Implements org. Doc from org. Get Token at current input pointer + i ahead where i=1 is next Token. i<0 indicates tokens in the past. So -1 is previous token and -2 is two tokens ago. LT(0) is undefined. For i>=n, return Token.EOFToken. Return null for LT(0) and any index that results in an absolute address that is negative.
| |
| reset | back to summary |
|---|---|
| public void reset() Overrides org.
| |
| setTokenSource | back to summary |
|---|---|
| public void setTokenSource(TokenSource tokenSource) Overrides org. Reset this token stream by setting its token source.
| |
| setup | back to summary |
|---|---|
| protected void setup() Overrides org.
| |
| skipOffTokenChannels | back to summary |
|---|---|
| protected int skipOffTokenChannels(int i) Given a starting index, return the index of the first on-channel token. | |
| skipOffTokenChannelsReverse | back to summary |
|---|---|
| protected int skipOffTokenChannelsReverse(int i) | |