Class GherkinParser
- java.lang.Object
-
- org.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,org.antlr.v4.runtime.atn.ParserATNSimulator>
-
- org.antlr.v4.runtime.Parser
-
- net.sourceforge.pmd.lang.gherkin.ast.GherkinParser
-
public class GherkinParser extends org.antlr.v4.runtime.Parser
-
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description static org.antlr.v4.runtime.atn.ATN
_ATN
protected static org.antlr.v4.runtime.dfa.DFA[]
_decisionToDFA
static String
_serializedATN
protected static org.antlr.v4.runtime.atn.PredictionContextCache
_sharedContextCache
static int
AND
static int
ANYSTEP
static int
BACKGROUND
static int
BOMUTF16
static int
BOMUTF8
static int
BUT
static int
COMMENT
static int
DATATABLE
static int
DOCSTRING1
static int
DOCSTRING2
static int
EXAMPLES
static int
FEATURE
static int
GIVEN
static int
NL
static int
PARAMETER
static int
RULE_and
static int
RULE_anystep
static int
RULE_background
static int
RULE_but
static int
RULE_datatable
static int
RULE_description
static int
RULE_examples
static int
RULE_feature
static int
RULE_given
static int
RULE_instruction
static int
RULE_instructionDescription
static int
RULE_instructionLine
static int
RULE_main
static int
RULE_rulex
static int
RULE_scenario
static int
RULE_scenarioOutline
static int
RULE_step
static int
RULE_stepDescription
static int
RULE_stepInstruction
static int
RULE_stepItem
static int
RULE_tagline
static int
RULE_text
static int
RULE_then
static int
RULE_when
static String[]
ruleNames
static int
RULEX
static int
SCENARIO
static int
SCENARIOOUTLINE
static int
STARTCOMMENT
static int
TAG
static int
THEN
static int
TOKEN
static String[]
tokenNames
Deprecated.UseVOCABULARY
instead.static org.antlr.v4.runtime.Vocabulary
VOCABULARY
static int
WHEN
static int
WHITESPACE
-
Constructor Summary
Constructors Constructor Description GherkinParser(org.antlr.v4.runtime.TokenStream input)
-
Method Summary
-
Methods inherited from class org.antlr.v4.runtime.Parser
addContextToParseTree, addParseListener, compileParseTreePattern, compileParseTreePattern, consume, createErrorNode, createTerminalNode, dumpDFA, enterOuterAlt, enterRecursionRule, enterRecursionRule, enterRule, exitRule, getATNWithBypassAlts, getBuildParseTree, getContext, getCurrentToken, getDFAStrings, getErrorHandler, getExpectedTokens, getExpectedTokensWithinCurrentRule, getInputStream, getInvokingContext, getNumberOfSyntaxErrors, getParseInfo, getParseListeners, getPrecedence, getRuleContext, getRuleIndex, getRuleInvocationStack, getRuleInvocationStack, getSourceName, getTokenFactory, getTokenStream, getTrimParseTree, inContext, isExpectedToken, isMatchedEOF, isTrace, match, matchWildcard, notifyErrorListeners, notifyErrorListeners, precpred, pushNewRecursionContext, removeParseListener, removeParseListeners, reset, setBuildParseTree, setContext, setErrorHandler, setInputStream, setProfile, setTokenFactory, setTokenStream, setTrace, setTrimParseTree, triggerEnterRuleEvent, triggerExitRuleEvent, unrollRecursionContexts
-
Methods inherited from class org.antlr.v4.runtime.Recognizer
action, addErrorListener, getErrorHeader, getErrorListenerDispatch, getErrorListeners, getInterpreter, getRuleIndexMap, getState, getTokenErrorDisplay, getTokenType, getTokenTypeMap, removeErrorListener, removeErrorListeners, sempred, setInterpreter, setState
-
-
-
-
Field Detail
-
_decisionToDFA
protected static final org.antlr.v4.runtime.dfa.DFA[] _decisionToDFA
-
_sharedContextCache
protected static final org.antlr.v4.runtime.atn.PredictionContextCache _sharedContextCache
-
BOMUTF8
public static final int BOMUTF8
- See Also:
- Constant Field Values
-
BOMUTF16
public static final int BOMUTF16
- See Also:
- Constant Field Values
-
WHITESPACE
public static final int WHITESPACE
- See Also:
- Constant Field Values
-
COMMENT
public static final int COMMENT
- See Also:
- Constant Field Values
-
STARTCOMMENT
public static final int STARTCOMMENT
- See Also:
- Constant Field Values
-
DOCSTRING1
public static final int DOCSTRING1
- See Also:
- Constant Field Values
-
DOCSTRING2
public static final int DOCSTRING2
- See Also:
- Constant Field Values
-
BACKGROUND
public static final int BACKGROUND
- See Also:
- Constant Field Values
-
EXAMPLES
public static final int EXAMPLES
- See Also:
- Constant Field Values
-
FEATURE
public static final int FEATURE
- See Also:
- Constant Field Values
-
RULEX
public static final int RULEX
- See Also:
- Constant Field Values
-
SCENARIO
public static final int SCENARIO
- See Also:
- Constant Field Values
-
SCENARIOOUTLINE
public static final int SCENARIOOUTLINE
- See Also:
- Constant Field Values
-
AND
public static final int AND
- See Also:
- Constant Field Values
-
ANYSTEP
public static final int ANYSTEP
- See Also:
- Constant Field Values
-
BUT
public static final int BUT
- See Also:
- Constant Field Values
-
DATATABLE
public static final int DATATABLE
- See Also:
- Constant Field Values
-
GIVEN
public static final int GIVEN
- See Also:
- Constant Field Values
-
THEN
public static final int THEN
- See Also:
- Constant Field Values
-
WHEN
public static final int WHEN
- See Also:
- Constant Field Values
-
TAG
public static final int TAG
- See Also:
- Constant Field Values
-
PARAMETER
public static final int PARAMETER
- See Also:
- Constant Field Values
-
NL
public static final int NL
- See Also:
- Constant Field Values
-
TOKEN
public static final int TOKEN
- See Also:
- Constant Field Values
-
RULE_main
public static final int RULE_main
- See Also:
- Constant Field Values
-
RULE_feature
public static final int RULE_feature
- See Also:
- Constant Field Values
-
RULE_instructionLine
public static final int RULE_instructionLine
- See Also:
- Constant Field Values
-
RULE_instruction
public static final int RULE_instruction
- See Also:
- Constant Field Values
-
RULE_stepInstruction
public static final int RULE_stepInstruction
- See Also:
- Constant Field Values
-
RULE_background
public static final int RULE_background
- See Also:
- Constant Field Values
-
RULE_rulex
public static final int RULE_rulex
- See Also:
- Constant Field Values
-
RULE_scenario
public static final int RULE_scenario
- See Also:
- Constant Field Values
-
RULE_scenarioOutline
public static final int RULE_scenarioOutline
- See Also:
- Constant Field Values
-
RULE_step
public static final int RULE_step
- See Also:
- Constant Field Values
-
RULE_stepItem
public static final int RULE_stepItem
- See Also:
- Constant Field Values
-
RULE_tagline
public static final int RULE_tagline
- See Also:
- Constant Field Values
-
RULE_and
public static final int RULE_and
- See Also:
- Constant Field Values
-
RULE_anystep
public static final int RULE_anystep
- See Also:
- Constant Field Values
-
RULE_but
public static final int RULE_but
- See Also:
- Constant Field Values
-
RULE_datatable
public static final int RULE_datatable
- See Also:
- Constant Field Values
-
RULE_given
public static final int RULE_given
- See Also:
- Constant Field Values
-
RULE_then
public static final int RULE_then
- See Also:
- Constant Field Values
-
RULE_when
public static final int RULE_when
- See Also:
- Constant Field Values
-
RULE_examples
public static final int RULE_examples
- See Also:
- Constant Field Values
-
RULE_instructionDescription
public static final int RULE_instructionDescription
- See Also:
- Constant Field Values
-
RULE_stepDescription
public static final int RULE_stepDescription
- See Also:
- Constant Field Values
-
RULE_description
public static final int RULE_description
- See Also:
- Constant Field Values
-
RULE_text
public static final int RULE_text
- See Also:
- Constant Field Values
-
ruleNames
public static final String[] ruleNames
-
VOCABULARY
public static final org.antlr.v4.runtime.Vocabulary VOCABULARY
-
tokenNames
@Deprecated public static final String[] tokenNames
Deprecated.UseVOCABULARY
instead.
-
_serializedATN
public static final String _serializedATN
- See Also:
- Constant Field Values
-
_ATN
public static final org.antlr.v4.runtime.atn.ATN _ATN
-
-
Method Detail
-
getTokenNames
@Deprecated public String[] getTokenNames()
Deprecated.- Specified by:
getTokenNames
in classorg.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,org.antlr.v4.runtime.atn.ParserATNSimulator>
-
getVocabulary
public org.antlr.v4.runtime.Vocabulary getVocabulary()
- Overrides:
getVocabulary
in classorg.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,org.antlr.v4.runtime.atn.ParserATNSimulator>
-
getGrammarFileName
public String getGrammarFileName()
- Specified by:
getGrammarFileName
in classorg.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,org.antlr.v4.runtime.atn.ParserATNSimulator>
-
getRuleNames
public String[] getRuleNames()
- Specified by:
getRuleNames
in classorg.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,org.antlr.v4.runtime.atn.ParserATNSimulator>
-
getSerializedATN
public String getSerializedATN()
- Overrides:
getSerializedATN
in classorg.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,org.antlr.v4.runtime.atn.ParserATNSimulator>
-
getATN
public org.antlr.v4.runtime.atn.ATN getATN()
- Specified by:
getATN
in classorg.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,org.antlr.v4.runtime.atn.ParserATNSimulator>
-
main
public final GherkinParser.MainContext main() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
feature
public final GherkinParser.FeatureContext feature() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
instructionLine
public final GherkinParser.InstructionLineContext instructionLine() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
instruction
public final GherkinParser.InstructionContext instruction() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
stepInstruction
public final GherkinParser.StepInstructionContext stepInstruction() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
background
public final GherkinParser.BackgroundContext background() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
rulex
public final GherkinParser.RulexContext rulex() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
scenario
public final GherkinParser.ScenarioContext scenario() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
scenarioOutline
public final GherkinParser.ScenarioOutlineContext scenarioOutline() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
step
public final GherkinParser.StepContext step() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
stepItem
public final GherkinParser.StepItemContext stepItem() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
tagline
public final GherkinParser.TaglineContext tagline() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
and
public final GherkinParser.AndContext and() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
anystep
public final GherkinParser.AnystepContext anystep() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
but
public final GherkinParser.ButContext but() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
datatable
public final GherkinParser.DatatableContext datatable() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
given
public final GherkinParser.GivenContext given() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
then
public final GherkinParser.ThenContext then() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
when
public final GherkinParser.WhenContext when() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
examples
public final GherkinParser.ExamplesContext examples() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
instructionDescription
public final GherkinParser.InstructionDescriptionContext instructionDescription() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
stepDescription
public final GherkinParser.StepDescriptionContext stepDescription() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
description
public final GherkinParser.DescriptionContext description() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
text
public final GherkinParser.TextContext text() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
-