uk.co.badgersinfoil.metaas.impl.antlr
Class LinkedListTokenSource

java.lang.Object
  extended by uk.co.badgersinfoil.metaas.impl.antlr.LinkedListTokenSource
All Implemented Interfaces:
org.antlr.runtime.TokenSource

public class LinkedListTokenSource
extends java.lang.Object
implements org.antlr.runtime.TokenSource


Constructor Summary
LinkedListTokenSource(org.antlr.runtime.TokenSource delegate)
           
 
Method Summary
 org.antlr.runtime.Token nextToken()
           
 void setDelegate(org.antlr.runtime.TokenSource delegate)
          Redefines the TokenSource to which this object delagates the task of token creation.
 void setLast(LinkedListToken tok)
          Overrides the 'last' token which this object is remembering in order to build next/previous links.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkedListTokenSource

public LinkedListTokenSource(org.antlr.runtime.TokenSource delegate)
Method Detail

nextToken

public org.antlr.runtime.Token nextToken()
Specified by:
nextToken in interface org.antlr.runtime.TokenSource

setDelegate

public void setDelegate(org.antlr.runtime.TokenSource delegate)
Redefines the TokenSource to which this object delagates the task of token creation. This can be used to switch Lexers when an island grammar is required, for instance.


setLast

public void setLast(LinkedListToken tok)
Overrides the 'last' token which this object is remembering in order to build next/previous links.



Copyright © 2006 null. All Rights Reserved.