|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectantlr.TokenStreamBasicFilter
public class TokenStreamBasicFilter
This object is a TokenStream that passes through all tokens except for those that you tell it to discard. There is no buffering of the tokens.
Field Summary | |
---|---|
protected BitSet |
discardMask
The set of token types to discard |
protected TokenStream |
input
The input stream |
Constructor Summary | |
---|---|
TokenStreamBasicFilter(TokenStream input)
|
Method Summary | |
---|---|
void |
discard(BitSet mask)
|
void |
discard(int ttype)
|
java.lang.String |
getEntireText()
Returns the entire text input to the lexer. |
TokenOffsetInfo |
getOffsetInfo(Token token)
Returns the offset information for the token |
Token |
nextToken()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected BitSet discardMask
protected TokenStream input
Constructor Detail |
---|
public TokenStreamBasicFilter(TokenStream input)
Method Detail |
---|
public void discard(int ttype)
public void discard(BitSet mask)
public Token nextToken() throws TokenStreamException
nextToken
in interface TokenStream
TokenStreamException
public java.lang.String getEntireText()
IASDebugStream
getEntireText
in interface IASDebugStream
null
, if error occured or System.in was used.public TokenOffsetInfo getOffsetInfo(Token token)
IASDebugStream
getOffsetInfo
in interface IASDebugStream
token
- the token whose information need to be retrieved
null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |