Interface TreeVisitorAction
-
public interface TreeVisitorActionHow to execute code for node t when a visitor visits node t. Execute pre() before visiting children and execute post() after visiting children.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Objectpost(java.lang.Object t)Execute an action after visiting children of t.java.lang.Objectpre(java.lang.Object t)Execute an action before visiting children of t.
-
-
-
Method Detail
-
pre
java.lang.Object pre(java.lang.Object t)
Execute an action before visiting children of t. Return t or a rewritten t. It is up to the visitor to decide what to do with the return value. Children of returned value will be visited if using TreeVisitor.visit().
-
post
java.lang.Object post(java.lang.Object t)
Execute an action after visiting children of t. Return t or a rewritten t. It is up to the visitor to decide what to do with the return value.
-
-