Property | Type | Description | |
---|---|---|---|
channel | int | ||
channelOverrideMap | int>.IDictionary | ||
discardOffChannelTokens | bool | ||
discardSet | List |
||
lastMarker | int | ||
p | int | ||
tokens | List |
Method | Description | |
---|---|---|
Consume ( ) : void |
* Move the input pointer to the next incoming token. The stream * must become active with LT(1) available. consume() simply * moves the input pointer so that LT(1) points at the next * input symbol. Consume at least one token. * * Walk past any token not on the channel the parser is listening to. * |
|
DiscardTokenType ( int ttype ) : void | ||
FillBuffer ( ) : void |
* Load all tokens from the token source and put in tokens. * This is done upon first LT request because you might want to * set some token type / channel overrides before filling buffer. *
|
|
Get ( int i ) : IToken |
* Return absolute token i; ignore which channel the tokens are on; * that is, count all tokens not just on-channel tokens. *
|
|
Get ( int start, int count ) : List |
||
GetTokens ( ) : IList |
||
GetTokens ( int start, int stop ) : IList |
||
GetTokens ( int start, int stop, |
* Given a start and stop index, return a List of all tokens in * the token type BitSet. Return null if no tokens were found. This * method looks at both on and off channel tokens. *
|
|
GetTokens ( int start, int stop, IList |
||
GetTokens ( int start, int stop, int ttype ) : IList |
||
LA ( int i ) : int | ||
LT ( int k ) : IToken |
* Get the ith token from the current position 1..n where k=1 is the * first symbol of lookahead. *
|
|
LegacyCommonTokenStream ( ) : System.Collections.Generic | ||
LegacyCommonTokenStream ( ITokenSource tokenSource ) : System.Collections.Generic | ||
LegacyCommonTokenStream ( ITokenSource tokenSource, int channel ) : System.Collections.Generic | ||
Mark ( ) : int | ||
Release ( int marker ) : void | ||
Reset ( ) : void | ||
Rewind ( ) : void | ||
Rewind ( int marker ) : void | ||
Seek ( int index ) : void | ||
SetDiscardOffChannelTokens ( bool discardOffChannelTokens ) : void | ||
SetTokenSource ( ITokenSource tokenSource ) : void |
Reset this token stream by setting its token source.
|
|
SetTokenTypeChannel ( int ttype, int channel ) : void |
* A simple filter mechanism whereby you can tell this token stream * to force all tokens of type ttype to be on channel. For example, * when interpreting, we cannot exec actions so we need to tell * the stream to force all WS and NEWLINE to be a different, ignored * channel. *
|
|
ToString ( ) : string | ||
ToString ( IToken start, IToken stop ) : string | ||
ToString ( int start, int stop ) : string |
Method | Description | |
---|---|---|
LB ( int k ) : IToken |
Look backwards k tokens on-channel tokens
|
|
SkipOffTokenChannels ( int i ) : int |
Given a starting index, return the index of the first on-channel token.
|
|
SkipOffTokenChannelsReverse ( int i ) : int |
public GetTokens ( int start, int stop ) : IList |
||
start | int | |
stop | int | |
return | IList |
public GetTokens ( int start, int stop, |
||
start | int | |
stop | int | |
types | ||
return | IList |
public GetTokens ( int start, int stop, IList |
||
start | int | |
stop | int | |
types | IList |
|
return | IList |
public GetTokens ( int start, int stop, int ttype ) : IList |
||
start | int | |
stop | int | |
ttype | int | |
return | IList |
public LegacyCommonTokenStream ( ) : System.Collections.Generic | ||
return | System.Collections.Generic |
public LegacyCommonTokenStream ( ITokenSource tokenSource ) : System.Collections.Generic | ||
tokenSource | ITokenSource | |
return | System.Collections.Generic |
public LegacyCommonTokenStream ( ITokenSource tokenSource, int channel ) : System.Collections.Generic | ||
tokenSource | ITokenSource | |
channel | int | |
return | System.Collections.Generic |
public SetDiscardOffChannelTokens ( bool discardOffChannelTokens ) : void | ||
discardOffChannelTokens | bool | |
return | void |
public SetTokenSource ( ITokenSource tokenSource ) : void | ||
tokenSource | ITokenSource | |
return | void |
public SetTokenTypeChannel ( int ttype, int channel ) : void | ||
ttype | int | |
channel | int | |
return | void |
protected SkipOffTokenChannels ( int i ) : int | ||
i | int | |
return | int |
protected SkipOffTokenChannelsReverse ( int i ) : int | ||
i | int | |
return | int |
public ToString ( IToken start, IToken stop ) : string | ||
start | IToken | |
stop | IToken | |
return | string |
public ToString ( int start, int stop ) : string | ||
start | int | |
stop | int | |
return | string |
protected IDictionary |
||
return | int>.IDictionary |