| Constructor and Description |
|---|
NodeTypeAstVisitor() |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
dispatch(T node)
Dispatches to the appropriate visit() method and returns the result of
the visitation.
|
Object |
go(T node) |
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.
|
protected Object |
resolveAndVisit(T node,
int type) |
protected Object |
visit(AstNodeList<T> node) |
protected Object |
visit(AstParserEntity<T> node) |
protected Object |
visit(AstText<T> node) |
protected Object |
visitUnspecific(AstNode<T> node) |
public static final Object REMOVE
protected final Object dispatch(T node)
null this method
returns immediately with null as result.protected final void iterate(T node)
protected final void mapInPlace(T node)
protected Object resolveAndVisit(T node, int type) throws Exception
Exceptionprotected Object visitUnspecific(AstNode<T> node) throws Exception
Exceptionprotected Object visit(AstNodeList<T> node) throws Exception
Exceptionprotected Object visit(AstParserEntity<T> node) throws Exception
ExceptionCopyright © 2009–2017 University of Erlangen-Nürnberg - Open Source Research Group. All rights reserved.