站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > 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
  extended by org.antlr.runtime.CommonTokenStream
      extended by 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

Field Summary
 
Fields inherited from class org.antlr.runtime.CommonTokenStream
channel, channelOverrideMap, discardOffChannelTokens, discardSet, lastMarker, p, tokens, tokenSource
 
Constructor Summary
SwitchingCommonTokenStream()
           
SwitchingCommonTokenStream(org.antlr.runtime.TokenSource tokenSource)
           
SwitchingCommonTokenStream(org.antlr.runtime.TokenSource tokenSource, int channel)
           
 
Method Summary
 Integer getTokenTypeChannel(int tokenType)
           
 void removeTokenTypeChannel(int tokenType)
           
protected  int skipOffTokenChannels(int i)
           
protected  int skipOffTokenChannelsReverse(int i)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SwitchingCommonTokenStream

public SwitchingCommonTokenStream()

SwitchingCommonTokenStream

public SwitchingCommonTokenStream(org.antlr.runtime.TokenSource tokenSource)

SwitchingCommonTokenStream

public SwitchingCommonTokenStream(org.antlr.runtime.TokenSource tokenSource,
                                  int channel)
Method Detail

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.