de.fuberlin.wiwiss.ng4j.triql.parser
Class Q_Query

java.lang.Object
  extended by de.fuberlin.wiwiss.ng4j.triql.parser.SimpleNode
      extended by de.fuberlin.wiwiss.ng4j.triql.parser.Q_Query
All Implemented Interfaces:
Node

public class Q_Query
extends SimpleNode

Concrete result of parsing a query. This is the top node inth eabstract syntax tree generated by the jjtree/javacc grammar. After being created this class builds a Query suitable for execution. After that, this is not used, although many of the syntax tree nodes are used as they implement the interfaces needed by the abstarct query model.


Field Summary
 
Fields inherited from class de.fuberlin.wiwiss.ng4j.triql.parser.SimpleNode
children, id, parent, parser
 
Constructor Summary
Q_Query(int id)
           
Q_Query(TriQLParser p, int id)
           
 
Method Summary
 void buildQuery(TriQLQuery q)
           
 String toString()
          Formats the query from phase 2 in a style that is acceptable to the parser.
 
Methods inherited from class de.fuberlin.wiwiss.ng4j.triql.parser.SimpleNode
dump, fixup, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Q_Query

public Q_Query(int id)

Q_Query

public Q_Query(TriQLParser p,
               int id)
Method Detail

buildQuery

public void buildQuery(TriQLQuery q)

toString

public String toString()
Formats the query from phase 2 in a style that is acceptable to the parser. Note this is NOT guaranteed to be the same as the original string because we may have done optimizations or other rearranging. It should give the same answers on the same dataset.

Overrides:
toString in class SimpleNode