public class TokenStreamCopyingHiddenTokenFilter
extends antlr.TokenStreamHiddenTokenFilter
implements antlr.TokenStream
| Modifier and Type | Field and Description |
|---|---|
protected antlr.collections.impl.BitSet |
copyMask |
| Constructor and Description |
|---|
TokenStreamCopyingHiddenTokenFilter(antlr.TokenStream input) |
| Modifier and Type | Method and Description |
|---|---|
void |
copy(int tokenType)
Indicate that all tokens of type tokenType should be copied.
|
void |
linkAndCopyToken(antlr.CommonHiddenStreamToken prev,
antlr.CommonHiddenStreamToken monitored) |
antlr.Token |
nextToken()
Return the next monitored token.
|
antlr.CommonHiddenStreamToken |
partialCloneToken(antlr.CommonHiddenStreamToken t)
Create a clone of the important parts of the given token.
|
consume, getDiscardMask, getHiddenAfter, getHiddenBefore, getHideMask, getInitialHiddenToken, hide, hide, LApublic TokenStreamCopyingHiddenTokenFilter(antlr.TokenStream input)
public void copy(int tokenType)
tokenType - integer representing the token type to copiedpublic antlr.CommonHiddenStreamToken partialCloneToken(antlr.CommonHiddenStreamToken t)
t - token to partially clonepublic void linkAndCopyToken(antlr.CommonHiddenStreamToken prev,
antlr.CommonHiddenStreamToken monitored)
public antlr.Token nextToken()
throws antlr.TokenStreamException
nextToken in interface antlr.TokenStreamnextToken in class antlr.TokenStreamHiddenTokenFilterantlr.TokenStreamExceptionCopyright © 2001–2017 Processing Foundation. All rights reserved.