Package nl.basjes.parse.useragent.parser
Class UserAgentParser
- java.lang.Object
-
- org.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,org.antlr.v4.runtime.atn.ParserATNSimulator>
-
- org.antlr.v4.runtime.Parser
-
- nl.basjes.parse.useragent.parser.UserAgentParser
-
public class UserAgentParser 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
ATSIGN
static int
BAD_ESC_TAB
static int
BASE64
static int
BLOCKCLOSE
static int
BLOCKOPEN
static int
BRACECLOSE
static int
BRACEOPEN
static int
COLON
static int
COMMA
static int
CURLYBRACECLOSE
static int
CURLYBRACEOPEN
static int
EMAIL
static int
EQUALS
static int
GIBBERISH
static int
MIME_TYPE_1
static int
MIME_TYPE_2
static int
MINUS
static int
PLUS
static int
QUOTE1
static int
QUOTE2
static int
QUOTE3
static int
QUOTE4
static int
RULE_base64
static int
RULE_commentBlock
static int
RULE_commentEntry
static int
RULE_commentProduct
static int
RULE_commentSeparator
static int
RULE_emailAddress
static int
RULE_emptyWord
static int
RULE_keyName
static int
RULE_keyValue
static int
RULE_keyValueProductVersionName
static int
RULE_keyValueVersionName
static int
RULE_keyWithoutValue
static int
RULE_multipleWords
static int
RULE_product
static int
RULE_productName
static int
RULE_productNameEmail
static int
RULE_productNameKeyValue
static int
RULE_productNameNoVersion
static int
RULE_productNameUrl
static int
RULE_productNameUuid
static int
RULE_productNameVersion
static int
RULE_productNameWords
static int
RULE_productVersion
static int
RULE_productVersionSingleWord
static int
RULE_productVersionWithCommas
static int
RULE_productVersionWords
static int
RULE_rootElements
static int
RULE_rootText
static int
RULE_singleVersion
static int
RULE_singleVersionWithCommas
static int
RULE_siteUrl
static int
RULE_userAgent
static int
RULE_uuId
static int
RULE_versionWords
static String[]
ruleNames
static int
SEMICOLON
static int
SLASH
static int
SPACE
static int
SPECIALVERSIONWORDS
static int
T__0
static String[]
tokenNames
Deprecated.UseVOCABULARY
instead.static int
UNASSIGNEDVARIABLE
static int
URL
static int
USERAGENT1
static int
USERAGENT2
static int
UUID
static int
VERSION
static org.antlr.v4.runtime.Vocabulary
VOCABULARY
static int
WORD
-
Constructor Summary
Constructors Constructor Description UserAgentParser(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
-
T__0
public static final int T__0
- See Also:
- Constant Field Values
-
QUOTE1
public static final int QUOTE1
- See Also:
- Constant Field Values
-
QUOTE2
public static final int QUOTE2
- See Also:
- Constant Field Values
-
QUOTE3
public static final int QUOTE3
- See Also:
- Constant Field Values
-
QUOTE4
public static final int QUOTE4
- See Also:
- Constant Field Values
-
BAD_ESC_TAB
public static final int BAD_ESC_TAB
- See Also:
- Constant Field Values
-
MIME_TYPE_1
public static final int MIME_TYPE_1
- See Also:
- Constant Field Values
-
MIME_TYPE_2
public static final int MIME_TYPE_2
- See Also:
- Constant Field Values
-
SPACE
public static final int SPACE
- See Also:
- Constant Field Values
-
USERAGENT1
public static final int USERAGENT1
- See Also:
- Constant Field Values
-
USERAGENT2
public static final int USERAGENT2
- See Also:
- Constant Field Values
-
EMAIL
public static final int EMAIL
- See Also:
- Constant Field Values
-
CURLYBRACEOPEN
public static final int CURLYBRACEOPEN
- See Also:
- Constant Field Values
-
CURLYBRACECLOSE
public static final int CURLYBRACECLOSE
- See Also:
- Constant Field Values
-
BRACEOPEN
public static final int BRACEOPEN
- See Also:
- Constant Field Values
-
BRACECLOSE
public static final int BRACECLOSE
- See Also:
- Constant Field Values
-
BLOCKOPEN
public static final int BLOCKOPEN
- See Also:
- Constant Field Values
-
BLOCKCLOSE
public static final int BLOCKCLOSE
- See Also:
- Constant Field Values
-
SEMICOLON
public static final int SEMICOLON
- See Also:
- Constant Field Values
-
COLON
public static final int COLON
- See Also:
- Constant Field Values
-
COMMA
public static final int COMMA
- See Also:
- Constant Field Values
-
SLASH
public static final int SLASH
- See Also:
- Constant Field Values
-
EQUALS
public static final int EQUALS
- See Also:
- Constant Field Values
-
MINUS
public static final int MINUS
- See Also:
- Constant Field Values
-
PLUS
public static final int PLUS
- See Also:
- Constant Field Values
-
UUID
public static final int UUID
- See Also:
- Constant Field Values
-
URL
public static final int URL
- See Also:
- Constant Field Values
-
SPECIALVERSIONWORDS
public static final int SPECIALVERSIONWORDS
- See Also:
- Constant Field Values
-
UNASSIGNEDVARIABLE
public static final int UNASSIGNEDVARIABLE
- See Also:
- Constant Field Values
-
GIBBERISH
public static final int GIBBERISH
- See Also:
- Constant Field Values
-
ATSIGN
public static final int ATSIGN
- See Also:
- Constant Field Values
-
VERSION
public static final int VERSION
- See Also:
- Constant Field Values
-
WORD
public static final int WORD
- See Also:
- Constant Field Values
-
BASE64
public static final int BASE64
- See Also:
- Constant Field Values
-
RULE_userAgent
public static final int RULE_userAgent
- See Also:
- Constant Field Values
-
RULE_rootElements
public static final int RULE_rootElements
- See Also:
- Constant Field Values
-
RULE_rootText
public static final int RULE_rootText
- See Also:
- Constant Field Values
-
RULE_product
public static final int RULE_product
- See Also:
- Constant Field Values
-
RULE_commentProduct
public static final int RULE_commentProduct
- See Also:
- Constant Field Values
-
RULE_productVersionWords
public static final int RULE_productVersionWords
- See Also:
- Constant Field Values
-
RULE_productName
public static final int RULE_productName
- See Also:
- Constant Field Values
-
RULE_productNameWords
public static final int RULE_productNameWords
- See Also:
- Constant Field Values
-
RULE_productVersion
public static final int RULE_productVersion
- See Also:
- Constant Field Values
-
RULE_productVersionWithCommas
public static final int RULE_productVersionWithCommas
- See Also:
- Constant Field Values
-
RULE_productVersionSingleWord
public static final int RULE_productVersionSingleWord
- See Also:
- Constant Field Values
-
RULE_singleVersion
public static final int RULE_singleVersion
- See Also:
- Constant Field Values
-
RULE_singleVersionWithCommas
public static final int RULE_singleVersionWithCommas
- See Also:
- Constant Field Values
-
RULE_productNameVersion
public static final int RULE_productNameVersion
- See Also:
- Constant Field Values
-
RULE_productNameEmail
public static final int RULE_productNameEmail
- See Also:
- Constant Field Values
-
RULE_productNameUrl
public static final int RULE_productNameUrl
- See Also:
- Constant Field Values
-
RULE_productNameUuid
public static final int RULE_productNameUuid
- See Also:
- Constant Field Values
-
RULE_uuId
public static final int RULE_uuId
- See Also:
- Constant Field Values
-
RULE_emailAddress
public static final int RULE_emailAddress
- See Also:
- Constant Field Values
-
RULE_siteUrl
public static final int RULE_siteUrl
- See Also:
- Constant Field Values
-
RULE_base64
public static final int RULE_base64
- See Also:
- Constant Field Values
-
RULE_commentSeparator
public static final int RULE_commentSeparator
- See Also:
- Constant Field Values
-
RULE_commentBlock
public static final int RULE_commentBlock
- See Also:
- Constant Field Values
-
RULE_commentEntry
public static final int RULE_commentEntry
- See Also:
- Constant Field Values
-
RULE_productNameKeyValue
public static final int RULE_productNameKeyValue
- See Also:
- Constant Field Values
-
RULE_productNameNoVersion
public static final int RULE_productNameNoVersion
- See Also:
- Constant Field Values
-
RULE_keyValueProductVersionName
public static final int RULE_keyValueProductVersionName
- See Also:
- Constant Field Values
-
RULE_keyValue
public static final int RULE_keyValue
- See Also:
- Constant Field Values
-
RULE_keyWithoutValue
public static final int RULE_keyWithoutValue
- See Also:
- Constant Field Values
-
RULE_keyValueVersionName
public static final int RULE_keyValueVersionName
- See Also:
- Constant Field Values
-
RULE_keyName
public static final int RULE_keyName
- See Also:
- Constant Field Values
-
RULE_emptyWord
public static final int RULE_emptyWord
- See Also:
- Constant Field Values
-
RULE_multipleWords
public static final int RULE_multipleWords
- See Also:
- Constant Field Values
-
RULE_versionWords
public static final int RULE_versionWords
- 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>
-
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
-
-