Remove generated gherkin code from coverage report
- Take the chance to remove / deprecate autogenerated classes that are not needed and were not used.
This commit is contained in:
parent
f803aa36dc
commit
ef3a4cc15e
@ -18,6 +18,28 @@
|
|||||||
<artifactId>antlr4-maven-plugin</artifactId>
|
<artifactId>antlr4-maven-plugin</artifactId>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-antrun-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>antlr-cleanup</id>
|
||||||
|
<phase>generate-sources</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>run</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<target>
|
||||||
|
<ant antfile="${antlr4.ant.wrapper}" target="cpd-language">
|
||||||
|
<property name="lang-name" value="Gherkin" />
|
||||||
|
<property name="lang-id" value="gherkin" />
|
||||||
|
</ant>
|
||||||
|
</target>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-resources-plugin</artifactId>
|
<artifactId>maven-resources-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,192 @@
|
|||||||
|
/*
|
||||||
|
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
|
||||||
|
*/
|
||||||
|
|
||||||
|
// CHECKSTYLE:OFF
|
||||||
|
// Generated from net/sourceforge/pmd/lang/gherkin/ast/Gherkin.g4 by ANTLR 4.9.3
|
||||||
|
package net.sourceforge.pmd.lang.gherkin.ast;
|
||||||
|
import org.antlr.v4.runtime.tree.AbstractParseTreeVisitor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class provides an empty implementation of {@link GherkinVisitor},
|
||||||
|
* 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.
|
||||||
|
*
|
||||||
|
* @deprecated Since 7.8.0. This class was never intended to be generated. It will be removed with no replacement.
|
||||||
|
*/
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
|
@net.sourceforge.pmd.annotation.Generated("org.antlr.v4.Tool")
|
||||||
|
public class GherkinBaseVisitor<T> extends AbstractParseTreeVisitor<T> implements GherkinVisitor<T> {
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*
|
||||||
|
* <p>The default implementation returns the result of calling
|
||||||
|
* {@link #visitChildren} on {@code ctx}.</p>
|
||||||
|
*/
|
||||||
|
@Override public T visitMain(GherkinParser.MainContext ctx) { return visitChildren(ctx); }
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*
|
||||||
|
* <p>The default implementation returns the result of calling
|
||||||
|
* {@link #visitChildren} on {@code ctx}.</p>
|
||||||
|
*/
|
||||||
|
@Override public T visitFeature(GherkinParser.FeatureContext ctx) { return visitChildren(ctx); }
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*
|
||||||
|
* <p>The default implementation returns the result of calling
|
||||||
|
* {@link #visitChildren} on {@code ctx}.</p>
|
||||||
|
*/
|
||||||
|
@Override public T visitInstructionLine(GherkinParser.InstructionLineContext ctx) { return visitChildren(ctx); }
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*
|
||||||
|
* <p>The default implementation returns the result of calling
|
||||||
|
* {@link #visitChildren} on {@code ctx}.</p>
|
||||||
|
*/
|
||||||
|
@Override public T visitInstruction(GherkinParser.InstructionContext ctx) { return visitChildren(ctx); }
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*
|
||||||
|
* <p>The default implementation returns the result of calling
|
||||||
|
* {@link #visitChildren} on {@code ctx}.</p>
|
||||||
|
*/
|
||||||
|
@Override public T visitStepInstruction(GherkinParser.StepInstructionContext ctx) { return visitChildren(ctx); }
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*
|
||||||
|
* <p>The default implementation returns the result of calling
|
||||||
|
* {@link #visitChildren} on {@code ctx}.</p>
|
||||||
|
*/
|
||||||
|
@Override public T visitBackground(GherkinParser.BackgroundContext ctx) { return visitChildren(ctx); }
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*
|
||||||
|
* <p>The default implementation returns the result of calling
|
||||||
|
* {@link #visitChildren} on {@code ctx}.</p>
|
||||||
|
*/
|
||||||
|
@Override public T visitRulex(GherkinParser.RulexContext ctx) { return visitChildren(ctx); }
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*
|
||||||
|
* <p>The default implementation returns the result of calling
|
||||||
|
* {@link #visitChildren} on {@code ctx}.</p>
|
||||||
|
*/
|
||||||
|
@Override public T visitScenario(GherkinParser.ScenarioContext ctx) { return visitChildren(ctx); }
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*
|
||||||
|
* <p>The default implementation returns the result of calling
|
||||||
|
* {@link #visitChildren} on {@code ctx}.</p>
|
||||||
|
*/
|
||||||
|
@Override public T visitScenarioOutline(GherkinParser.ScenarioOutlineContext ctx) { return visitChildren(ctx); }
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*
|
||||||
|
* <p>The default implementation returns the result of calling
|
||||||
|
* {@link #visitChildren} on {@code ctx}.</p>
|
||||||
|
*/
|
||||||
|
@Override public T visitStep(GherkinParser.StepContext ctx) { return visitChildren(ctx); }
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*
|
||||||
|
* <p>The default implementation returns the result of calling
|
||||||
|
* {@link #visitChildren} on {@code ctx}.</p>
|
||||||
|
*/
|
||||||
|
@Override public T visitStepItem(GherkinParser.StepItemContext ctx) { return visitChildren(ctx); }
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*
|
||||||
|
* <p>The default implementation returns the result of calling
|
||||||
|
* {@link #visitChildren} on {@code ctx}.</p>
|
||||||
|
*/
|
||||||
|
@Override public T visitTagline(GherkinParser.TaglineContext ctx) { return visitChildren(ctx); }
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*
|
||||||
|
* <p>The default implementation returns the result of calling
|
||||||
|
* {@link #visitChildren} on {@code ctx}.</p>
|
||||||
|
*/
|
||||||
|
@Override public T visitAnd(GherkinParser.AndContext ctx) { return visitChildren(ctx); }
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*
|
||||||
|
* <p>The default implementation returns the result of calling
|
||||||
|
* {@link #visitChildren} on {@code ctx}.</p>
|
||||||
|
*/
|
||||||
|
@Override public T visitAnystep(GherkinParser.AnystepContext ctx) { return visitChildren(ctx); }
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*
|
||||||
|
* <p>The default implementation returns the result of calling
|
||||||
|
* {@link #visitChildren} on {@code ctx}.</p>
|
||||||
|
*/
|
||||||
|
@Override public T visitBut(GherkinParser.ButContext ctx) { return visitChildren(ctx); }
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*
|
||||||
|
* <p>The default implementation returns the result of calling
|
||||||
|
* {@link #visitChildren} on {@code ctx}.</p>
|
||||||
|
*/
|
||||||
|
@Override public T visitDatatable(GherkinParser.DatatableContext ctx) { return visitChildren(ctx); }
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*
|
||||||
|
* <p>The default implementation returns the result of calling
|
||||||
|
* {@link #visitChildren} on {@code ctx}.</p>
|
||||||
|
*/
|
||||||
|
@Override public T visitGiven(GherkinParser.GivenContext ctx) { return visitChildren(ctx); }
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*
|
||||||
|
* <p>The default implementation returns the result of calling
|
||||||
|
* {@link #visitChildren} on {@code ctx}.</p>
|
||||||
|
*/
|
||||||
|
@Override public T visitThen(GherkinParser.ThenContext ctx) { return visitChildren(ctx); }
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*
|
||||||
|
* <p>The default implementation returns the result of calling
|
||||||
|
* {@link #visitChildren} on {@code ctx}.</p>
|
||||||
|
*/
|
||||||
|
@Override public T visitWhen(GherkinParser.WhenContext ctx) { return visitChildren(ctx); }
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*
|
||||||
|
* <p>The default implementation returns the result of calling
|
||||||
|
* {@link #visitChildren} on {@code ctx}.</p>
|
||||||
|
*/
|
||||||
|
@Override public T visitExamples(GherkinParser.ExamplesContext ctx) { return visitChildren(ctx); }
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*
|
||||||
|
* <p>The default implementation returns the result of calling
|
||||||
|
* {@link #visitChildren} on {@code ctx}.</p>
|
||||||
|
*/
|
||||||
|
@Override public T visitInstructionDescription(GherkinParser.InstructionDescriptionContext ctx) { return visitChildren(ctx); }
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*
|
||||||
|
* <p>The default implementation returns the result of calling
|
||||||
|
* {@link #visitChildren} on {@code ctx}.</p>
|
||||||
|
*/
|
||||||
|
@Override public T visitStepDescription(GherkinParser.StepDescriptionContext ctx) { return visitChildren(ctx); }
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*
|
||||||
|
* <p>The default implementation returns the result of calling
|
||||||
|
* {@link #visitChildren} on {@code ctx}.</p>
|
||||||
|
*/
|
||||||
|
@Override public T visitDescription(GherkinParser.DescriptionContext ctx) { return visitChildren(ctx); }
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*
|
||||||
|
* <p>The default implementation returns the result of calling
|
||||||
|
* {@link #visitChildren} on {@code ctx}.</p>
|
||||||
|
*/
|
||||||
|
@Override public T visitText(GherkinParser.TextContext ctx) { return visitChildren(ctx); }
|
||||||
|
}
|
@ -0,0 +1,260 @@
|
|||||||
|
/*
|
||||||
|
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
|
||||||
|
*/
|
||||||
|
|
||||||
|
// CHECKSTYLE:OFF
|
||||||
|
// Generated from net/sourceforge/pmd/lang/gherkin/ast/Gherkin.g4 by ANTLR 4.9.3
|
||||||
|
package net.sourceforge.pmd.lang.gherkin.ast;
|
||||||
|
import org.antlr.v4.runtime.tree.ParseTreeListener;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This interface defines a complete listener for a parse tree produced by
|
||||||
|
* {@link GherkinParser}.
|
||||||
|
*
|
||||||
|
* @deprecated Since 7.8.0. This class was never intended to be generated. It will be removed with no replacement.
|
||||||
|
*/
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
|
@net.sourceforge.pmd.annotation.Generated("org.antlr.v4.Tool")
|
||||||
|
public interface GherkinListener extends ParseTreeListener {
|
||||||
|
/**
|
||||||
|
* Enter a parse tree produced by {@link GherkinParser#main}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void enterMain(GherkinParser.MainContext ctx);
|
||||||
|
/**
|
||||||
|
* Exit a parse tree produced by {@link GherkinParser#main}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void exitMain(GherkinParser.MainContext ctx);
|
||||||
|
/**
|
||||||
|
* Enter a parse tree produced by {@link GherkinParser#feature}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void enterFeature(GherkinParser.FeatureContext ctx);
|
||||||
|
/**
|
||||||
|
* Exit a parse tree produced by {@link GherkinParser#feature}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void exitFeature(GherkinParser.FeatureContext ctx);
|
||||||
|
/**
|
||||||
|
* Enter a parse tree produced by {@link GherkinParser#instructionLine}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void enterInstructionLine(GherkinParser.InstructionLineContext ctx);
|
||||||
|
/**
|
||||||
|
* Exit a parse tree produced by {@link GherkinParser#instructionLine}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void exitInstructionLine(GherkinParser.InstructionLineContext ctx);
|
||||||
|
/**
|
||||||
|
* Enter a parse tree produced by {@link GherkinParser#instruction}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void enterInstruction(GherkinParser.InstructionContext ctx);
|
||||||
|
/**
|
||||||
|
* Exit a parse tree produced by {@link GherkinParser#instruction}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void exitInstruction(GherkinParser.InstructionContext ctx);
|
||||||
|
/**
|
||||||
|
* Enter a parse tree produced by {@link GherkinParser#stepInstruction}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void enterStepInstruction(GherkinParser.StepInstructionContext ctx);
|
||||||
|
/**
|
||||||
|
* Exit a parse tree produced by {@link GherkinParser#stepInstruction}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void exitStepInstruction(GherkinParser.StepInstructionContext ctx);
|
||||||
|
/**
|
||||||
|
* Enter a parse tree produced by {@link GherkinParser#background}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void enterBackground(GherkinParser.BackgroundContext ctx);
|
||||||
|
/**
|
||||||
|
* Exit a parse tree produced by {@link GherkinParser#background}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void exitBackground(GherkinParser.BackgroundContext ctx);
|
||||||
|
/**
|
||||||
|
* Enter a parse tree produced by {@link GherkinParser#rulex}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void enterRulex(GherkinParser.RulexContext ctx);
|
||||||
|
/**
|
||||||
|
* Exit a parse tree produced by {@link GherkinParser#rulex}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void exitRulex(GherkinParser.RulexContext ctx);
|
||||||
|
/**
|
||||||
|
* Enter a parse tree produced by {@link GherkinParser#scenario}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void enterScenario(GherkinParser.ScenarioContext ctx);
|
||||||
|
/**
|
||||||
|
* Exit a parse tree produced by {@link GherkinParser#scenario}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void exitScenario(GherkinParser.ScenarioContext ctx);
|
||||||
|
/**
|
||||||
|
* Enter a parse tree produced by {@link GherkinParser#scenarioOutline}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void enterScenarioOutline(GherkinParser.ScenarioOutlineContext ctx);
|
||||||
|
/**
|
||||||
|
* Exit a parse tree produced by {@link GherkinParser#scenarioOutline}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void exitScenarioOutline(GherkinParser.ScenarioOutlineContext ctx);
|
||||||
|
/**
|
||||||
|
* Enter a parse tree produced by {@link GherkinParser#step}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void enterStep(GherkinParser.StepContext ctx);
|
||||||
|
/**
|
||||||
|
* Exit a parse tree produced by {@link GherkinParser#step}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void exitStep(GherkinParser.StepContext ctx);
|
||||||
|
/**
|
||||||
|
* Enter a parse tree produced by {@link GherkinParser#stepItem}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void enterStepItem(GherkinParser.StepItemContext ctx);
|
||||||
|
/**
|
||||||
|
* Exit a parse tree produced by {@link GherkinParser#stepItem}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void exitStepItem(GherkinParser.StepItemContext ctx);
|
||||||
|
/**
|
||||||
|
* Enter a parse tree produced by {@link GherkinParser#tagline}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void enterTagline(GherkinParser.TaglineContext ctx);
|
||||||
|
/**
|
||||||
|
* Exit a parse tree produced by {@link GherkinParser#tagline}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void exitTagline(GherkinParser.TaglineContext ctx);
|
||||||
|
/**
|
||||||
|
* Enter a parse tree produced by {@link GherkinParser#and}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void enterAnd(GherkinParser.AndContext ctx);
|
||||||
|
/**
|
||||||
|
* Exit a parse tree produced by {@link GherkinParser#and}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void exitAnd(GherkinParser.AndContext ctx);
|
||||||
|
/**
|
||||||
|
* Enter a parse tree produced by {@link GherkinParser#anystep}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void enterAnystep(GherkinParser.AnystepContext ctx);
|
||||||
|
/**
|
||||||
|
* Exit a parse tree produced by {@link GherkinParser#anystep}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void exitAnystep(GherkinParser.AnystepContext ctx);
|
||||||
|
/**
|
||||||
|
* Enter a parse tree produced by {@link GherkinParser#but}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void enterBut(GherkinParser.ButContext ctx);
|
||||||
|
/**
|
||||||
|
* Exit a parse tree produced by {@link GherkinParser#but}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void exitBut(GherkinParser.ButContext ctx);
|
||||||
|
/**
|
||||||
|
* Enter a parse tree produced by {@link GherkinParser#datatable}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void enterDatatable(GherkinParser.DatatableContext ctx);
|
||||||
|
/**
|
||||||
|
* Exit a parse tree produced by {@link GherkinParser#datatable}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void exitDatatable(GherkinParser.DatatableContext ctx);
|
||||||
|
/**
|
||||||
|
* Enter a parse tree produced by {@link GherkinParser#given}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void enterGiven(GherkinParser.GivenContext ctx);
|
||||||
|
/**
|
||||||
|
* Exit a parse tree produced by {@link GherkinParser#given}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void exitGiven(GherkinParser.GivenContext ctx);
|
||||||
|
/**
|
||||||
|
* Enter a parse tree produced by {@link GherkinParser#then}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void enterThen(GherkinParser.ThenContext ctx);
|
||||||
|
/**
|
||||||
|
* Exit a parse tree produced by {@link GherkinParser#then}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void exitThen(GherkinParser.ThenContext ctx);
|
||||||
|
/**
|
||||||
|
* Enter a parse tree produced by {@link GherkinParser#when}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void enterWhen(GherkinParser.WhenContext ctx);
|
||||||
|
/**
|
||||||
|
* Exit a parse tree produced by {@link GherkinParser#when}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void exitWhen(GherkinParser.WhenContext ctx);
|
||||||
|
/**
|
||||||
|
* Enter a parse tree produced by {@link GherkinParser#examples}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void enterExamples(GherkinParser.ExamplesContext ctx);
|
||||||
|
/**
|
||||||
|
* Exit a parse tree produced by {@link GherkinParser#examples}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void exitExamples(GherkinParser.ExamplesContext ctx);
|
||||||
|
/**
|
||||||
|
* Enter a parse tree produced by {@link GherkinParser#instructionDescription}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void enterInstructionDescription(GherkinParser.InstructionDescriptionContext ctx);
|
||||||
|
/**
|
||||||
|
* Exit a parse tree produced by {@link GherkinParser#instructionDescription}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void exitInstructionDescription(GherkinParser.InstructionDescriptionContext ctx);
|
||||||
|
/**
|
||||||
|
* Enter a parse tree produced by {@link GherkinParser#stepDescription}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void enterStepDescription(GherkinParser.StepDescriptionContext ctx);
|
||||||
|
/**
|
||||||
|
* Exit a parse tree produced by {@link GherkinParser#stepDescription}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void exitStepDescription(GherkinParser.StepDescriptionContext ctx);
|
||||||
|
/**
|
||||||
|
* Enter a parse tree produced by {@link GherkinParser#description}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void enterDescription(GherkinParser.DescriptionContext ctx);
|
||||||
|
/**
|
||||||
|
* Exit a parse tree produced by {@link GherkinParser#description}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void exitDescription(GherkinParser.DescriptionContext ctx);
|
||||||
|
/**
|
||||||
|
* Enter a parse tree produced by {@link GherkinParser#text}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void enterText(GherkinParser.TextContext ctx);
|
||||||
|
/**
|
||||||
|
* Exit a parse tree produced by {@link GherkinParser#text}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
*/
|
||||||
|
void exitText(GherkinParser.TextContext ctx);
|
||||||
|
}
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,167 @@
|
|||||||
|
/*
|
||||||
|
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
|
||||||
|
*/
|
||||||
|
|
||||||
|
// CHECKSTYLE:OFF
|
||||||
|
// Generated from net/sourceforge/pmd/lang/gherkin/ast/Gherkin.g4 by ANTLR 4.9.3
|
||||||
|
package net.sourceforge.pmd.lang.gherkin.ast;
|
||||||
|
import org.antlr.v4.runtime.tree.ParseTreeVisitor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This interface defines a complete generic visitor for a parse tree produced
|
||||||
|
* by {@link GherkinParser}.
|
||||||
|
*
|
||||||
|
* @param <T> The return type of the visit operation. Use {@link Void} for
|
||||||
|
* operations with no return type.
|
||||||
|
*
|
||||||
|
* @deprecated Since 7.8.0. This class was never intended to be generated. It will be removed with no replacement.
|
||||||
|
*/
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
|
@net.sourceforge.pmd.annotation.Generated("org.antlr.v4.Tool")
|
||||||
|
public interface GherkinVisitor<T> extends ParseTreeVisitor<T> {
|
||||||
|
/**
|
||||||
|
* Visit a parse tree produced by {@link GherkinParser#main}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
* @return the visitor result
|
||||||
|
*/
|
||||||
|
T visitMain(GherkinParser.MainContext ctx);
|
||||||
|
/**
|
||||||
|
* Visit a parse tree produced by {@link GherkinParser#feature}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
* @return the visitor result
|
||||||
|
*/
|
||||||
|
T visitFeature(GherkinParser.FeatureContext ctx);
|
||||||
|
/**
|
||||||
|
* Visit a parse tree produced by {@link GherkinParser#instructionLine}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
* @return the visitor result
|
||||||
|
*/
|
||||||
|
T visitInstructionLine(GherkinParser.InstructionLineContext ctx);
|
||||||
|
/**
|
||||||
|
* Visit a parse tree produced by {@link GherkinParser#instruction}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
* @return the visitor result
|
||||||
|
*/
|
||||||
|
T visitInstruction(GherkinParser.InstructionContext ctx);
|
||||||
|
/**
|
||||||
|
* Visit a parse tree produced by {@link GherkinParser#stepInstruction}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
* @return the visitor result
|
||||||
|
*/
|
||||||
|
T visitStepInstruction(GherkinParser.StepInstructionContext ctx);
|
||||||
|
/**
|
||||||
|
* Visit a parse tree produced by {@link GherkinParser#background}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
* @return the visitor result
|
||||||
|
*/
|
||||||
|
T visitBackground(GherkinParser.BackgroundContext ctx);
|
||||||
|
/**
|
||||||
|
* Visit a parse tree produced by {@link GherkinParser#rulex}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
* @return the visitor result
|
||||||
|
*/
|
||||||
|
T visitRulex(GherkinParser.RulexContext ctx);
|
||||||
|
/**
|
||||||
|
* Visit a parse tree produced by {@link GherkinParser#scenario}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
* @return the visitor result
|
||||||
|
*/
|
||||||
|
T visitScenario(GherkinParser.ScenarioContext ctx);
|
||||||
|
/**
|
||||||
|
* Visit a parse tree produced by {@link GherkinParser#scenarioOutline}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
* @return the visitor result
|
||||||
|
*/
|
||||||
|
T visitScenarioOutline(GherkinParser.ScenarioOutlineContext ctx);
|
||||||
|
/**
|
||||||
|
* Visit a parse tree produced by {@link GherkinParser#step}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
* @return the visitor result
|
||||||
|
*/
|
||||||
|
T visitStep(GherkinParser.StepContext ctx);
|
||||||
|
/**
|
||||||
|
* Visit a parse tree produced by {@link GherkinParser#stepItem}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
* @return the visitor result
|
||||||
|
*/
|
||||||
|
T visitStepItem(GherkinParser.StepItemContext ctx);
|
||||||
|
/**
|
||||||
|
* Visit a parse tree produced by {@link GherkinParser#tagline}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
* @return the visitor result
|
||||||
|
*/
|
||||||
|
T visitTagline(GherkinParser.TaglineContext ctx);
|
||||||
|
/**
|
||||||
|
* Visit a parse tree produced by {@link GherkinParser#and}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
* @return the visitor result
|
||||||
|
*/
|
||||||
|
T visitAnd(GherkinParser.AndContext ctx);
|
||||||
|
/**
|
||||||
|
* Visit a parse tree produced by {@link GherkinParser#anystep}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
* @return the visitor result
|
||||||
|
*/
|
||||||
|
T visitAnystep(GherkinParser.AnystepContext ctx);
|
||||||
|
/**
|
||||||
|
* Visit a parse tree produced by {@link GherkinParser#but}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
* @return the visitor result
|
||||||
|
*/
|
||||||
|
T visitBut(GherkinParser.ButContext ctx);
|
||||||
|
/**
|
||||||
|
* Visit a parse tree produced by {@link GherkinParser#datatable}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
* @return the visitor result
|
||||||
|
*/
|
||||||
|
T visitDatatable(GherkinParser.DatatableContext ctx);
|
||||||
|
/**
|
||||||
|
* Visit a parse tree produced by {@link GherkinParser#given}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
* @return the visitor result
|
||||||
|
*/
|
||||||
|
T visitGiven(GherkinParser.GivenContext ctx);
|
||||||
|
/**
|
||||||
|
* Visit a parse tree produced by {@link GherkinParser#then}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
* @return the visitor result
|
||||||
|
*/
|
||||||
|
T visitThen(GherkinParser.ThenContext ctx);
|
||||||
|
/**
|
||||||
|
* Visit a parse tree produced by {@link GherkinParser#when}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
* @return the visitor result
|
||||||
|
*/
|
||||||
|
T visitWhen(GherkinParser.WhenContext ctx);
|
||||||
|
/**
|
||||||
|
* Visit a parse tree produced by {@link GherkinParser#examples}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
* @return the visitor result
|
||||||
|
*/
|
||||||
|
T visitExamples(GherkinParser.ExamplesContext ctx);
|
||||||
|
/**
|
||||||
|
* Visit a parse tree produced by {@link GherkinParser#instructionDescription}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
* @return the visitor result
|
||||||
|
*/
|
||||||
|
T visitInstructionDescription(GherkinParser.InstructionDescriptionContext ctx);
|
||||||
|
/**
|
||||||
|
* Visit a parse tree produced by {@link GherkinParser#stepDescription}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
* @return the visitor result
|
||||||
|
*/
|
||||||
|
T visitStepDescription(GherkinParser.StepDescriptionContext ctx);
|
||||||
|
/**
|
||||||
|
* Visit a parse tree produced by {@link GherkinParser#description}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
* @return the visitor result
|
||||||
|
*/
|
||||||
|
T visitDescription(GherkinParser.DescriptionContext ctx);
|
||||||
|
/**
|
||||||
|
* Visit a parse tree produced by {@link GherkinParser#text}.
|
||||||
|
* @param ctx the parse tree
|
||||||
|
* @return the visitor result
|
||||||
|
*/
|
||||||
|
T visitText(GherkinParser.TextContext ctx);
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user