Class ClientHintsParser
java.lang.Object
nl.basjes.parse.useragent.parser.ClientHintsParser
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.antlr.v4.runtime.atn.ATNprotected booleanprotected org.antlr.v4.runtime.ParserRuleContextprotected static final org.antlr.v4.runtime.dfa.DFA[]protected org.antlr.v4.runtime.ANTLRErrorStrategyprotected org.antlr.v4.runtime.TokenStreamprotected org.antlr.v4.runtime.atn.ParserATNSimulatorprotected List<org.antlr.v4.runtime.tree.ParseTreeListener> protected final org.antlr.v4.runtime.misc.IntegerStackstatic final Stringprotected static final org.antlr.v4.runtime.atn.PredictionContextCacheprotected intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intprotected booleanstatic final intstatic final intstatic final intstatic final intstatic final String[]static final intstatic final intstatic final String[]Deprecated.static final intstatic final intstatic final org.antlr.v4.runtime.Vocabulary -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaction(org.antlr.v4.runtime.RuleContext arg0, int arg1, int arg2) protected voidvoidaddErrorListener(org.antlr.v4.runtime.ANTLRErrorListener arg0) voidaddParseListener(org.antlr.v4.runtime.tree.ParseTreeListener arg0) brand()org.antlr.v4.runtime.tree.pattern.ParseTreePatterncompileParseTreePattern(String arg0, int arg1) org.antlr.v4.runtime.tree.pattern.ParseTreePatterncompileParseTreePattern(String arg0, int arg1, org.antlr.v4.runtime.Lexer arg2) org.antlr.v4.runtime.Tokenconsume()org.antlr.v4.runtime.tree.ErrorNodecreateErrorNode(org.antlr.v4.runtime.ParserRuleContext arg0, org.antlr.v4.runtime.Token arg1) org.antlr.v4.runtime.tree.TerminalNodecreateTerminalNode(org.antlr.v4.runtime.ParserRuleContext arg0, org.antlr.v4.runtime.Token arg1) voiddumpDFA()voiddumpDFA(PrintStream arg0) voidenterOuterAlt(org.antlr.v4.runtime.ParserRuleContext arg0, int arg1) voidenterRecursionRule(org.antlr.v4.runtime.ParserRuleContext arg0, int arg1) Deprecated.voidenterRecursionRule(org.antlr.v4.runtime.ParserRuleContext arg0, int arg1, int arg2, int arg3) voidenterRule(org.antlr.v4.runtime.ParserRuleContext arg0, int arg1, int arg2) voidexitRule()org.antlr.v4.runtime.atn.ATNgetATN()org.antlr.v4.runtime.atn.ATNbooleanorg.antlr.v4.runtime.ParserRuleContextorg.antlr.v4.runtime.Tokenorg.antlr.v4.runtime.ANTLRErrorStrategygetErrorHeader(org.antlr.v4.runtime.RecognitionException arg0) org.antlr.v4.runtime.ANTLRErrorListenerList<? extends org.antlr.v4.runtime.ANTLRErrorListener> org.antlr.v4.runtime.misc.IntervalSetorg.antlr.v4.runtime.misc.IntervalSetorg.antlr.v4.runtime.TokenStreamorg.antlr.v4.runtime.atn.ParserATNSimulatororg.antlr.v4.runtime.ParserRuleContextgetInvokingContext(int arg0) intorg.antlr.v4.runtime.atn.ParseInfoList<org.antlr.v4.runtime.tree.ParseTreeListener> final intorg.antlr.v4.runtime.ParserRuleContextintgetRuleIndex(String arg0) getRuleInvocationStack(org.antlr.v4.runtime.RuleContext arg0) String[]final intgetState()getTokenErrorDisplay(org.antlr.v4.runtime.Token arg0) Deprecated.org.antlr.v4.runtime.TokenFactory<?> String[]Deprecated.org.antlr.v4.runtime.TokenStreamintgetTokenType(String arg0) booleanorg.antlr.v4.runtime.VocabularybooleanbooleanisExpectedToken(int arg0) booleanbooleanisTrace()org.antlr.v4.runtime.Tokenmatch(int arg0) org.antlr.v4.runtime.Tokenfinal voidnotifyErrorListeners(String arg0) voidnotifyErrorListeners(org.antlr.v4.runtime.Token arg0, String arg1, org.antlr.v4.runtime.RecognitionException arg2) booleanprecpred(org.antlr.v4.runtime.RuleContext arg0, int arg1) voidpushNewRecursionContext(org.antlr.v4.runtime.ParserRuleContext arg0, int arg1, int arg2) voidremoveErrorListener(org.antlr.v4.runtime.ANTLRErrorListener arg0) voidvoidremoveParseListener(org.antlr.v4.runtime.tree.ParseTreeListener arg0) voidvoidreset()booleansempred(org.antlr.v4.runtime.RuleContext arg0, int arg1, int arg2) voidsetBuildParseTree(boolean arg0) voidsetContext(org.antlr.v4.runtime.ParserRuleContext arg0) voidsetErrorHandler(org.antlr.v4.runtime.ANTLRErrorStrategy arg0) final voidsetInputStream(org.antlr.v4.runtime.IntStream arg0) voidsetInterpreter(org.antlr.v4.runtime.atn.ParserATNSimulator arg0) voidsetProfile(boolean arg0) final voidsetState(int arg0) voidsetTokenFactory(org.antlr.v4.runtime.TokenFactory<?> arg0) voidsetTokenStream(org.antlr.v4.runtime.TokenStream arg0) voidsetTrace(boolean arg0) voidsetTrimParseTree(boolean arg0) protected voidprotected voidvoidunrollRecursionContexts(org.antlr.v4.runtime.ParserRuleContext arg0)
-
Field Details
-
_decisionToDFA
protected static final org.antlr.v4.runtime.dfa.DFA[] _decisionToDFA -
VERSION
public static final int VERSION- See Also:
-
KEY
public static final int KEY- See Also:
-
DOUBLEQUOTE
public static final int DOUBLEQUOTE- See Also:
-
SPACE
public static final int SPACE- See Also:
-
COMMA
public static final int COMMA- See Also:
-
SEMICOLON
public static final int SEMICOLON- See Also:
-
EQUALS
public static final int EQUALS- See Also:
-
KNOWNGREASE
public static final int KNOWNGREASE- See Also:
-
VALUE
public static final int VALUE- See Also:
-
GREASEVALUE
public static final int GREASEVALUE- See Also:
-
RULE_brandList
public static final int RULE_brandList- See Also:
-
RULE_brandEntry
public static final int RULE_brandEntry- See Also:
-
RULE_greaseEntry
public static final int RULE_greaseEntry- See Also:
-
RULE_brand
public static final int RULE_brand- See Also:
-
ruleNames
-
VOCABULARY
public static final org.antlr.v4.runtime.Vocabulary VOCABULARY -
tokenNames
Deprecated.UseVOCABULARYinstead. -
_serializedATN
- See Also:
-
_ATN
public static final org.antlr.v4.runtime.atn.ATN _ATN -
_errHandler
protected org.antlr.v4.runtime.ANTLRErrorStrategy _errHandler -
_input
protected org.antlr.v4.runtime.TokenStream _input -
_precedenceStack
protected final org.antlr.v4.runtime.misc.IntegerStack _precedenceStack -
_ctx
protected org.antlr.v4.runtime.ParserRuleContext _ctx -
_buildParseTrees
protected boolean _buildParseTrees -
_parseListeners
-
_syntaxErrors
protected int _syntaxErrors -
matchedEOF
protected boolean matchedEOF -
EOF
public static final int EOF- See Also:
-
_interp
protected org.antlr.v4.runtime.atn.ParserATNSimulator _interp
-
-
Constructor Details
-
ClientHintsParser
public ClientHintsParser(org.antlr.v4.runtime.TokenStream input)
-
-
Method Details
-
getTokenNames
Deprecated. -
getVocabulary
public org.antlr.v4.runtime.Vocabulary getVocabulary() -
getGrammarFileName
-
getRuleNames
-
getSerializedATN
-
getATN
public org.antlr.v4.runtime.atn.ATN getATN() -
brandList
public final ClientHintsParser.BrandListContext brandList() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
brandEntry
public final ClientHintsParser.BrandEntryContext brandEntry() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
greaseEntry
public final ClientHintsParser.GreaseEntryContext greaseEntry() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
brand
public final ClientHintsParser.BrandContext brand() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
reset
public void reset() -
match
public org.antlr.v4.runtime.Token match(int arg0) throws org.antlr.v4.runtime.RecognitionException - Throws:
org.antlr.v4.runtime.RecognitionException
-
matchWildcard
public org.antlr.v4.runtime.Token matchWildcard() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
setBuildParseTree
public void setBuildParseTree(boolean arg0) -
getBuildParseTree
public boolean getBuildParseTree() -
setTrimParseTree
public void setTrimParseTree(boolean arg0) -
getTrimParseTree
public boolean getTrimParseTree() -
getParseListeners
-
addParseListener
public void addParseListener(org.antlr.v4.runtime.tree.ParseTreeListener arg0) -
removeParseListener
public void removeParseListener(org.antlr.v4.runtime.tree.ParseTreeListener arg0) -
removeParseListeners
public void removeParseListeners() -
triggerEnterRuleEvent
protected void triggerEnterRuleEvent() -
triggerExitRuleEvent
protected void triggerExitRuleEvent() -
getNumberOfSyntaxErrors
public int getNumberOfSyntaxErrors() -
getTokenFactory
public org.antlr.v4.runtime.TokenFactory<?> getTokenFactory() -
setTokenFactory
public void setTokenFactory(org.antlr.v4.runtime.TokenFactory<?> arg0) -
getATNWithBypassAlts
public org.antlr.v4.runtime.atn.ATN getATNWithBypassAlts() -
compileParseTreePattern
public org.antlr.v4.runtime.tree.pattern.ParseTreePattern compileParseTreePattern(String arg0, int arg1) -
compileParseTreePattern
public org.antlr.v4.runtime.tree.pattern.ParseTreePattern compileParseTreePattern(String arg0, int arg1, org.antlr.v4.runtime.Lexer arg2) -
getErrorHandler
public org.antlr.v4.runtime.ANTLRErrorStrategy getErrorHandler() -
setErrorHandler
public void setErrorHandler(org.antlr.v4.runtime.ANTLRErrorStrategy arg0) -
getInputStream
public org.antlr.v4.runtime.TokenStream getInputStream() -
setInputStream
public final void setInputStream(org.antlr.v4.runtime.IntStream arg0) -
getTokenStream
public org.antlr.v4.runtime.TokenStream getTokenStream() -
setTokenStream
public void setTokenStream(org.antlr.v4.runtime.TokenStream arg0) -
getCurrentToken
public org.antlr.v4.runtime.Token getCurrentToken() -
notifyErrorListeners
-
notifyErrorListeners
public void notifyErrorListeners(org.antlr.v4.runtime.Token arg0, String arg1, org.antlr.v4.runtime.RecognitionException arg2) -
consume
public org.antlr.v4.runtime.Token consume() -
createTerminalNode
public org.antlr.v4.runtime.tree.TerminalNode createTerminalNode(org.antlr.v4.runtime.ParserRuleContext arg0, org.antlr.v4.runtime.Token arg1) -
createErrorNode
public org.antlr.v4.runtime.tree.ErrorNode createErrorNode(org.antlr.v4.runtime.ParserRuleContext arg0, org.antlr.v4.runtime.Token arg1) -
addContextToParseTree
protected void addContextToParseTree() -
enterRule
public void enterRule(org.antlr.v4.runtime.ParserRuleContext arg0, int arg1, int arg2) -
exitRule
public void exitRule() -
enterOuterAlt
public void enterOuterAlt(org.antlr.v4.runtime.ParserRuleContext arg0, int arg1) -
getPrecedence
public final int getPrecedence() -
enterRecursionRule
Deprecated. -
enterRecursionRule
public void enterRecursionRule(org.antlr.v4.runtime.ParserRuleContext arg0, int arg1, int arg2, int arg3) -
pushNewRecursionContext
public void pushNewRecursionContext(org.antlr.v4.runtime.ParserRuleContext arg0, int arg1, int arg2) -
unrollRecursionContexts
public void unrollRecursionContexts(org.antlr.v4.runtime.ParserRuleContext arg0) -
getInvokingContext
public org.antlr.v4.runtime.ParserRuleContext getInvokingContext(int arg0) -
getContext
public org.antlr.v4.runtime.ParserRuleContext getContext() -
setContext
public void setContext(org.antlr.v4.runtime.ParserRuleContext arg0) -
precpred
public boolean precpred(org.antlr.v4.runtime.RuleContext arg0, int arg1) -
inContext
-
isExpectedToken
public boolean isExpectedToken(int arg0) -
isMatchedEOF
public boolean isMatchedEOF() -
getExpectedTokens
public org.antlr.v4.runtime.misc.IntervalSet getExpectedTokens() -
getExpectedTokensWithinCurrentRule
public org.antlr.v4.runtime.misc.IntervalSet getExpectedTokensWithinCurrentRule() -
getRuleIndex
-
getRuleContext
public org.antlr.v4.runtime.ParserRuleContext getRuleContext() -
getRuleInvocationStack
-
getRuleInvocationStack
-
getDFAStrings
-
dumpDFA
public void dumpDFA() -
dumpDFA
-
getSourceName
-
getParseInfo
public org.antlr.v4.runtime.atn.ParseInfo getParseInfo() -
setProfile
public void setProfile(boolean arg0) -
setTrace
public void setTrace(boolean arg0) -
isTrace
public boolean isTrace() -
getTokenTypeMap
-
getRuleIndexMap
-
getTokenType
-
getInterpreter
public org.antlr.v4.runtime.atn.ParserATNSimulator getInterpreter() -
setInterpreter
public void setInterpreter(org.antlr.v4.runtime.atn.ParserATNSimulator arg0) -
getErrorHeader
-
getTokenErrorDisplay
Deprecated. -
addErrorListener
public void addErrorListener(org.antlr.v4.runtime.ANTLRErrorListener arg0) -
removeErrorListener
public void removeErrorListener(org.antlr.v4.runtime.ANTLRErrorListener arg0) -
removeErrorListeners
public void removeErrorListeners() -
getErrorListeners
-
getErrorListenerDispatch
public org.antlr.v4.runtime.ANTLRErrorListener getErrorListenerDispatch() -
sempred
public boolean sempred(org.antlr.v4.runtime.RuleContext arg0, int arg1, int arg2) -
action
public void action(org.antlr.v4.runtime.RuleContext arg0, int arg1, int arg2) -
getState
public final int getState() -
setState
public final void setState(int arg0)
-
VOCABULARYinstead.