메소드 | 설명 | |
---|---|---|
LimitTokenPositionFilter ( TokenStream @in, int maxTokenPosition ) |
Build a filter that only accepts tokens up to and including the given maximum position. This filter will not consume any tokens with position greater than the maxTokenPosition limit.
|
|
LimitTokenPositionFilter ( TokenStream @in, int maxTokenPosition, bool consumeAllTokens ) |
Build a filter that limits the maximum position of tokens to emit.
|
|
incrementToken ( ) : bool | ||
reset ( ) : void |
public LimitTokenPositionFilter ( TokenStream @in, int maxTokenPosition ) | ||
@in | TokenStream | |
maxTokenPosition | int | max position of tokens to produce (1st token always has position 1) /// |
public LimitTokenPositionFilter ( TokenStream @in, int maxTokenPosition, bool consumeAllTokens ) | ||
@in | TokenStream | |
maxTokenPosition | int | max position of tokens to produce (1st token always has position 1) |
consumeAllTokens | bool | whether all tokens from the wrapped input stream must be consumed /// even if maxTokenPosition is exceeded. |