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

org.seimicrawler.xpath.antlr.XpathBaseVisitor Maven / Gradle / Ivy

Go to download

一个非常好用而且强大的基于xpath的html解析器。html的DOM树生成依赖Jsoup。Lexer 和 Parser基于Antlr4,支持完备的W3C XPATH 1.0标准语法,W3C规范:http://www.w3.org/TR/1999/REC-xpath-19991116。

There is a newer version: 2.5.3
Show newest version
// Generated from Xpath.g4 by ANTLR 4.7
package org.seimicrawler.xpath.antlr;
import org.antlr.v4.runtime.tree.AbstractParseTreeVisitor;

/**
 * This class provides an empty implementation of {@link XpathVisitor},
 * which can be extended to create a visitor which only needs to handle a subset
 * of the available methods.
 *
 * @param  The return type of the visit operation. Use {@link Void} for
 * operations with no return type.
 */
public class XpathBaseVisitor extends AbstractParseTreeVisitor implements XpathVisitor {
	/**
	 * {@inheritDoc}
	 *
	 * 

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ @Override public T visitMain(XpathParser.MainContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ @Override public T visitLocationPath(XpathParser.LocationPathContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ @Override public T visitAbsoluteLocationPathNoroot(XpathParser.AbsoluteLocationPathNorootContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ @Override public T visitRelativeLocationPath(XpathParser.RelativeLocationPathContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ @Override public T visitStep(XpathParser.StepContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ @Override public T visitAxisSpecifier(XpathParser.AxisSpecifierContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ @Override public T visitNodeTest(XpathParser.NodeTestContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ @Override public T visitPredicate(XpathParser.PredicateContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ @Override public T visitAbbreviatedStep(XpathParser.AbbreviatedStepContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ @Override public T visitExpr(XpathParser.ExprContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ @Override public T visitPrimaryExpr(XpathParser.PrimaryExprContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ @Override public T visitFunctionCall(XpathParser.FunctionCallContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ @Override public T visitUnionExprNoRoot(XpathParser.UnionExprNoRootContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ @Override public T visitPathExprNoRoot(XpathParser.PathExprNoRootContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ @Override public T visitFilterExpr(XpathParser.FilterExprContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ @Override public T visitOrExpr(XpathParser.OrExprContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ @Override public T visitAndExpr(XpathParser.AndExprContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ @Override public T visitEqualityExpr(XpathParser.EqualityExprContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ @Override public T visitRelationalExpr(XpathParser.RelationalExprContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ @Override public T visitAdditiveExpr(XpathParser.AdditiveExprContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ @Override public T visitMultiplicativeExpr(XpathParser.MultiplicativeExprContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ @Override public T visitUnaryExprNoRoot(XpathParser.UnaryExprNoRootContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ @Override public T visitQName(XpathParser.QNameContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ @Override public T visitFunctionName(XpathParser.FunctionNameContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ @Override public T visitVariableReference(XpathParser.VariableReferenceContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ @Override public T visitNameTest(XpathParser.NameTestContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ @Override public T visitNCName(XpathParser.NCNameContext ctx) { return visitChildren(ctx); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy