Show / Hide Table of Contents

Class PromQLParserBaseVisitor<Result>

This class provides an empty implementation of IPromQLParserVisitor<Result>, which can be extended to create a visitor which only needs to handle a subset of the available methods.

Inheritance
System.Object
PromQLParserBaseVisitor<Result>
Implements
IPromQLParserVisitor<Result>
IParseTreeVisitor<Result>
Namespace: GCore.Antlr.Grammers.Promql
Assembly: Promql.dll
Syntax
public class PromQLParserBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, IPromQLParserVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name Description
Result

The return type of the visit operation.

Methods

| Improve this Doc View Source

VisitAddOp(PromQLParser.AddOpContext)

Visit a parse tree produced by addOp().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitAddOp(PromQLParser.AddOpContext context)
Parameters
Type Name Description
PromQLParser.AddOpContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitAggregation(PromQLParser.AggregationContext)

Visit a parse tree produced by aggregation().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitAggregation(PromQLParser.AggregationContext context)
Parameters
Type Name Description
PromQLParser.AggregationContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitAndUnlessOp(PromQLParser.AndUnlessOpContext)

Visit a parse tree produced by andUnlessOp().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitAndUnlessOp(PromQLParser.AndUnlessOpContext context)
Parameters
Type Name Description
PromQLParser.AndUnlessOpContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitBy(PromQLParser.ByContext)

Visit a parse tree produced by by().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitBy(PromQLParser.ByContext context)
Parameters
Type Name Description
PromQLParser.ByContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitCompareOp(PromQLParser.CompareOpContext)

Visit a parse tree produced by compareOp().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitCompareOp(PromQLParser.CompareOpContext context)
Parameters
Type Name Description
PromQLParser.CompareOpContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitExpression(PromQLParser.ExpressionContext)

Visit a parse tree produced by expression().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitExpression(PromQLParser.ExpressionContext context)
Parameters
Type Name Description
PromQLParser.ExpressionContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitFunction_(PromQLParser.Function_Context)

Visit a parse tree produced by function_().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitFunction_(PromQLParser.Function_Context context)
Parameters
Type Name Description
PromQLParser.Function_Context context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitGrouping(PromQLParser.GroupingContext)

Visit a parse tree produced by grouping().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitGrouping(PromQLParser.GroupingContext context)
Parameters
Type Name Description
PromQLParser.GroupingContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitGroupLeft(PromQLParser.GroupLeftContext)

Visit a parse tree produced by groupLeft().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitGroupLeft(PromQLParser.GroupLeftContext context)
Parameters
Type Name Description
PromQLParser.GroupLeftContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitGroupRight(PromQLParser.GroupRightContext)

Visit a parse tree produced by groupRight().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitGroupRight(PromQLParser.GroupRightContext context)
Parameters
Type Name Description
PromQLParser.GroupRightContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitIgnoring(PromQLParser.IgnoringContext)

Visit a parse tree produced by ignoring().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitIgnoring(PromQLParser.IgnoringContext context)
Parameters
Type Name Description
PromQLParser.IgnoringContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitInstantSelector(PromQLParser.InstantSelectorContext)

Visit a parse tree produced by instantSelector().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitInstantSelector(PromQLParser.InstantSelectorContext context)
Parameters
Type Name Description
PromQLParser.InstantSelectorContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitKeyword(PromQLParser.KeywordContext)

Visit a parse tree produced by keyword().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitKeyword(PromQLParser.KeywordContext context)
Parameters
Type Name Description
PromQLParser.KeywordContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitLabelMatcher(PromQLParser.LabelMatcherContext)

Visit a parse tree produced by labelMatcher().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitLabelMatcher(PromQLParser.LabelMatcherContext context)
Parameters
Type Name Description
PromQLParser.LabelMatcherContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitLabelMatcherList(PromQLParser.LabelMatcherListContext)

