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. UseVoidfor 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:
visitMainin 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:
visitFeaturein 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:
visitInstructionLinein 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:
visitInstructionin 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:
visitStepInstructionin 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:
visitBackgroundin 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:
visitRulexin 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:
visitScenarioin 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:
visitScenarioOutlinein 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:
visitStepin 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:
visitStepItemin 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:
visitTaglinein 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:
visitAndin 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:
visitAnystepin 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:
visitButin 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:
visitDatatablein 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:
visitGivenin 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:
visitThenin 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:
visitWhenin 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:
visitExamplesin 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:
visitInstructionDescriptionin 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:
visitStepDescriptionin 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:
visitDescriptionin 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:
visitTextin interfaceGherkinVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
-