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

net.kautler.command.usage.UsageBaseVisitor Maven / Gradle / Ivy

There is a newer version: 0.5.0
Show newest version
// Generated from net\kautler\command\u005Cusage\Usage.g4 by ANTLR 4.7.2

/*
 * Copyright 2019 Björn Kautler
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package net.kautler.command.usage;

import org.antlr.v4.runtime.tree.AbstractParseTreeVisitor;

/**
 * This class provides an empty implementation of {@link UsageVisitor},
 * 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 UsageBaseVisitor extends AbstractParseTreeVisitor implements UsageVisitor {
	/**
	 * {@inheritDoc}
	 *
	 * 

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

*/ @Override public T visitUsage(UsageParser.UsageContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

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

*/ @Override public T visitExpression(UsageParser.ExpressionContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

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

*/ @Override public T visitOptionalSubExpression(UsageParser.OptionalSubExpressionContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

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

*/ @Override public T visitAlternativesSubExpression(UsageParser.AlternativesSubExpressionContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

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

*/ @Override public T visitOptional(UsageParser.OptionalContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

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

*/ @Override public T visitAlternatives(UsageParser.AlternativesContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

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

*/ @Override public T visitPlaceholder(UsageParser.PlaceholderContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

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

*/ @Override public T visitPlaceholderWithWhitespace(UsageParser.PlaceholderWithWhitespaceContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

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

*/ @Override public T visitLiteral(UsageParser.LiteralContext ctx) { return visitChildren(ctx); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy