public class ToStringVisitor extends java.lang.Object implements Node.Visitor
Modifier and Type | Class and Description |
---|---|
static interface |
ToStringVisitor.Transformer |
Node.Visitor.State, Node.Visitor.Status
Modifier and Type | Field and Description |
---|---|
protected java.lang.StringBuilder |
out |
protected ToStringVisitor.Transformer |
transformer |
Constructor and Description |
---|
ToStringVisitor() |
ToStringVisitor(ToStringVisitor.Transformer transformer) |
Modifier and Type | Method and Description |
---|---|
void |
print(java.io.PrintStream ps) |
protected void |
printNodeEnd(Node n) |
protected void |
printNodeStart(Node n) |
protected void |
printWhitespace(Node n) |
java.lang.String |
toString() |
Node.Visitor.Status |
visit(Node n,
Node.Visitor.State state) |
protected java.lang.StringBuilder out
protected ToStringVisitor.Transformer transformer
public ToStringVisitor()
public ToStringVisitor(ToStringVisitor.Transformer transformer)
public Node.Visitor.Status visit(Node n, Node.Visitor.State state) throws java.rmi.RemoteException, MXException
visit
in interface Node.Visitor
java.rmi.RemoteException
MXException
protected void printNodeStart(Node n)
protected void printNodeEnd(Node n)
protected void printWhitespace(Node n)
public void print(java.io.PrintStream ps)
public java.lang.String toString()
toString
in class java.lang.Object