Class HCLParserBaseVisitor<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>,HCLParserVisitor<T>
- Direct Known Subclasses:
HclParserVisitor
HCLParserVisitor,
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 byHCLParser.arguments().Visit a parse tree produced byHCLParser.arithmeticOperator().Visit a parse tree produced byHCLParser.attribute().Visit a parse tree produced by theAttributeAccessExpressionlabeled alternative inHCLParser.exprTerm().Visit a parse tree produced byHCLParser.attrSplat().Visit a parse tree produced byHCLParser.binaryOp().Visit a parse tree produced byHCLParser.binaryOperator().Visit a parse tree produced byHCLParser.block().Visit a parse tree produced byHCLParser.blockExpr().Visit a parse tree produced byHCLParser.blockLabel().Visit a parse tree produced byHCLParser.body().Visit a parse tree produced byHCLParser.bodyContent().Visit a parse tree produced byHCLParser.collectionValue().Visit a parse tree produced by theCollectionValueExpressionlabeled alternative inHCLParser.exprTerm().Visit a parse tree produced byHCLParser.compareOperator().Visit a parse tree produced by theConditionalExpressionlabeled alternative inHCLParser.expression().Visit a parse tree produced byHCLParser.configFile().Visit a parse tree produced by theExpressionTermlabeled alternative inHCLParser.expression().Visit a parse tree produced byHCLParser.forCond().Visit a parse tree produced byHCLParser.forExpr().Visit a parse tree produced by theForExpressionlabeled alternative inHCLParser.exprTerm().Visit a parse tree produced byHCLParser.forIntro().Visit a parse tree produced byHCLParser.forObjectExpr().Visit a parse tree produced byHCLParser.forTupleExpr().Visit a parse tree produced byHCLParser.fullSplat().Visit a parse tree produced byHCLParser.functionCall().Visit a parse tree produced by theFunctionCallExpressionlabeled alternative inHCLParser.exprTerm().Visit a parse tree produced byHCLParser.getAttr().Visit a parse tree produced by theHeredoclabeled alternative inHCLParser.templateExpr().Visit a parse tree produced byHCLParser.heredocLiteral().Visit a parse tree produced byHCLParser.heredocTemplatePart().Visit a parse tree produced byHCLParser.index().Visit a parse tree produced by theIndexAccessExpressionlabeled alternative inHCLParser.exprTerm().Visit a parse tree produced by theLiteralExpressionlabeled alternative inHCLParser.exprTerm().Visit a parse tree produced byHCLParser.literalValue().Visit a parse tree produced byHCLParser.logicOperator().Visit a parse tree produced byHCLParser.object().Visit a parse tree produced byHCLParser.objectelem().Visit a parse tree produced byHCLParser.operation().Visit a parse tree produced by theOperationExpressionlabeled alternative inHCLParser.expression().Visit a parse tree produced by theParentheticalExpressionlabeled alternative inHCLParser.exprTerm().Visit a parse tree produced by theQuotedTemplatelabeled alternative inHCLParser.templateExpr().Visit a parse tree produced byHCLParser.quotedTemplatePart().Visit a parse tree produced byHCLParser.splat().Visit a parse tree produced by theSplatExpressionlabeled alternative inHCLParser.exprTerm().Visit a parse tree produced byHCLParser.stringLiteral().Visit a parse tree produced by theTemplateExpressionlabeled alternative inHCLParser.exprTerm().Visit a parse tree produced byHCLParser.templateInterpolation().Visit a parse tree produced byHCLParser.tuple().Visit a parse tree produced byHCLParser.unaryOp().Visit a parse tree produced byHCLParser.variableExpr().Visit a parse tree produced by theVariableExpressionlabeled alternative inHCLParser.exprTerm().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
-
HCLParserBaseVisitor
public HCLParserBaseVisitor()
-
-
Method Details
-
visitConfigFile
Visit a parse tree produced byHCLParser.configFile().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitConfigFilein interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBody
Visit a parse tree produced byHCLParser.body().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBodyin interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBodyContent
Visit a parse tree produced byHCLParser.bodyContent().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBodyContentin interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAttribute
Visit a parse tree produced byHCLParser.attribute().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAttributein interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBlock
Visit a parse tree produced byHCLParser.block().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBlockin interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBlockLabel
Visit a parse tree produced byHCLParser.blockLabel().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBlockLabelin interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitOperationExpression
Visit a parse tree produced by theOperationExpressionlabeled alternative inHCLParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitOperationExpressionin interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitConditionalExpression
Visit a parse tree produced by theConditionalExpressionlabeled alternative inHCLParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitConditionalExpressionin interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExpressionTerm
Visit a parse tree produced by theExpressionTermlabeled alternative inHCLParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitExpressionTermin interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParentheticalExpression
Visit a parse tree produced by theParentheticalExpressionlabeled alternative inHCLParser.exprTerm().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitParentheticalExpressionin interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAttributeAccessExpression
Visit a parse tree produced by theAttributeAccessExpressionlabeled alternative inHCLParser.exprTerm().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAttributeAccessExpressionin interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLiteralExpression
Visit a parse tree produced by theLiteralExpressionlabeled alternative inHCLParser.exprTerm().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLiteralExpressionin interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTemplateExpression
Visit a parse tree produced by theTemplateExpressionlabeled alternative inHCLParser.exprTerm().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTemplateExpressionin interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVariableExpression
Visit a parse tree produced by theVariableExpressionlabeled alternative inHCLParser.exprTerm().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVariableExpressionin interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSplatExpression
Visit a parse tree produced by theSplatExpressionlabeled alternative inHCLParser.exprTerm().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSplatExpressionin interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIndexAccessExpression
Visit a parse tree produced by theIndexAccessExpressionlabeled alternative inHCLParser.exprTerm().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIndexAccessExpressionin interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitForExpression
Visit a parse tree produced by theForExpressionlabeled alternative inHCLParser.exprTerm().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitForExpressionin interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFunctionCallExpression
Visit a parse tree produced by theFunctionCallExpressionlabeled alternative inHCLParser.exprTerm().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFunctionCallExpressionin interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCollectionValueExpression
Visit a parse tree produced by theCollectionValueExpressionlabeled alternative inHCLParser.exprTerm().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCollectionValueExpressionin interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBlockExpr
Visit a parse tree produced byHCLParser.blockExpr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBlockExprin interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLiteralValue
Visit a parse tree produced byHCLParser.literalValue().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLiteralValuein interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCollectionValue
Visit a parse tree produced byHCLParser.collectionValue().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCollectionValuein interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTuple
Visit a parse tree produced byHCLParser.tuple().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTuplein interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitObject
Visit a parse tree produced byHCLParser.object().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitObjectin interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitObjectelem
Visit a parse tree produced byHCLParser.objectelem().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitObjectelemin interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitForExpr
Visit a parse tree produced byHCLParser.forExpr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitForExprin interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitForTupleExpr
Visit a parse tree produced byHCLParser.forTupleExpr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitForTupleExprin interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitForObjectExpr
Visit a parse tree produced byHCLParser.forObjectExpr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitForObjectExprin interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitForIntro
Visit a parse tree produced byHCLParser.forIntro().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitForIntroin interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitForCond
Visit a parse tree produced byHCLParser.forCond().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitForCondin interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVariableExpr
Visit a parse tree produced byHCLParser.variableExpr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVariableExprin interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFunctionCall
Visit a parse tree produced byHCLParser.functionCall().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFunctionCallin interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitArguments
Visit a parse tree produced byHCLParser.arguments().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitArgumentsin interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIndex
Visit a parse tree produced byHCLParser.index().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIndexin interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitGetAttr
Visit a parse tree produced byHCLParser.getAttr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitGetAttrin interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSplat
Visit a parse tree produced byHCLParser.splat().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSplatin interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAttrSplat
Visit a parse tree produced byHCLParser.attrSplat().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAttrSplatin interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFullSplat
Visit a parse tree produced byHCLParser.fullSplat().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFullSplatin interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitOperation
Visit a parse tree produced byHCLParser.operation().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitOperationin interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitUnaryOp
Visit a parse tree produced byHCLParser.unaryOp().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitUnaryOpin interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBinaryOp
Visit a parse tree produced byHCLParser.binaryOp().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBinaryOpin interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBinaryOperator
Visit a parse tree produced byHCLParser.binaryOperator().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBinaryOperatorin interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCompareOperator
Visit a parse tree produced byHCLParser.compareOperator().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCompareOperatorin interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitArithmeticOperator
Visit a parse tree produced byHCLParser.arithmeticOperator().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitArithmeticOperatorin interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLogicOperator
Visit a parse tree produced byHCLParser.logicOperator().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLogicOperatorin interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitHeredoc
Visit a parse tree produced by theHeredoclabeled alternative inHCLParser.templateExpr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitHeredocin interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitQuotedTemplate
Visit a parse tree produced by theQuotedTemplatelabeled alternative inHCLParser.templateExpr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitQuotedTemplatein interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitHeredocTemplatePart
Visit a parse tree produced byHCLParser.heredocTemplatePart().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitHeredocTemplatePartin interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitHeredocLiteral
Visit a parse tree produced byHCLParser.heredocLiteral().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitHeredocLiteralin interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitQuotedTemplatePart
Visit a parse tree produced byHCLParser.quotedTemplatePart().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitQuotedTemplatePartin interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStringLiteral
Visit a parse tree produced byHCLParser.stringLiteral().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitStringLiteralin interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTemplateInterpolation
Visit a parse tree produced byHCLParser.templateInterpolation().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTemplateInterpolationin interfaceHCLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-