com.hp.hpl.jena.rdf.query.parser
Class Q_Query

java.lang.Object
  |
  +--com.hp.hpl.jena.rdf.query.parser.SimpleNode
        |
        +--com.hp.hpl.jena.rdf.query.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.


Constructor Summary
Q_Query(int id)
           
Q_Query(RDQLParser p, int id)
           
 
Method Summary
 void phase2(Query q)
           
 java.lang.String toString()
          Formats the query from phase 2 in a style that is acceptable to the parser.
 
Methods inherited from class com.hp.hpl.jena.rdf.query.parser.SimpleNode
dump, fixup, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Q_Query

public Q_Query(int id)

Q_Query

public Q_Query(RDQLParser p,
               int id)
Method Detail

phase2

public void phase2(Query q)

toString

public java.lang.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


Copyright © 2001 Hewlett-Packard. All Rights Reserved.