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.Object
Avisitor
can be used to manipulate an existingTreeAppendable
or 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.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.
-
-
-
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.
-
-