Visit a parse tree produced by labelMatcherList().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitLabelMatcherList(PromQLParser.LabelMatcherListContext context)
Parameters
Type Name Description
PromQLParser.LabelMatcherListContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitLabelMatcherOperator(PromQLParser.LabelMatcherOperatorContext)

Visit a parse tree produced by labelMatcherOperator().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitLabelMatcherOperator(PromQLParser.LabelMatcherOperatorContext context)
Parameters
Type Name Description
PromQLParser.LabelMatcherOperatorContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitLabelName(PromQLParser.LabelNameContext)

Visit a parse tree produced by labelName().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitLabelName(PromQLParser.LabelNameContext context)
Parameters
Type Name Description
PromQLParser.LabelNameContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitLabelNameList(PromQLParser.LabelNameListContext)

Visit a parse tree produced by labelNameList().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitLabelNameList(PromQLParser.LabelNameListContext context)
Parameters
Type Name Description
PromQLParser.LabelNameListContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitLiteral(PromQLParser.LiteralContext)

Visit a parse tree produced by literal().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitLiteral(PromQLParser.LiteralContext context)
Parameters
Type Name Description
PromQLParser.LiteralContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitMatrixSelector(PromQLParser.MatrixSelectorContext)

Visit a parse tree produced by matrixSelector().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitMatrixSelector(PromQLParser.MatrixSelectorContext context)
Parameters
Type Name Description
PromQLParser.MatrixSelectorContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitMultOp(PromQLParser.MultOpContext)

Visit a parse tree produced by multOp().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitMultOp(PromQLParser.MultOpContext context)
Parameters
Type Name Description
PromQLParser.MultOpContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitOffset(PromQLParser.OffsetContext)

Visit a parse tree produced by offset().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitOffset(PromQLParser.OffsetContext context)
Parameters
Type Name Description
PromQLParser.OffsetContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitOn_(PromQLParser.On_Context)

Visit a parse tree produced by on_().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitOn_(PromQLParser.On_Context context)
Parameters
Type Name Description
PromQLParser.On_Context context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitOrOp(PromQLParser.OrOpContext)

Visit a parse tree produced by orOp().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitOrOp(PromQLParser.OrOpContext context)
Parameters
Type Name Description
PromQLParser.OrOpContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitParameter(PromQLParser.ParameterContext)

Visit a parse tree produced by parameter().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitParameter(PromQLParser.ParameterContext context)
Parameters
Type Name Description
PromQLParser.ParameterContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitParameterList(PromQLParser.ParameterListContext)

Visit a parse tree produced by parameterList().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitParameterList(PromQLParser.ParameterListContext context)
Parameters
Type Name Description
PromQLParser.ParameterListContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitParens(PromQLParser.ParensContext)

Visit a parse tree produced by parens().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitParens(PromQLParser.ParensContext context)
Parameters
Type Name Description
PromQLParser.ParensContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitPowOp(PromQLParser.PowOpContext)

Visit a parse tree produced by powOp().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitPowOp(PromQLParser.PowOpContext context)
Parameters
Type Name Description
PromQLParser.PowOpContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitUnaryOp(PromQLParser.UnaryOpContext)

Visit a parse tree produced by unaryOp().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitUnaryOp(PromQLParser.UnaryOpContext context)
Parameters
Type Name Description
PromQLParser.UnaryOpContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitVector(PromQLParser.VectorContext)

Visit a parse tree produced by vector().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitVector(PromQLParser.VectorContext context)
Parameters
Type Name Description
PromQLParser.VectorContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitVectorOperation(PromQLParser.VectorOperationContext)

Visit a parse tree produced by vectorOperation().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitVectorOperation(PromQLParser.VectorOperationContext context)
Parameters
Type Name Description
PromQLParser.VectorOperationContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitWithout(PromQLParser.WithoutContext)

Visit a parse tree produced by without().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitWithout(PromQLParser.WithoutContext context)
Parameters
Type Name Description
PromQLParser.WithoutContext context

The parse tree.

Returns
Type Description
Result

Implements

IPromQLParserVisitor<Result>
IParseTreeVisitor<>
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX