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

antlr.treepat.TreepatVisitor Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 2.0.0
Show newest version
// Generated from antlr/treepat/Treepat.g4 by ANTLR 4.1
package antlr.treepat;
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 TreepatParser}.
 *
 * @param  The return type of the visit operation. Use {@link Void} for
 * operations with no return type.
 */
public interface TreepatVisitor extends ParseTreeVisitor {
	/**
	 * Visit a parse tree produced by {@link TreepatParser#indentWrapper}.
	 * @param ctx the parse tree
	 * @return the visitor result
	 */
	T visitIndentWrapper(@NotNull TreepatParser.IndentWrapperContext ctx);

	/**
	 * Visit a parse tree produced by {@link TreepatParser#depthClosure}.
	 * @param ctx the parse tree
	 * @return the visitor result
	 */
	T visitDepthClosure(@NotNull TreepatParser.DepthClosureContext ctx);

	/**
	 * Visit a parse tree produced by {@link TreepatParser#indent}.
	 * @param ctx the parse tree
	 * @return the visitor result
	 */
	T visitIndent(@NotNull TreepatParser.IndentContext ctx);

	/**
	 * Visit a parse tree produced by {@link TreepatParser#breadthClosure}.
	 * @param ctx the parse tree
	 * @return the visitor result
	 */
	T visitBreadthClosure(@NotNull TreepatParser.BreadthClosureContext ctx);

	/**
	 * Visit a parse tree produced by {@link TreepatParser#nestedIndent}.
	 * @param ctx the parse tree
	 * @return the visitor result
	 */
	T visitNestedIndent(@NotNull TreepatParser.NestedIndentContext ctx);

	/**
	 * Visit a parse tree produced by {@link TreepatParser#dot}.
	 * @param ctx the parse tree
	 * @return the visitor result
	 */
	T visitDot(@NotNull TreepatParser.DotContext ctx);

	/**
	 * Visit a parse tree produced by {@link TreepatParser#union}.
	 * @param ctx the parse tree
	 * @return the visitor result
	 */
	T visitUnion(@NotNull TreepatParser.UnionContext ctx);

	/**
	 * Visit a parse tree produced by {@link TreepatParser#atomTerm}.
	 * @param ctx the parse tree
	 * @return the visitor result
	 */
	T visitAtomTerm(@NotNull TreepatParser.AtomTermContext ctx);

	/**
	 * Visit a parse tree produced by {@link TreepatParser#nested}.
	 * @param ctx the parse tree
	 * @return the visitor result
	 */
	T visitNested(@NotNull TreepatParser.NestedContext ctx);

	/**
	 * Visit a parse tree produced by {@link TreepatParser#depthTerm}.
	 * @param ctx the parse tree
	 * @return the visitor result
	 */
	T visitDepthTerm(@NotNull TreepatParser.DepthTermContext ctx);

	/**
	 * Visit a parse tree produced by {@link TreepatParser#subtree}.
	 * @param ctx the parse tree
	 * @return the visitor result
	 */
	T visitSubtree(@NotNull TreepatParser.SubtreeContext ctx);

	/**
	 * Visit a parse tree produced by {@link TreepatParser#node}.
	 * @param ctx the parse tree
	 * @return the visitor result
	 */
	T visitNode(@NotNull TreepatParser.NodeContext ctx);

	/**
	 * Visit a parse tree produced by {@link TreepatParser#sibling}.
	 * @param ctx the parse tree
	 * @return the visitor result
	 */
	T visitSibling(@NotNull TreepatParser.SiblingContext ctx);

	/**
	 * Visit a parse tree produced by {@link TreepatParser#atomTermWrapper}.
	 * @param ctx the parse tree
	 * @return the visitor result
	 */
	T visitAtomTermWrapper(@NotNull TreepatParser.AtomTermWrapperContext ctx);

	/**
	 * Visit a parse tree produced by {@link TreepatParser#treepat}.
	 * @param ctx the parse tree
	 * @return the visitor result
	 */
	T visitTreepat(@NotNull TreepatParser.TreepatContext ctx);

	/**
	 * Visit a parse tree produced by {@link TreepatParser#child}.
	 * @param ctx the parse tree
	 * @return the visitor result
	 */
	T visitChild(@NotNull TreepatParser.ChildContext ctx);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy