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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ArrayList<ClientHints.Brand>voidsyntaxError(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, visitGreaseEntryMethods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminalMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface nl.basjes.parse.useragent.utils.DefaultANTLRErrorListener
reportAmbiguity, reportAttemptingFullContext, reportContextSensitivityMethods inherited from interface org.antlr.v4.runtime.tree.ParseTreeVisitor
visit, visitChildren, visitErrorNode, visitTerminal
-
Constructor Details
-
BrandListParser
-
-
Method Details
-
parse
-
visitBrand
Description copied from class:ClientHintsBaseVisitorVisit 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:
visitBrandin interfaceClientHintsVisitor<Void>- Overrides:
visitBrandin 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:
syntaxErrorin interfaceorg.antlr.v4.runtime.ANTLRErrorListener
-