edu.wpi.cs.dsrg.utils
Class Debugger

java.lang.Object
  |
  +--edu.wpi.cs.dsrg.xmldb.xat.common.visitorpattern.InheritableVisitor
        |
        +--edu.wpi.cs.dsrg.utils.Debugger

public class Debugger
extends InheritableVisitor

This class is used to print out the XAT.

Since:
1.0

Field Summary
protected  XATTree tree
          The XATTree debugging.
 
Constructor Summary
Debugger(XATTree xattree)
          The default Debugger constructor.
 
Method Summary
 java.lang.Object dispatch()
          To visit a null object.
 java.lang.Object dispatch(java.lang.Object obj)
          To visit any object.
 XATTree getTree()
          Get the XML algebra tree.
 void printTree()
          Print the whole XATTree.
 void setTree(XATTree xattree)
          Set the XML algebra tree.
 java.lang.Object visit(Aggregate agg)
          Output of the Aggregate node in an XAT.
 java.lang.Object visit(CartesianProduct cartProd)
          Output of the CartesianProduct node in an XAT.
 java.lang.Object visit(Delete delete)
          Output of the Delete node in an XAT.
 java.lang.Object visit(Distinct distinct)
          Output of the Distinct node in an XAT.
 java.lang.Object visit(Expose expose)
          Output of the Expose node in an XAT.
 java.lang.Object visit(FOR forNode)
          Output of the FOR node in an XAT.
 java.lang.Object visit(Function function)
          Output of the Function node in an XAT.
 java.lang.Object visit(GroupBy groupBy)
          Output of the GroupBy node in an XAT.
 java.lang.Object visit(IfExpr ifExpr)
          Output of the IfExpr node in an XAT.
 java.lang.Object visit(Insert insert)
          Output of the Insert node in an XAT.
 java.lang.Object visit(Intersection intersect)
          Output of the Intersection node in an XAT.
 java.lang.Object visit(Join join)
          Output of the Join node in an XAT.
 java.lang.Object visit(LeftOuterJoin join)
          Output of the LeftOuterJoin node in an XAT.
 java.lang.Object visit(Merge merge)
          Output of the Merge node in an XAT.
 java.lang.Object visit(NameColumn nameColumn)
          Output of the NameColumn node in an XAT.
 java.lang.Object visit(NavCollection navigate)
          Output of the NavCollection node in an XAT.
 java.lang.Object visit(NavUnnest navigate)
          Output of the NavUnnest node in an XAT.
 java.lang.Object visit(OrderBy order)
          Output of the OrderBy node in an XAT.
 java.lang.Object visit(Project project)
          Output of the Project node in an XAT.
 java.lang.Object visit(Rename rename)
          Output of the Rename node in an XAT.
 java.lang.Object visit(Replace replace)
          Output of the Replace node in an XAT.
 java.lang.Object visit(RightOuterJoin join)
          Output of the RightOuterJoin node in an XAT.
 java.lang.Object visit(Select select)
          Output of the Select node in an XAT.
 java.lang.Object visit(Source source)
          Output of the Source node in an XAT.
 java.lang.Object visit(SQLStmt sqlS)
          Output of the SQLStmt node in an XAT.
 java.lang.Object visit(Tagger tagVisit)
          Output of the Tagger node in an XAT.
 java.lang.Object visit(Union union)
          Output of the Union node in an XAT.
 java.lang.Object visit(XMLUnion xu)
          Output of the XMLUnion node in an XAT.
 java.lang.Object visit(XQueryStmt xqueryS)
          Output of the XQueryStmt node in an XAT.
 
Methods inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.visitorpattern.InheritableVisitor
getAncestors, getMethod, visit, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tree

protected XATTree tree
The XATTree debugging.
Since:
1.0
Constructor Detail

Debugger

public Debugger(XATTree xattree)
The default Debugger constructor.
Since:
1.0
Method Detail

dispatch

public java.lang.Object dispatch()
Description copied from class: InheritableVisitor
To visit a null object.
Overrides:
dispatch in class InheritableVisitor

dispatch

public java.lang.Object dispatch(java.lang.Object obj)
Description copied from class: InheritableVisitor
To visit any object.
Overrides:
dispatch in class InheritableVisitor

getTree

public XATTree getTree()
Get the XML algebra tree.
Returns:
XATTree
Since:
1.0

printTree

public void printTree()
Print the whole XATTree.
Since:
1.0

setTree

public void setTree(XATTree xattree)
Set the XML algebra tree.
Parameters:
xattree - The XATTree set.
Since:
1.0

visit

public java.lang.Object visit(Expose expose)
Output of the Expose node in an XAT.
Parameters:
expose - The Expose for output.
Since:
1.0

