net.sourceforge.nite.search
Class TestParser

java.lang.Object
  extended by net.sourceforge.nite.search.TestParser
All Implemented Interfaces:
ParserConstants, ParserTreeConstants

public class TestParser
extends java.lang.Object

This class merely provides access to the Parser class, which is generated as a protected class, by extending it with a public class. Some classes in the rewriter package create their own parsers in order to run unit tests on their own functionality. This class enables them to do that, without changing access to the Parser.


Field Summary
 Token jj_nt
           
 Token token
           
 ParserTokenManager token_source
           
 
Fields inherited from interface net.sourceforge.nite.search.ParserTreeConstants
JJTCONDITION, JJTLOGICAL, jjtNodeName, JJTQUERY, JJTSIMPLEQUERY
 
Fields inherited from interface net.sourceforge.nite.search.ParserConstants
AND, CENTER, CONTACT_WITH, DEFAULT, DIGIT, DOMINANCE, DURATION, END, EOF, EQ, EQREGEXP, EXISTS, FORALL, GE, GT, ID, IMPLICATION, INCLUDES, LE, LEFT, LEFT_ALIGNED_WITH, LETTER, LT, NE, NEREGEXP, NOT, NUMBER, OR, OVERLAPS_LEFT, OVERLAPS_WITH, POINTER, PRECEDENCE, PRECEDES, REGEXP, RIGHT, RIGHT_ALIGNED_WITH, SAME_EXTENT_AS, START, TEXT, TIMED, tokenImage, TYPE, VALUE, VAR, VARATR
 
Constructor Summary
TestParser(java.io.InputStream stream)
           
TestParser(ParserTokenManager tm)
           
TestParser(java.io.Reader stream)
           
 
Method Summary
 NodeCondition Condition()
           
 void disable_tracing()
           
 void enable_tracing()
           
 ParseException generateParseException()
           
 Token getNextToken()
           
 Token getToken(int index)
           
 void Logical()
           
static void main(java.lang.String[] args)
           
 NodeQuery Query()
           
 void ReInit(java.io.InputStream stream)
           
 void ReInit(ParserTokenManager tm)
           
 void ReInit(java.io.Reader stream)
           
 void SimpleQuery()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

token_source

public ParserTokenManager token_source

token

public Token token

jj_nt

public Token jj_nt
Constructor Detail

TestParser

public TestParser(java.io.InputStream stream)

TestParser

public TestParser(java.io.Reader stream)

TestParser

public TestParser(ParserTokenManager tm)
Method Detail

main

public static void main(java.lang.String[] args)

Query

public final NodeQuery Query()
                      throws ParseException
Throws:
ParseException

SimpleQuery

public final void SimpleQuery()
                       throws ParseException
Throws:
ParseException

Logical

public final void Logical()
                   throws ParseException
Throws:
ParseException

Condition

public final NodeCondition Condition()
                              throws ParseException
Throws:
ParseException

ReInit

public void ReInit(java.io.InputStream stream)

ReInit

public void ReInit(java.io.Reader stream)

ReInit

public void ReInit(ParserTokenManager tm)

getNextToken

public final Token getNextToken()

getToken

public final Token getToken(int index)

generateParseException

public final ParseException generateParseException()

enable_tracing

public final void enable_tracing()

disable_tracing

public final void disable_tracing()