design.unstructured.stix.evaluator.grammar.StixPatternBaseVisitor Maven / Gradle / Ivy
Show all versions of stix-pattern-evaluator Show documentation
/*
* stix-pattern-evaluator
* Copyright (C) 2020 - Christopher Carver
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
package design.unstructured.stix.evaluator.grammar;
import org.antlr.v4.runtime.tree.AbstractParseTreeVisitor;
/**
* This class provides an empty implementation of {@link StixPatternVisitor},
* 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 StixPatternBaseVisitor extends AbstractParseTreeVisitor implements StixPatternVisitor {
/**
* {@inheritDoc}
*
*
* The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.
*
*/
@Override
public T visitPattern(StixPatternParser.PatternContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
*
* The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.
*
*/
@Override
public T visitObservationExpressions(StixPatternParser.ObservationExpressionsContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
*
* The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.
*
*/
@Override
public T visitObservationExpressionOr(StixPatternParser.ObservationExpressionOrContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
*
* The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.
*
*/
@Override
public T visitObservationExpressionAnd(StixPatternParser.ObservationExpressionAndContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
*
* The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.
*
*/
@Override
public T visitObservationExpressionRepeated(StixPatternParser.ObservationExpressionRepeatedContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
*
* The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.
*
*/
@Override
public T visitObservationExpressionSimple(StixPatternParser.ObservationExpressionSimpleContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
*
* The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.
*
*/
@Override
public T visitObservationExpressionCompound(StixPatternParser.ObservationExpressionCompoundContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
*
* The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.
*
*/
@Override
public T visitObservationExpressionWithin(StixPatternParser.ObservationExpressionWithinContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
*
* The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.
*
*/
@Override
public T visitObservationExpressionStartStop(StixPatternParser.ObservationExpressionStartStopContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
*
* The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.
*
*/
@Override
public T visitComparisonExpressionAnd_(StixPatternParser.ComparisonExpressionAnd_Context ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
*
* The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.
*
*/
@Override
public T visitComparisonExpressionOred(StixPatternParser.ComparisonExpressionOredContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
*
* The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.
*
*/
@Override
public T visitComparisonExpressionAndPropTest(StixPatternParser.ComparisonExpressionAndPropTestContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
*
* The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.
*
*/
@Override
public T visitComparisonExpressionAnded(StixPatternParser.ComparisonExpressionAndedContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
*
* The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.
*
*/
@Override
public T visitPropTestEqual(StixPatternParser.PropTestEqualContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
*
* The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.
*
*/
@Override
public T visitPropTestOrder(StixPatternParser.PropTestOrderContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
*
* The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.
*
*/
@Override
public T visitPropTestSet(StixPatternParser.PropTestSetContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
*
* The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.
*
*/
@Override
public T visitPropTestLike(StixPatternParser.PropTestLikeContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
*
* The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.
*
*/
@Override
public T visitPropTestRegex(StixPatternParser.PropTestRegexContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
*
* The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.
*
*/
@Override
public T visitPropTestIsSubset(StixPatternParser.PropTestIsSubsetContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
*
* The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.
*
*/
@Override
public T visitPropTestIsSuperset(StixPatternParser.PropTestIsSupersetContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
*
* The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.
*
*/
@Override
public T visitPropTestParen(StixPatternParser.PropTestParenContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
*
* The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.
*
*/
@Override
public T visitPropTestExists(StixPatternParser.PropTestExistsContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
*
* The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.
*
*/
@Override
public T visitOrderingComparator(StixPatternParser.OrderingComparatorContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
*
* The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.
*
*/
@Override
public T visitStringLiteral(StixPatternParser.StringLiteralContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
*
* The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.
*
*/
@Override
public T visitStartStopQualifier(StixPatternParser.StartStopQualifierContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
*
* The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.
*
*/
@Override
public T visitWithinQualifier(StixPatternParser.WithinQualifierContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
*
* The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.
*
*/
@Override
public T visitRepeatedQualifier(StixPatternParser.RepeatedQualifierContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
*
* The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.
*
*/
@Override
public T visitObjectPath(StixPatternParser.ObjectPathContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
*
* The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.
*
*/
@Override
public T visitObjectType(StixPatternParser.ObjectTypeContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
*
* The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.
*
*/
@Override
public T visitFirstPathComponent(StixPatternParser.FirstPathComponentContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
*
* The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.
*
*/
@Override
public T visitIndexPathStep(StixPatternParser.IndexPathStepContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
*
* The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.
*
*/
@Override
public T visitPathStep(StixPatternParser.PathStepContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
*
* The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.
*
*/
@Override
public T visitKeyPathStep(StixPatternParser.KeyPathStepContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
*
* The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.
*
*/
@Override
public T visitSetLiteral(StixPatternParser.SetLiteralContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
*
* The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.
*
*/
@Override
public T visitPrimitiveLiteral(StixPatternParser.PrimitiveLiteralContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
*
* The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.
*
*/
@Override
public T visitOrderableLiteral(StixPatternParser.OrderableLiteralContext ctx) {
return visitChildren(ctx);
}
}