org.eclipse.xtext.xbase.compiler.output
Class TreeAppendable.Visitor

java.lang.Object
  extended by org.eclipse.xtext.xbase.compiler.output.TreeAppendable.Visitor
Enclosing class:
TreeAppendable

public abstract static class TreeAppendable.Visitor
extends java.lang.Object

A visitor can be used to manipulate an existing TreeAppendable or to create a completely new one recursively. Implementors may override visit(String) and visit(TreeAppendable)


Constructor Summary
TreeAppendable.Visitor()
           
 
Method Summary
protected  java.lang.String visit(java.lang.String string)
          Manipulate the given string and return the result.
protected  TreeAppendable visit(TreeAppendable original)
          Manipulate the given appendable or return a new one.
protected  void visitChildren(TreeAppendable parent)
          Traverses the children of the given appendable and manipulates it in-place.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeAppendable.Visitor

public TreeAppendable.Visitor()
Method Detail

visit

protected TreeAppendable visit(TreeAppendable original)
Manipulate the given appendable or return a new one.

Parameters:
original - the visited TreeAppendable
Returns:
the original appendable or a new one.

visitChildren

protected void visitChildren(TreeAppendable parent)
Traverses the children of the given appendable and manipulates it in-place.

Parameters:
parent - the appendable whose children should be visited.

visit

protected java.lang.String visit(@NonNull
                                 java.lang.String string)
Manipulate the given string and return the result.

Parameters:
string - the visited String
Returns:
the original string or a new one.