Class GherkinLexer
- java.lang.Object
-
- org.antlr.v4.runtime.Recognizer<Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
- org.antlr.v4.runtime.Lexer
-
- net.sourceforge.pmd.lang.gherkin.ast.GherkinLexer
-
- All Implemented Interfaces:
org.antlr.v4.runtime.TokenSource
public class GherkinLexer extends org.antlr.v4.runtime.Lexer
-
-
Field Summary
Fields Modifier and Type Field Description static org.antlr.v4.runtime.atn.ATN_ATNprotected static org.antlr.v4.runtime.dfa.DFA[]_decisionToDFAstatic String_serializedATNprotected static org.antlr.v4.runtime.atn.PredictionContextCache_sharedContextCachestatic intANDstatic intANYSTEPstatic intBACKGROUNDstatic intBOMUTF16static intBOMUTF8static intBUTstatic String[]channelNamesstatic intCOMMENTstatic intDATATABLEstatic intDOCSTRING1static intDOCSTRING2static intEXAMPLESstatic intFEATUREstatic intGIVENstatic String[]modeNamesstatic intNLstatic intPARAMETERstatic String[]ruleNamesstatic intRULEXstatic intSCENARIOstatic intSCENARIOOUTLINEstatic intSTARTCOMMENTstatic intTAGstatic intTHENstatic intTOKENstatic String[]tokenNamesDeprecated.UseVOCABULARYinstead.static org.antlr.v4.runtime.VocabularyVOCABULARYstatic intWHENstatic intWHITESPACE-
Fields inherited from class org.antlr.v4.runtime.Lexer
_channel, _factory, _hitEOF, _input, _mode, _modeStack, _text, _token, _tokenFactorySourcePair, _tokenStartCharIndex, _tokenStartCharPositionInLine, _tokenStartLine, _type, DEFAULT_MODE, DEFAULT_TOKEN_CHANNEL, HIDDEN, MAX_CHAR_VALUE, MIN_CHAR_VALUE, MORE, SKIP
-
-
Constructor Summary
Constructors Constructor Description GherkinLexer(org.antlr.v4.runtime.CharStream input)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.antlr.v4.runtime.atn.ATNgetATN()String[]getChannelNames()StringgetGrammarFileName()String[]getModeNames()String[]getRuleNames()StringgetSerializedATN()String[]getTokenNames()Deprecated.org.antlr.v4.runtime.VocabularygetVocabulary()-
Methods inherited from class org.antlr.v4.runtime.Lexer
emit, emit, emitEOF, getAllTokens, getChannel, getCharErrorDisplay, getCharIndex, getCharPositionInLine, getErrorDisplay, getErrorDisplay, getInputStream, getLine, getSourceName, getText, getToken, getTokenFactory, getType, mode, more, nextToken, notifyListeners, popMode, pushMode, recover, recover, reset, setChannel, setCharPositionInLine, setInputStream, setLine, setText, setToken, setTokenFactory, setType, skip
-
Methods inherited from class org.antlr.v4.runtime.Recognizer
action, addErrorListener, getErrorHeader, getErrorListenerDispatch, getErrorListeners, getInterpreter, getParseInfo, getRuleIndexMap, getState, getTokenErrorDisplay, getTokenType, getTokenTypeMap, precpred, 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
-
channelNames
public static String[] channelNames
-
modeNames
public static String[] modeNames
-
ruleNames
public static final String[] ruleNames
-
VOCABULARY
public static final org.antlr.v4.runtime.Vocabulary VOCABULARY
-
tokenNames
@Deprecated public static final String[] tokenNames
Deprecated.UseVOCABULARYinstead.
-
_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.- Overrides:
getTokenNamesin classorg.antlr.v4.runtime.Lexer
-
getVocabulary
public org.antlr.v4.runtime.Vocabulary getVocabulary()
- Overrides:
getVocabularyin classorg.antlr.v4.runtime.Recognizer<Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
getGrammarFileName
public String getGrammarFileName()
- Specified by:
getGrammarFileNamein classorg.antlr.v4.runtime.Recognizer<Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
getRuleNames
public String[] getRuleNames()
- Specified by:
getRuleNamesin classorg.antlr.v4.runtime.Recognizer<Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
getSerializedATN
public String getSerializedATN()
- Overrides:
getSerializedATNin classorg.antlr.v4.runtime.Recognizer<Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
getChannelNames
public String[] getChannelNames()
- Overrides:
getChannelNamesin classorg.antlr.v4.runtime.Lexer
-
getModeNames
public String[] getModeNames()
- Overrides:
getModeNamesin classorg.antlr.v4.runtime.Lexer
-
getATN
public org.antlr.v4.runtime.atn.ATN getATN()
- Specified by:
getATNin classorg.antlr.v4.runtime.Recognizer<Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
-