Class BrandListParser
java.lang.Object
org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
nl.basjes.parse.useragent.parser.ClientHintsBaseVisitor<Void>
nl.basjes.parse.useragent.clienthints.parsers.BrandListParser
- All Implemented Interfaces:
ClientHintsVisitor<Void>
,DefaultANTLRErrorListener
,org.antlr.v4.runtime.ANTLRErrorListener
,org.antlr.v4.runtime.tree.ParseTreeVisitor<Void>
public class BrandListParser
extends ClientHintsBaseVisitor<Void>
implements DefaultANTLRErrorListener
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ArrayList<ClientHints.Brand>
void
syntaxError
(org.antlr.v4.runtime.Recognizer<?, ?> recognizer, Object offendingSymbol, int line, int charPositionInLine, String msg, org.antlr.v4.runtime.RecognitionException e) Visit a parse tree produced byClientHintsParser.brand()
.Methods inherited from class nl.basjes.parse.useragent.parser.ClientHintsBaseVisitor
visitBrandEntry, visitBrandList, visitGreaseEntry
Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminal
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface nl.basjes.parse.useragent.utils.DefaultANTLRErrorListener
reportAmbiguity, reportAttemptingFullContext, reportContextSensitivity
Methods inherited from interface org.antlr.v4.runtime.tree.ParseTreeVisitor
visit, visitChildren, visitErrorNode, visitTerminal
-
Constructor Details
-
BrandListParser
-
-
Method Details
-
parse
-
visitBrand
Description copied from class:ClientHintsBaseVisitor
Visit a parse tree produced byClientHintsParser.brand()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBrand
in interfaceClientHintsVisitor<Void>
- Overrides:
visitBrand
in classClientHintsBaseVisitor<Void>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
syntaxError
public void syntaxError(org.antlr.v4.runtime.Recognizer<?, ?> recognizer, Object offendingSymbol, int line, int charPositionInLine, String msg, org.antlr.v4.runtime.RecognitionException e) - Specified by:
syntaxError
in interfaceorg.antlr.v4.runtime.ANTLRErrorListener
-