org.egothor.parser.plain
Class Simple

java.lang.Object
  extended by org.egothor.parser.plain.Simple
All Implemented Interfaces:
SimpleConstants

public class Simple
extends java.lang.Object
implements SimpleConstants

Author:
Leo Galambos

Field Summary
 Token jj_nt
           
 Token token
           
 SimpleTokenManager token_source
           
 
Fields inherited from interface org.egothor.parser.plain.SimpleConstants
ACRONYM, CJK_LETTER, CRAP, DATE, DEFAULT, DIGIT, EOF, GRAM, LETTER, MARK, NOISE, NUM, PUNCT, tokenImage, WORD
 
Constructor Summary
Simple(CharStream stream)
           
Simple(SimpleTokenManager tm)
           
 
Method Summary
 void disable_tracing()
           
 void enable_tracing()
           
 ParseException generateParseException()
           
 Token getNextToken()
           
 Token getToken(int index)
           
 Token next()
          Returns the next token in the stream, or null at EOS.
 void ReInit(CharStream stream)
           
 void ReInit(SimpleTokenManager tm)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

token_source

public SimpleTokenManager token_source

token

public Token token

jj_nt

public Token jj_nt
Constructor Detail

Simple

public Simple(CharStream stream)

Simple

public Simple(SimpleTokenManager tm)
Method Detail

next

public final Token next()
                 throws ParseException
Returns the next token in the stream, or null at EOS.

Throws:
ParseException

ReInit

public void ReInit(CharStream stream)

ReInit

public void ReInit(SimpleTokenManager tm)

getNextToken

public final Token getNextToken()

getToken

public final Token getToken(int index)

generateParseException

public ParseException generateParseException()

enable_tracing

public final void enable_tracing()

disable_tracing

public final void disable_tracing()