public class AstVisitor<T extends AstNode<T>> extends VisitorBase<T>
| Constructor and Description |
|---|
AstVisitor() |
AstVisitor(VisitorLogic<T> logic) |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
dispatch(T node)
Dispatches to the appropriate visit() method and returns the result of
the visitation.
|
protected void |
iterate(T node) |
protected List<Object> |
map(T node) |
protected void |
mapInPlace(T node)
Iterates over the children of an AST node and replaces each child node
with the result of the visitation of the respective child.
|
after, before, go, handleVisitingException, resolveAndVisit, visitNotFoundpublic static final Object REMOVE
public AstVisitor()
public AstVisitor(VisitorLogic<T> logic)
protected Object dispatch(T node)
null this method
returns immediately with null as result.dispatch in class VisitorBase<T extends AstNode<T>>protected void iterate(T node)
protected void mapInPlace(T node)
Copyright © 2009–2017 University of Erlangen-Nürnberg - Open Source Research Group. All rights reserved.