Class PromqlBaseParserBaseVisitor<T>
- Type Parameters:
T- The return type of the visit operation. UseVoidfor operations with no return type.
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeVisitor<T>,PromqlBaseParserVisitor<T>
- Direct Known Subclasses:
PromqlLogicalPlanBuilder
PromqlBaseParserVisitor,
which can be extended to create a visitor which only needs to handle a subset
of the available methods.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionVisit a parse tree produced by thearithmeticBinarylabeled alternative inPromqlBaseParser.expression().Visit a parse tree produced by thearithmeticUnarylabeled alternative inPromqlBaseParser.expression().Visit a parse tree produced byPromqlBaseParser.at().Visit a parse tree produced byPromqlBaseParser.constant().Visit a parse tree produced by thedecimalLiterallabeled alternative inPromqlBaseParser.number().Visit a parse tree produced byPromqlBaseParser.duration().Visit a parse tree produced byPromqlBaseParser.evaluation().Visit a parse tree produced byPromqlBaseParser.function().Visit a parse tree produced byPromqlBaseParser.functionParams().Visit a parse tree produced byPromqlBaseParser.grouping().Visit a parse tree produced by thehexLiterallabeled alternative inPromqlBaseParser.number().Visit a parse tree produced byPromqlBaseParser.identifier().Visit a parse tree produced by theintegerLiterallabeled alternative inPromqlBaseParser.number().Visit a parse tree produced byPromqlBaseParser.label().Visit a parse tree produced byPromqlBaseParser.labelList().Visit a parse tree produced byPromqlBaseParser.labelName().Visit a parse tree produced byPromqlBaseParser.labels().Visit a parse tree produced byPromqlBaseParser.modifier().Visit a parse tree produced byPromqlBaseParser.nonReserved().Visit a parse tree produced byPromqlBaseParser.offset().Visit a parse tree produced by theparenthesizedlabeled alternative inPromqlBaseParser.expression().Visit a parse tree produced byPromqlBaseParser.selector().Visit a parse tree produced byPromqlBaseParser.seriesMatcher().Visit a parse tree produced byPromqlBaseParser.singleStatement().Visit a parse tree produced byPromqlBaseParser.string().Visit a parse tree produced by thesubquerylabeled alternative inPromqlBaseParser.expression().Visit a parse tree produced byPromqlBaseParser.subqueryResolution().Visit a parse tree produced byPromqlBaseParser.timeValue().Visit a parse tree produced byPromqlBaseParser.value().Visit a parse tree produced by thevalueExpressionlabeled alternative inPromqlBaseParser.expression().Methods 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 org.antlr.v4.runtime.tree.ParseTreeVisitor
visit, visitChildren, visitErrorNode, visitTerminal
-
Constructor Details
-
PromqlBaseParserBaseVisitor
public PromqlBaseParserBaseVisitor()
-
-
Method Details
-
visitSingleStatement
Visit a parse tree produced byPromqlBaseParser.singleStatement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSingleStatementin interfacePromqlBaseParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitValueExpression
Visit a parse tree produced by thevalueExpressionlabeled alternative inPromqlBaseParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitValueExpressionin interfacePromqlBaseParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSubquery
Visit a parse tree produced by thesubquerylabeled alternative inPromqlBaseParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSubqueryin interfacePromqlBaseParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParenthesized
Visit a parse tree produced by theparenthesizedlabeled alternative inPromqlBaseParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitParenthesizedin interfacePromqlBaseParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitArithmeticBinary
Visit a parse tree produced by thearithmeticBinarylabeled alternative inPromqlBaseParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitArithmeticBinaryin interfacePromqlBaseParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitArithmeticUnary
Visit a parse tree produced by thearithmeticUnarylabeled alternative inPromqlBaseParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitArithmeticUnaryin interfacePromqlBaseParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSubqueryResolution
Visit a parse tree produced byPromqlBaseParser.subqueryResolution().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSubqueryResolutionin interfacePromqlBaseParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitValue
Visit a parse tree produced byPromqlBaseParser.value().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitValuein interfacePromqlBaseParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFunction
Visit a parse tree produced byPromqlBaseParser.function().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFunctionin interfacePromqlBaseParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFunctionParams
Visit a parse tree produced byPromqlBaseParser.functionParams().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFunctionParamsin interfacePromqlBaseParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitGrouping
Visit a parse tree produced byPromqlBaseParser.grouping().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitGroupingin interfacePromqlBaseParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSelector
Visit a parse tree produced byPromqlBaseParser.selector().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSelectorin interfacePromqlBaseParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSeriesMatcher
Visit a parse tree produced byPromqlBaseParser.seriesMatcher().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSeriesMatcherin interfacePromqlBaseParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitModifier
Visit a parse tree produced byPromqlBaseParser.modifier().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitModifierin interfacePromqlBaseParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLabelList
Visit a parse tree produced byPromqlBaseParser.labelList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLabelListin interfacePromqlBaseParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLabels
Visit a parse tree produced byPromqlBaseParser.labels().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLabelsin interfacePromqlBaseParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLabel
Visit a parse tree produced byPromqlBaseParser.label().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLabelin interfacePromqlBaseParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLabelName
Visit a parse tree produced byPromqlBaseParser.labelName().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLabelNamein interfacePromqlBaseParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIdentifier
Visit a parse tree produced byPromqlBaseParser.identifier().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIdentifierin interfacePromqlBaseParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEvaluation
Visit a parse tree produced byPromqlBaseParser.evaluation().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEvaluationin interfacePromqlBaseParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitOffset
Visit a parse tree produced byPromqlBaseParser.offset().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitOffsetin interfacePromqlBaseParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDuration
Visit a parse tree produced byPromqlBaseParser.duration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitDurationin interfacePromqlBaseParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAt
Visit a parse tree produced byPromqlBaseParser.at().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAtin interfacePromqlBaseParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitConstant
Visit a parse tree produced byPromqlBaseParser.constant().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitConstantin interfacePromqlBaseParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDecimalLiteral
Visit a parse tree produced by thedecimalLiterallabeled alternative inPromqlBaseParser.number().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitDecimalLiteralin interfacePromqlBaseParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIntegerLiteral
Visit a parse tree produced by theintegerLiterallabeled alternative inPromqlBaseParser.number().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIntegerLiteralin interfacePromqlBaseParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitHexLiteral
Visit a parse tree produced by thehexLiterallabeled alternative inPromqlBaseParser.number().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitHexLiteralin interfacePromqlBaseParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitString
Visit a parse tree produced byPromqlBaseParser.string().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitStringin interfacePromqlBaseParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTimeValue
Visit a parse tree produced byPromqlBaseParser.timeValue().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTimeValuein interfacePromqlBaseParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNonReserved
Visit a parse tree produced byPromqlBaseParser.nonReserved().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNonReservedin interfacePromqlBaseParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-