Package com.intuit.karate.core
Class FeatureParser
- java.lang.Object
-
- com.intuit.karate.core.KarateParserBaseListener
-
- com.intuit.karate.core.FeatureParser
-
- All Implemented Interfaces:
KarateParserListener
,org.antlr.v4.runtime.tree.ParseTreeListener
public class FeatureParser extends KarateParserBaseListener
- Author:
- pthomas3
-
-
Field Summary
Fields Modifier and Type Field Description static String
TRIPLE_QUOTES
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
enterBackground(KarateParser.BackgroundContext ctx)
Enter a parse tree produced byKarateParser.background()
.void
enterFeatureHeader(KarateParser.FeatureHeaderContext ctx)
Enter a parse tree produced byKarateParser.featureHeader()
.void
enterScenario(KarateParser.ScenarioContext ctx)
Enter a parse tree produced byKarateParser.scenario()
.void
enterScenarioOutline(KarateParser.ScenarioOutlineContext ctx)
Enter a parse tree produced byKarateParser.scenarioOutline()
.protected static void
parse(Feature feature)
-
Methods inherited from class com.intuit.karate.core.KarateParserBaseListener
enterDocString, enterEveryRule, enterExampleDescription, enterExamples, enterFeature, enterFeatureDescription, enterFeatureTags, enterLine, enterPrefix, enterScenarioDescription, enterStep, enterTable, enterTags, exitBackground, exitDocString, exitEveryRule, exitExampleDescription, exitExamples, exitFeature, exitFeatureDescription, exitFeatureHeader, exitFeatureTags, exitLine, exitPrefix, exitScenario, exitScenarioDescription, exitScenarioOutline, exitStep, exitTable, exitTags, visitErrorNode, visitTerminal
-
-
-
-
Field Detail
-
TRIPLE_QUOTES
public static final String TRIPLE_QUOTES
- See Also:
- Constant Field Values
-
-
Method Detail
-
parse
protected static void parse(Feature feature)
-
enterFeatureHeader
public void enterFeatureHeader(KarateParser.FeatureHeaderContext ctx)
Description copied from class:KarateParserBaseListener
Enter a parse tree produced byKarateParser.featureHeader()
.The default implementation does nothing.
- Specified by:
enterFeatureHeader
in interfaceKarateParserListener
- Overrides:
enterFeatureHeader
in classKarateParserBaseListener
- Parameters:
ctx
- the parse tree
-
enterBackground
public void enterBackground(KarateParser.BackgroundContext ctx)
Description copied from class:KarateParserBaseListener
Enter a parse tree produced byKarateParser.background()
.The default implementation does nothing.
- Specified by:
enterBackground
in interfaceKarateParserListener
- Overrides:
enterBackground
in classKarateParserBaseListener
- Parameters:
ctx
- the parse tree
-
enterScenario
public void enterScenario(KarateParser.ScenarioContext ctx)
Description copied from class:KarateParserBaseListener
Enter a parse tree produced byKarateParser.scenario()
.The default implementation does nothing.
- Specified by:
enterScenario
in interfaceKarateParserListener
- Overrides:
enterScenario
in classKarateParserBaseListener
- Parameters:
ctx
- the parse tree
-
enterScenarioOutline
public void enterScenarioOutline(KarateParser.ScenarioOutlineContext ctx)
Description copied from class:KarateParserBaseListener
Enter a parse tree produced byKarateParser.scenarioOutline()
.The default implementation does nothing.
- Specified by:
enterScenarioOutline
in interfaceKarateParserListener
- Overrides:
enterScenarioOutline
in classKarateParserBaseListener
- Parameters:
ctx
- the parse tree
-
-