Class TreeAppendable.Visitor
- java.lang.Object
-
- org.eclipse.xtext.xbase.compiler.output.TreeAppendable.Visitor
-
- Enclosing class:
- TreeAppendable
public abstract static class TreeAppendable.Visitor extends java.lang.ObjectAvisitorcan be used to manipulate an existingTreeAppendableor to create a completely new one recursively. Implementors may overridevisit(String)andvisit(TreeAppendable)
-
-
Constructor Summary
Constructors Constructor Description Visitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Stringvisit(java.lang.String string)Manipulate the given string and return the result.protected TreeAppendablevisit(TreeAppendable original)Manipulate the given appendable or return a new one.protected voidvisitChildren(TreeAppendable parent)Traverses the children of the given appendable and manipulates it in-place.
-
-
-
Method Detail
-
visit
protected TreeAppendable visit(TreeAppendable original)
Manipulate the given appendable or return a new one.- Parameters:
original- the visitedTreeAppendable- 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(java.lang.String string)
Manipulate the given string and return the result.- Parameters:
string- the visitedString- Returns:
- the original string or a new one.
-
-