visit

public java.lang.Object visit(FOR forNode)
Output of the FOR node in an XAT.
Parameters:
forNode - The FOR for output.
Since:
1.0

visit

public java.lang.Object visit(Function function)
Output of the Function node in an XAT.
Parameters:
function - The Function for output.
Since:
1.0

visit

public java.lang.Object visit(IfExpr ifExpr)
Output of the IfExpr node in an XAT.
Parameters:
IfExpr - The IfExpr for output.
Since:
1.0

visit

public java.lang.Object visit(Merge merge)
Output of the Merge node in an XAT.
Parameters:
merge - The Merge for output.
Since:
1.0

visit

public java.lang.Object visit(NameColumn nameColumn)
Output of the NameColumn node in an XAT.
Parameters:
nameColumn - The NameColumn for output.
Since:
1.0

visit

public java.lang.Object visit(Source source)
Output of the Source node in an XAT.
Parameters:
source - The Source for output.
Since:
1.0

visit

public java.lang.Object visit(SQLStmt sqlS)
Output of the SQLStmt node in an XAT.
Parameters:
sqlS - The SQLStmt for output.
Since:
1.0

visit

public java.lang.Object visit(XQueryStmt xqueryS)
Output of the XQueryStmt node in an XAT.
Parameters:
xqueryS - The XQueryStmt for output.
Since:
1.0

visit

public java.lang.Object visit(CartesianProduct cartProd)
Output of the CartesianProduct node in an XAT.
Parameters:
cartProd - The CartesianProduct for output.
Since:
1.0

visit

public java.lang.Object visit(Distinct distinct)
Output of the Distinct node in an XAT.
Parameters:
distinct - The Distinct for output.
Since:
1.0

visit

public java.lang.Object visit(GroupBy groupBy)
Output of the GroupBy node in an XAT.
Parameters:
groupBy - The GroupBy for output.
Since:
1.0

visit

public java.lang.Object visit(Intersection intersect)
Output of the Intersection node in an XAT.
Parameters:
intersection - The Intersection for output.
Since:
1.0

visit

public java.lang.Object visit(Join join)
Output of the Join node in an XAT.
Parameters:
join - The Join for output.
Since:
1.0

visit

public java.lang.Object visit(LeftOuterJoin join)
Output of the LeftOuterJoin node in an XAT.
Parameters:
join - The LeftOuterJoin for output.
Since:
1.0

visit

public java.lang.Object visit(OrderBy order)
Output of the OrderBy node in an XAT.
Parameters:
order - The OrderBy for output.
Since:
1.0

visit

public java.lang.Object visit(Project project)
Output of the Project node in an XAT.
Parameters:
project - The Project for output.
Since:
1.0

visit

public java.lang.Object visit(RightOuterJoin join)
Output of the RightOuterJoin node in an XAT.
Parameters:
join - The RightOuterJoin for output.
Since:
1.0

visit

public java.lang.Object visit(Select select)
Output of the Select node in an XAT.
Parameters:
select - The Select for output.
Since:
1.0

visit

public java.lang.Object visit(Union union)
Output of the Union node in an XAT.
Parameters:
union - The Union for output.
Since:
1.0

visit

public java.lang.Object visit(Delete delete)
Output of the Delete node in an XAT.
Parameters:
delete - The Delete for output.
Since:
1.0

visit

public java.lang.Object visit(Insert insert)
Output of the Insert node in an XAT.
Parameters:
insert - The Insert for output.
Since:
1.0

visit

public java.lang.Object visit(Rename rename)
Output of the Rename node in an XAT.
Parameters:
rename - The Rename for output.
Since:
1.0

visit

public java.lang.Object visit(Replace replace)
Output of the Replace node in an XAT.
Parameters:
replace - The Replace for output.
Since:
1.0

visit

public java.lang.Object visit(Aggregate agg)
Output of the Aggregate node in an XAT.
Parameters:
agg - The aggregate for output.
Since:
1.0

visit

public java.lang.Object visit(NavCollection navigate)
Output of the NavCollection node in an XAT.
Parameters:
navigate - The NavCollection for output.
Since:
1.0

visit

public java.lang.Object visit(NavUnnest navigate)
Output of the NavUnnest node in an XAT.
Parameters:
navigate - The NavUnnest for output.
Since:
1.0

visit

public java.lang.Object visit(Tagger tagVisit)
Output of the Tagger node in an XAT.
Parameters:
tagVisit - The Tagger for output.
Since:
1.0

visit

public java.lang.Object visit(XMLUnion xu)
Output of the XMLUnion node in an XAT.
Parameters:
xu - The XMLUnion for output.
Since:
1.0