Class GherkinBaseVisitor<T>
- java.lang.Object
-
- org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
-
- net.sourceforge.pmd.lang.gherkin.ast.GherkinBaseVisitor<T>
-
- Type Parameters:
T
- The return type of the visit operation. UseVoid
for operations with no return type.
- All Implemented Interfaces:
GherkinVisitor<T>
,org.antlr.v4.runtime.tree.ParseTreeVisitor<T>
public class GherkinBaseVisitor<T> extends org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T> implements GherkinVisitor<T>
This class provides an empty implementation ofGherkinVisitor
, which can be extended to create a visitor which only needs to handle a subset of the available methods.
-
-
Constructor Summary
Constructors Constructor Description GherkinBaseVisitor()
-
Method Summary
-
Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminal
-
-
-
-
Method Detail
-
visitMain
public T visitMain(GherkinParser.MainContext ctx)
Visit a parse tree produced byGherkinParser.main()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitMain
in interfaceGherkinVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitFeature
public T visitFeature(GherkinParser.FeatureContext ctx)
Visit a parse tree produced byGherkinParser.feature()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitFeature
in interfaceGherkinVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitInstructionLine
public T visitInstructionLine(GherkinParser.InstructionLineContext ctx)
Visit a parse tree produced byGherkinParser.instructionLine()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitInstructionLine
in interfaceGherkinVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitInstruction
public T visitInstruction(GherkinParser.InstructionContext ctx)
Visit a parse tree produced byGherkinParser.instruction()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitInstruction
in interfaceGherkinVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitStepInstruction
public T visitStepInstruction(GherkinParser.StepInstructionContext ctx)
Visit a parse tree produced byGherkinParser.stepInstruction()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitStepInstruction
in interfaceGherkinVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBackground
public T visitBackground(GherkinParser.BackgroundContext ctx)
Visit a parse tree produced byGherkinParser.background()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBackground
in interfaceGherkinVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitRulex
public T visitRulex(GherkinParser.RulexContext ctx)
Visit a parse tree produced byGherkinParser.rulex()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitRulex
in interfaceGherkinVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitScenario
public T visitScenario(GherkinParser.ScenarioContext ctx)
Visit a parse tree produced byGherkinParser.scenario()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitScenario
in interfaceGherkinVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitScenarioOutline
public T visitScenarioOutline(GherkinParser.ScenarioOutlineContext ctx)
Visit a parse tree produced byGherkinParser.scenarioOutline()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitScenarioOutline
in interfaceGherkinVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitStep
public T visitStep(GherkinParser.StepContext ctx)
Visit a parse tree produced byGherkinParser.step()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitStep
in interfaceGherkinVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitStepItem
public T visitStepItem(GherkinParser.StepItemContext ctx)
Visit a parse tree produced byGherkinParser.stepItem()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitStepItem
in interfaceGherkinVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTagline
public T visitTagline(GherkinParser.TaglineContext ctx)
Visit a parse tree produced byGherkinParser.tagline()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitTagline
in interfaceGherkinVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAnd
public T visitAnd(GherkinParser.AndContext ctx)
Visit a parse tree produced byGherkinParser.and()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitAnd
in interfaceGherkinVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAnystep
public T visitAnystep(GherkinParser.AnystepContext ctx)
Visit a parse tree produced byGherkinParser.anystep()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitAnystep
in interfaceGherkinVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBut
public T visitBut(GherkinParser.ButContext ctx)
Visit a parse tree produced byGherkinParser.but()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBut
in interfaceGherkinVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitDatatable
public T visitDatatable(GherkinParser.DatatableContext ctx)
Visit a parse tree produced byGherkinParser.datatable()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitDatatable
in interfaceGherkinVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitGiven
public T visitGiven(GherkinParser.GivenContext ctx)
Visit a parse tree produced byGherkinParser.given()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitGiven
in interfaceGherkinVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitThen
public T visitThen(GherkinParser.ThenContext ctx)
Visit a parse tree produced byGherkinParser.then()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitThen
in interfaceGherkinVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitWhen
public T visitWhen(GherkinParser.WhenContext ctx)
Visit a parse tree produced byGherkinParser.when()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitWhen
in interfaceGherkinVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitExamples
public T visitExamples(GherkinParser.ExamplesContext ctx)
Visit a parse tree produced byGherkinParser.examples()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitExamples
in interfaceGherkinVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitInstructionDescription
public T visitInstructionDescription(GherkinParser.InstructionDescriptionContext ctx)
Visit a parse tree produced byGherkinParser.instructionDescription()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitInstructionDescription
in interfaceGherkinVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitStepDescription
public T visitStepDescription(GherkinParser.StepDescriptionContext ctx)
Visit a parse tree produced byGherkinParser.stepDescription()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitStepDescription
in interfaceGherkinVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitDescription
public T visitDescription(GherkinParser.DescriptionContext ctx)
Visit a parse tree produced byGherkinParser.description()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitDescription
in interfaceGherkinVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitText
public T visitText(GherkinParser.TextContext ctx)
Visit a parse tree produced byGherkinParser.text()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitText
in interfaceGherkinVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
-