All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.persistence.internal.libraries.antlr.runtime.tree.TreeVisitorAction Maven / Gradle / Ivy

There is a newer version: 5.0.0-B02
Show newest version
package org.eclipse.persistence.internal.libraries.antlr.runtime.tree;

/** How to execute code for node t when a visitor visits node t.  Execute
 *  pre() before visiting children and execute post() after visiting children.
 */
public interface TreeVisitorAction {
    /** 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().
     */
    public Object pre(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.
     */
    public Object post(Object t);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy