saffron
Class PlanWriter

java.lang.Object
  |
  +--java.io.Writer
        |
        +--java.io.PrintWriter
              |
              +--saffron.PlanWriter

public class PlanWriter
extends PrintWriter

Callback for an expression to dump itself to.


Field Summary
(package private)  HashSet active
          Recursion detection.
(package private)  boolean brief
           
(package private)  int level
           
 boolean withIdPrefix
           
 
Fields inherited from class java.io.PrintWriter
out
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
PlanWriter(PrintWriter pw)
           
PlanWriter(PrintWriter pw, boolean brief)
           
 
Method Summary
 void explain(Rel rel, String[] terms)
           
 void explain(Rel rel, String[] terms, Object[] values)
           
private  void explainBrief(String s, Rel rel, String[] terms)
           
 void explainSubset(String s, Rel child)
          Special form used by RelSubset.
 void explainTree(Rel exp)
           
 
Methods inherited from class java.io.PrintWriter
checkError, close, flush, print, print, print, print, print, print, print, print, print, println, println, println, println, println, println, println, println, println, println, setError, write, write, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

brief

boolean brief

level

int level

active

HashSet active
Recursion detection.


withIdPrefix

public boolean withIdPrefix
Constructor Detail

PlanWriter

public PlanWriter(PrintWriter pw)

PlanWriter

public PlanWriter(PrintWriter pw,
                  boolean brief)
Method Detail

explainTree

public void explainTree(Rel exp)

explainBrief

private void explainBrief(String s,
                          Rel rel,
                          String[] terms)

explain

public void explain(Rel rel,
                    String[] terms,
                    Object[] values)
Pre-condition:
rel != null, terms.length == rel.getChildExps().length + values.length, values != null

explain

public void explain(Rel rel,
                    String[] terms)

explainSubset

public void explainSubset(String s,
                          Rel child)
Special form used by RelSubset.


SourceForge.net_Logo