|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--antlr.TokenStreamBasicFilter | +--antlr.TokenStreamHiddenTokenFilter
Untamed: This object filters a token stream coming from a lexer or another TokenStream so that only certain token channels get transmitted to the parser. Any of the channels can be filtered off as "hidden" channels whose tokens can be accessed from the parser.
Field Summary | |
protected CommonHiddenStreamToken |
firstHidden
|
protected BitSet |
hideMask
|
protected CommonHiddenStreamToken |
lastHiddenToken
track tail of hidden list emanating from previous monitored token |
private CommonHiddenStreamToken |
nextMonitoredToken
|
Fields inherited from class antlr.TokenStreamBasicFilter |
discardMask, input |
Constructor Summary | |
TokenStreamHiddenTokenFilter(TokenStream input)
Enabled: |
Method Summary | |
protected void |
consume()
|
private void |
consumeFirst()
|
BitSet |
getDiscardMask()
Enabled: |
CommonHiddenStreamToken |
getHiddenAfter(CommonHiddenStreamToken t)
Enabled: Return a ptr to the hidden token appearing immediately after token t in the input stream. |
CommonHiddenStreamToken |
getHiddenBefore(CommonHiddenStreamToken t)
Enabled: Return a ptr to the hidden token appearing immediately before token t in the input stream. |
BitSet |
getHideMask()
Enabled: |
CommonHiddenStreamToken |
getInitialHiddenToken()
Enabled: Return the first hidden token if one appears before any monitored token. |
void |
hide(BitSet mask)
Enabled: |
void |
hide(int m)
Enabled: |
protected CommonHiddenStreamToken |
LA(int i)
|
Token |
nextToken()
Enabled: Return the next monitored token. |
Methods inherited from class antlr.TokenStreamBasicFilter |
discard, discard |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected BitSet hideMask
private CommonHiddenStreamToken nextMonitoredToken
protected CommonHiddenStreamToken lastHiddenToken
protected CommonHiddenStreamToken firstHidden
Constructor Detail |
public TokenStreamHiddenTokenFilter(TokenStream input)
Method Detail |
protected void consume() throws TokenStreamException
TokenStreamException
private void consumeFirst() throws TokenStreamException
TokenStreamException
public BitSet getDiscardMask()
public CommonHiddenStreamToken getHiddenAfter(CommonHiddenStreamToken t)
public CommonHiddenStreamToken getHiddenBefore(CommonHiddenStreamToken t)
public BitSet getHideMask()
public CommonHiddenStreamToken getInitialHiddenToken()
public void hide(int m)
public void hide(BitSet mask)
protected CommonHiddenStreamToken LA(int i)
public Token nextToken() throws TokenStreamException
nextToken
in interface TokenStream
nextToken
in class TokenStreamBasicFilter
TokenStreamException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |