当前页面:
在线文档首页 >
JBoss RULES 4.0.0.11754MR2 API 英文版文档
SwitchingCommonTokenStream (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档
org.drools.compiler
Class SwitchingCommonTokenStream
java.lang.Object
org.antlr.runtime.CommonTokenStream
org.drools.compiler.SwitchingCommonTokenStream
- All Implemented Interfaces:
- org.antlr.runtime.IntStream, org.antlr.runtime.TokenStream
public class SwitchingCommonTokenStream
- extends org.antlr.runtime.CommonTokenStream
This is a specialized version of CommonTokenStream that allows
the parser to switch tokens between channels on the fly.
- Author:
- Edson Tirelli
Fields inherited from class org.antlr.runtime.CommonTokenStream |
channel, channelOverrideMap, discardOffChannelTokens, discardSet, lastMarker, p, tokens, tokenSource |
Methods inherited from class org.antlr.runtime.CommonTokenStream |
consume, discardOffChannelTokens, discardTokenType, fillBuffer, get, getTokens, getTokens, getTokens, getTokens, getTokens, getTokenSource, index, LA, LB, LT, mark, release, rewind, rewind, seek, setTokenSource, setTokenTypeChannel, size, toString, toString, toString |
SwitchingCommonTokenStream
public SwitchingCommonTokenStream()
SwitchingCommonTokenStream
public SwitchingCommonTokenStream(org.antlr.runtime.TokenSource tokenSource)
SwitchingCommonTokenStream
public SwitchingCommonTokenStream(org.antlr.runtime.TokenSource tokenSource,
int channel)
getTokenTypeChannel
public Integer getTokenTypeChannel(int tokenType)
removeTokenTypeChannel
public void removeTokenTypeChannel(int tokenType)
skipOffTokenChannels
protected int skipOffTokenChannels(int i)
- Overrides:
skipOffTokenChannels
in class org.antlr.runtime.CommonTokenStream
skipOffTokenChannelsReverse
protected int skipOffTokenChannelsReverse(int i)
- Overrides:
skipOffTokenChannelsReverse
in class org.antlr.runtime.CommonTokenStream
Copyright © 2001-2007
JBoss Inc.. All Rights Reserved.