tree_format.TreeFormatVisitor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Treepat Show documentation
Show all versions of Treepat Show documentation
Treepat is a language to recognise patterns in trees in a similar way as regular expressions recognize patterns in strings. Treepat includes analogous operators to regex union, concatenation, and closure, which are extended to the notion of trees.
// Generated from tree_format/TreeFormat.g4 by ANTLR 4.1
package tree_format;
import org.antlr.v4.runtime.misc.NotNull;
import org.antlr.v4.runtime.tree.ParseTreeVisitor;
/**
* This interface defines a complete generic visitor for a parse tree produced
* by {@link TreeFormatParser}.
*
* @param The return type of the visit operation. Use {@link Void} for
* operations with no return type.
*/
public interface TreeFormatVisitor extends ParseTreeVisitor {
/**
* Visit a parse tree produced by {@link TreeFormatParser#subtree}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitSubtree(@NotNull TreeFormatParser.SubtreeContext ctx);
/**
* Visit a parse tree produced by {@link TreeFormatParser#node}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitNode(@NotNull TreeFormatParser.NodeContext ctx);
/**
* Visit a parse tree produced by {@link TreeFormatParser#sibling}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitSibling(@NotNull TreeFormatParser.SiblingContext ctx);
/**
* Visit a parse tree produced by {@link TreeFormatParser#information}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitInformation(@NotNull TreeFormatParser.InformationContext ctx);
/**
* Visit a parse tree produced by {@link TreeFormatParser#child}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitChild(@NotNull TreeFormatParser.ChildContext ctx);
}