xacute.quilt
Class QuiltQuery

java.lang.Object
  |
  +--xacute.quilt.QuiltQuery
All Implemented Interfaces:
PPrintable

public class QuiltQuery
extends java.lang.Object
implements PPrintable

This class represents a Quilt query, with a preamble containing function definitions.


Constructor Summary
QuiltQuery(java.util.Vector funDefs, QuiltExpression body)
           
 
Method Summary
 void eval(org.xml.sax.DocumentHandler handler, EvalContext con)
          Gives the result of a Query by triggering SAX events.
 QuiltExpression getBody()
           
 java.lang.String pprint()
          Pretty-prints a QuiltQuery.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuiltQuery

public QuiltQuery(java.util.Vector funDefs,
                  QuiltExpression body)
Method Detail

getBody

public QuiltExpression getBody()

eval

public void eval(org.xml.sax.DocumentHandler handler,
                 EvalContext con)
          throws QuiltException
Gives the result of a Query by triggering SAX events.
Parameters:
handler - a DocumentHandler on which the event-methods will be called
con - the EvalContext

pprint

public java.lang.String pprint()
Pretty-prints a QuiltQuery.
Specified by:
pprint in interface PPrintable