Class UserAgentParser

java.lang.Object
nl.basjes.parse.useragent.parser.UserAgentParser

public class UserAgentParser extends Object
  • Field Details

  • Constructor Details

    • UserAgentParser

      public UserAgentParser(org.antlr.v4.runtime.TokenStream input)
  • Method Details

    • getTokenNames

      @Deprecated public String[] getTokenNames()
      Deprecated.
    • getVocabulary

      public org.antlr.v4.runtime.Vocabulary getVocabulary()
    • getGrammarFileName

      public String getGrammarFileName()
    • getRuleNames

      public String[] getRuleNames()
    • getSerializedATN

      public String getSerializedATN()
    • getATN

      public org.antlr.v4.runtime.atn.ATN getATN()
    • userAgent

      public final UserAgentParser.UserAgentContext userAgent() throws org.antlr.v4.runtime.RecognitionException
      Throws:
      org.antlr.v4.runtime.RecognitionException
    • rootElements

      public final UserAgentParser.RootElementsContext rootElements() throws org.antlr.v4.runtime.RecognitionException
      Throws:
      org.antlr.v4.runtime.RecognitionException
    • rootText

      public final UserAgentParser.RootTextContext rootText() throws org.antlr.v4.runtime.RecognitionException
      Throws:
      org.antlr.v4.runtime.RecognitionException
    • product

      public final UserAgentParser.ProductContext product() throws org.antlr.v4.runtime.RecognitionException
      Throws:
      org.antlr.v4.runtime.RecognitionException
    • commentProduct

      public final UserAgentParser.CommentProductContext commentProduct() throws org.antlr.v4.runtime.RecognitionException
      Throws:
      org.antlr.v4.runtime.RecognitionException
    • productVersionWords

      public final UserAgentParser.ProductVersionWordsContext productVersionWords() throws org.antlr.v4.runtime.RecognitionException
      Throws:
      org.antlr.v4.runtime.RecognitionException
    • productName

      public final UserAgentParser.ProductNameContext productName() throws org.antlr.v4.runtime.RecognitionException
      Throws:
      org.antlr.v4.runtime.RecognitionException
    • productNameWords

      public final UserAgentParser.ProductNameWordsContext productNameWords() throws org.antlr.v4.runtime.RecognitionException
      Throws:
      org.antlr.v4.runtime.RecognitionException
    • productVersion

      public final UserAgentParser.ProductVersionContext productVersion() throws org.antlr.v4.runtime.RecognitionException
      Throws:
      org.antlr.v4.runtime.RecognitionException
    • productVersionWithCommas

      public final UserAgentParser.ProductVersionWithCommasContext productVersionWithCommas() throws org.antlr.v4.runtime.RecognitionException
      Throws:
      org.antlr.v4.runtime.RecognitionException
    • productVersionSingleWord

      public final UserAgentParser.ProductVersionSingleWordContext productVersionSingleWord() throws org.antlr.v4.runtime.RecognitionException
      Throws:
      org.antlr.v4.runtime.RecognitionException
    • singleVersion

      public final UserAgentParser.SingleVersionContext singleVersion() throws org.antlr.v4.runtime.RecognitionException
      Throws:
      org.antlr.v4.runtime.RecognitionException
    • singleVersionWithCommas

      public final UserAgentParser.SingleVersionWithCommasContext singleVersionWithCommas() throws org.antlr.v4.runtime.RecognitionException
      Throws:
      org.antlr.v4.runtime.RecognitionException
    • productNameVersion

      public final UserAgentParser.ProductNameVersionContext productNameVersion() throws org.antlr.v4.runtime.RecognitionException
      Throws:
      org.antlr.v4.runtime.RecognitionException
    • productNameEmail

      public final UserAgentParser.ProductNameEmailContext productNameEmail() throws org.antlr.v4.runtime.RecognitionException
      Throws:
      org.antlr.v4.runtime.RecognitionException
    • productNameUrl

      public final UserAgentParser.ProductNameUrlContext productNameUrl() throws org.antlr.v4.runtime.RecognitionException
      Throws:
      org.antlr.v4.runtime.RecognitionException
    • productNameUuid

      public final UserAgentParser.ProductNameUuidContext productNameUuid() throws org.antlr.v4.runtime.RecognitionException
      Throws:
      org.antlr.v4.runtime.RecognitionException
    • uuId

      public final UserAgentParser.UuIdContext uuId() throws org.antlr.v4.runtime.RecognitionException
      Throws:
      org.antlr.v4.runtime.RecognitionException
    • emailAddress

      public final UserAgentParser.EmailAddressContext emailAddress() throws org.antlr.v4.runtime.RecognitionException
      Throws:
      org.antlr.v4.runtime.RecognitionException
    • siteUrl

      public final UserAgentParser.SiteUrlContext siteUrl() throws org.antlr.v4.runtime.RecognitionException
      Throws:
      org.antlr.v4.runtime.RecognitionException
    • base64

      public final UserAgentParser.Base64Context base64() throws org.antlr.v4.runtime.RecognitionException
      Throws:
      org.antlr.v4.runtime.RecognitionException
    • commentSeparator

      public final UserAgentParser.CommentSeparatorContext commentSeparator() throws org.antlr.v4.runtime.RecognitionException
      Throws:
      org.antlr.v4.runtime.RecognitionException
    • commentBlock

      public final UserAgentParser.CommentBlockContext commentBlock() throws org.antlr.v4.runtime.RecognitionException
      Throws:
      org.antlr.v4.runtime.RecognitionException
    • commentEntry

      public final UserAgentParser.CommentEntryContext commentEntry() throws org.antlr.v4.runtime.RecognitionException
      Throws:
      org.antlr.v4.runtime.RecognitionException
    • productNameKeyValue

      public final UserAgentParser.ProductNameKeyValueContext productNameKeyValue() throws org.antlr.v4.runtime.RecognitionException
      Throws:
      org.antlr.v4.runtime.RecognitionException
    • productNameNoVersion

      public final UserAgentParser.ProductNameNoVersionContext productNameNoVersion() throws org.antlr.v4.runtime.RecognitionException
      Throws:
      org.antlr.v4.runtime.RecognitionException
    • keyValueProductVersionName

      public final UserAgentParser.KeyValueProductVersionNameContext keyValueProductVersionName() throws org.antlr.v4.runtime.RecognitionException
      Throws:
      org.antlr.v4.runtime.RecognitionException
    • keyValue

      public final UserAgentParser.KeyValueContext keyValue() throws org.antlr.v4.runtime.RecognitionException
      Throws:
      org.antlr.v4.runtime.RecognitionException
    • keyWithoutValue

      public final UserAgentParser.KeyWithoutValueContext keyWithoutValue() throws org.antlr.v4.runtime.RecognitionException
      Throws:
      org.antlr.v4.runtime.RecognitionException
    • keyValueVersionName

      public final UserAgentParser.KeyValueVersionNameContext keyValueVersionName() throws org.antlr.v4.runtime.RecognitionException
      Throws:
      org.antlr.v4.runtime.RecognitionException
    • keyName

      public final UserAgentParser.KeyNameContext keyName() throws org.antlr.v4.runtime.RecognitionException
      Throws:
      org.antlr.v4.runtime.RecognitionException
    • emptyWord

      public final UserAgentParser.EmptyWordContext emptyWord() throws org.antlr.v4.runtime.RecognitionException
      Throws:
      org.antlr.v4.runtime.RecognitionException
    • multipleWords

      public final UserAgentParser.MultipleWordsContext multipleWords() throws org.antlr.v4.runtime.RecognitionException
      Throws:
      org.antlr.v4.runtime.RecognitionException
    • versionWords

      public final UserAgentParser.VersionWordsContext versionWords() 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

      public List<org.antlr.v4.runtime.tree.ParseTreeListener> 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

      public final void notifyErrorListeners(String arg0)
    • 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 public void enterRecursionRule(org.antlr.v4.runtime.ParserRuleContext arg0, int arg1)
      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

      public boolean inContext(String arg0)
    • 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

      public int getRuleIndex(String arg0)
    • getRuleContext

      public org.antlr.v4.runtime.ParserRuleContext getRuleContext()
    • getRuleInvocationStack

      public List<String> getRuleInvocationStack()
    • getRuleInvocationStack

      public List<String> getRuleInvocationStack(org.antlr.v4.runtime.RuleContext arg0)
    • getDFAStrings

      public List<String> getDFAStrings()
    • dumpDFA

      public void dumpDFA()
    • dumpDFA

      public void dumpDFA(PrintStream arg0)
    • getSourceName

      public String 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

      public Map<String,Integer> getTokenTypeMap()
    • getRuleIndexMap

      public Map<String,Integer> getRuleIndexMap()
    • getTokenType

      public int getTokenType(String arg0)
    • getInterpreter

      public org.antlr.v4.runtime.atn.ParserATNSimulator getInterpreter()
    • setInterpreter

      public void setInterpreter(org.antlr.v4.runtime.atn.ParserATNSimulator arg0)
    • getErrorHeader

      public String getErrorHeader(org.antlr.v4.runtime.RecognitionException arg0)
    • getTokenErrorDisplay

      @Deprecated public String getTokenErrorDisplay(org.antlr.v4.runtime.Token arg0)
      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

      public List<? extends org.antlr.v4.runtime.ANTLRErrorListener> 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)