| // ANTLR GENERATED CODE: DO NOT EDIT |
| package org.apache.lucene.expressions.js; |
| |
| import org.antlr.v4.runtime.tree.AbstractParseTreeVisitor; |
| |
| /** |
| * This class provides an empty implementation of {@link JavascriptVisitor}, which can be extended |
| * to create a visitor which only needs to handle a subset of the available methods. |
| * |
| * @param <T> The return type of the visit operation. Use {@link Void} for operations with no return |
| * type. |
| */ |
| class JavascriptBaseVisitor<T> extends AbstractParseTreeVisitor<T> implements JavascriptVisitor<T> { |
| /** |
| * {@inheritDoc} |
| * |
| * <p>The default implementation returns the result of calling {@link #visitChildren} on {@code |
| * ctx}. |
| */ |
| @Override |
| public T visitCompile(JavascriptParser.CompileContext ctx) { |
| return visitChildren(ctx); |
| } |
| /** |
| * {@inheritDoc} |
| * |
| * <p>The default implementation returns the result of calling {@link #visitChildren} on {@code |
| * ctx}. |
| */ |
| @Override |
| public T visitConditional(JavascriptParser.ConditionalContext ctx) { |
| return visitChildren(ctx); |
| } |
| /** |
| * {@inheritDoc} |
| * |
| * <p>The default implementation returns the result of calling {@link #visitChildren} on {@code |
| * ctx}. |
| */ |
| @Override |
| public T visitBoolor(JavascriptParser.BoolorContext ctx) { |
| return visitChildren(ctx); |
| } |
| /** |
| * {@inheritDoc} |
| * |
| * <p>The default implementation returns the result of calling {@link #visitChildren} on {@code |
| * ctx}. |
| */ |
| @Override |
| public T visitBoolcomp(JavascriptParser.BoolcompContext ctx) { |
| return visitChildren(ctx); |
| } |
| /** |
| * {@inheritDoc} |
| * |
| * <p>The default implementation returns the result of calling {@link #visitChildren} on {@code |
| * ctx}. |
| */ |
| @Override |
| public T visitNumeric(JavascriptParser.NumericContext ctx) { |
| return visitChildren(ctx); |
| } |
| /** |
| * {@inheritDoc} |
| * |
| * <p>The default implementation returns the result of calling {@link #visitChildren} on {@code |
| * ctx}. |
| */ |
| @Override |
| public T visitAddsub(JavascriptParser.AddsubContext ctx) { |
| return visitChildren(ctx); |
| } |
| /** |
| * {@inheritDoc} |
| * |
| * <p>The default implementation returns the result of calling {@link #visitChildren} on {@code |
| * ctx}. |
| */ |
| @Override |
| public T visitUnary(JavascriptParser.UnaryContext ctx) { |
| return visitChildren(ctx); |
| } |
| /** |
| * {@inheritDoc} |
| * |
| * <p>The default implementation returns the result of calling {@link #visitChildren} on {@code |
| * ctx}. |
| */ |
| @Override |
| public T visitPrecedence(JavascriptParser.PrecedenceContext ctx) { |
| return visitChildren(ctx); |
| } |
| /** |
| * {@inheritDoc} |
| * |
| * <p>The default implementation returns the result of calling {@link #visitChildren} on {@code |
| * ctx}. |
| */ |
| @Override |
| public T visitMuldiv(JavascriptParser.MuldivContext ctx) { |
| return visitChildren(ctx); |
| } |
| /** |
| * {@inheritDoc} |
| * |
| * <p>The default implementation returns the result of calling {@link #visitChildren} on {@code |
| * ctx}. |
| */ |
| @Override |
| public T visitExternal(JavascriptParser.ExternalContext ctx) { |
| return visitChildren(ctx); |
| } |
| /** |
| * {@inheritDoc} |
| * |
| * <p>The default implementation returns the result of calling {@link #visitChildren} on {@code |
| * ctx}. |
| */ |
| @Override |
| public T visitBwshift(JavascriptParser.BwshiftContext ctx) { |
| return visitChildren(ctx); |
| } |
| /** |
| * {@inheritDoc} |
| * |
| * <p>The default implementation returns the result of calling {@link #visitChildren} on {@code |
| * ctx}. |
| */ |
| @Override |
| public T visitBwor(JavascriptParser.BworContext ctx) { |
| return visitChildren(ctx); |
| } |
| /** |
| * {@inheritDoc} |
| * |
| * <p>The default implementation returns the result of calling {@link #visitChildren} on {@code |
| * ctx}. |
| */ |
| @Override |
| public T visitBooland(JavascriptParser.BoolandContext ctx) { |
| return visitChildren(ctx); |
| } |
| /** |
| * {@inheritDoc} |
| * |
| * <p>The default implementation returns the result of calling {@link #visitChildren} on {@code |
| * ctx}. |
| */ |
| @Override |
| public T visitBwxor(JavascriptParser.BwxorContext ctx) { |
| return visitChildren(ctx); |
| } |
| /** |
| * {@inheritDoc} |
| * |
| * <p>The default implementation returns the result of calling {@link #visitChildren} on {@code |
| * ctx}. |
| */ |
| @Override |
| public T visitBwand(JavascriptParser.BwandContext ctx) { |
| return visitChildren(ctx); |
| } |
| /** |
| * {@inheritDoc} |
| * |
| * <p>The default implementation returns the result of calling {@link #visitChildren} on {@code |
| * ctx}. |
| */ |
| @Override |
| public T visitBooleqne(JavascriptParser.BooleqneContext ctx) { |
| return visitChildren(ctx); |
| } |
| } |