Class HclParserVisitor
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeVisitor<Hcl>,HCLParserVisitor<Hcl>
-
Constructor Summary
ConstructorsConstructorDescriptionHclParserVisitor(Path path, String source, Charset charset, boolean charsetBomMarked, @Nullable org.openrewrite.FileAttributes fileAttributes) -
Method Summary
Modifier and TypeMethodDescriptionVisit a parse tree produced byHCLParser.attribute().Visit a parse tree produced by theAttributeAccessExpressionlabeled alternative inHCLParser.exprTerm().Visit a parse tree produced byHCLParser.binaryOp().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 by theConditionalExpressionlabeled alternative inHCLParser.expression().Visit a parse tree produced byHCLParser.configFile().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.functionCall().Visit a parse tree produced by theHeredoclabeled alternative inHCLParser.templateExpr().Visit a parse tree produced by theIndexAccessExpressionlabeled alternative inHCLParser.exprTerm().Visit a parse tree produced byHCLParser.literalValue().Visit a parse tree produced byHCLParser.object().Visit a parse tree produced byHCLParser.objectelem().Visit a parse tree produced by theParentheticalExpressionlabeled alternative inHCLParser.exprTerm().Visit a parse tree produced by theQuotedTemplatelabeled alternative inHCLParser.templateExpr().visitSplatAttr(Expression acc, List<org.antlr.v4.runtime.tree.ParseTree> attrs) Visit a parse tree produced by theSplatExpressionlabeled 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().Methods inherited from class org.openrewrite.hcl.internal.grammar.HCLParserBaseVisitor
visitArguments, visitArithmeticOperator, visitAttrSplat, visitBinaryOperator, visitBody, visitBodyContent, visitCollectionValue, visitCollectionValueExpression, visitCompareOperator, visitExpressionTerm, visitForCond, visitForExpr, visitForExpression, visitFullSplat, visitFunctionCallExpression, visitGetAttr, visitHeredocLiteral, visitHeredocTemplatePart, visitIndex, visitLiteralExpression, visitLogicOperator, visitOperation, visitOperationExpression, visitQuotedTemplatePart, visitSplat, visitStringLiteral, visitTemplateExpression, visitVariableExpressionMethods 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
-
HclParserVisitor
-
-
Method Details
-
visitAttribute
Description copied from class:HCLParserBaseVisitorVisit 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<Hcl>- Overrides:
visitAttributein classHCLParserBaseVisitor<Hcl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAttributeAccessExpression
Description copied from class:HCLParserBaseVisitorVisit 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<Hcl>- Overrides:
visitAttributeAccessExpressionin classHCLParserBaseVisitor<Hcl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBinaryOp
Description copied from class:HCLParserBaseVisitorVisit 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<Hcl>- Overrides:
visitBinaryOpin classHCLParserBaseVisitor<Hcl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBlockExpr
Description copied from class:HCLParserBaseVisitorVisit 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<Hcl>- Overrides:
visitBlockExprin classHCLParserBaseVisitor<Hcl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBlock
Description copied from class:HCLParserBaseVisitorVisit 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<Hcl>- Overrides:
visitBlockin classHCLParserBaseVisitor<Hcl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBlockLabel
Description copied from class:HCLParserBaseVisitorVisit 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<Hcl>- Overrides:
visitBlockLabelin classHCLParserBaseVisitor<Hcl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitConditionalExpression
Description copied from class:HCLParserBaseVisitorVisit 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<Hcl>- Overrides:
visitConditionalExpressionin classHCLParserBaseVisitor<Hcl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitConfigFile
Description copied from class:HCLParserBaseVisitorVisit 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<Hcl>- Overrides:
visitConfigFilein classHCLParserBaseVisitor<Hcl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitForIntro
Description copied from class:HCLParserBaseVisitorVisit 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<Hcl>- Overrides:
visitForIntroin classHCLParserBaseVisitor<Hcl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitForObjectExpr
Description copied from class:HCLParserBaseVisitorVisit 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<Hcl>- Overrides:
visitForObjectExprin classHCLParserBaseVisitor<Hcl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitForTupleExpr
Description copied from class:HCLParserBaseVisitorVisit 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<Hcl>- Overrides:
visitForTupleExprin classHCLParserBaseVisitor<Hcl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFunctionCall
Description copied from class:HCLParserBaseVisitorVisit 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<Hcl>- Overrides:
visitFunctionCallin classHCLParserBaseVisitor<Hcl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitHeredoc
Description copied from class:HCLParserBaseVisitorVisit 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<Hcl>- Overrides:
visitHeredocin classHCLParserBaseVisitor<Hcl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIndexAccessExpression
Description copied from class:HCLParserBaseVisitorVisit 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<Hcl>- Overrides:
visitIndexAccessExpressionin classHCLParserBaseVisitor<Hcl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLiteralValue
Description copied from class:HCLParserBaseVisitorVisit 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<Hcl>- Overrides:
visitLiteralValuein classHCLParserBaseVisitor<Hcl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitObject
Description copied from class:HCLParserBaseVisitorVisit 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<Hcl>- Overrides:
visitObjectin classHCLParserBaseVisitor<Hcl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitObjectelem
Description copied from class:HCLParserBaseVisitorVisit 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<Hcl>- Overrides:
visitObjectelemin classHCLParserBaseVisitor<Hcl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParentheticalExpression
Description copied from class:HCLParserBaseVisitorVisit 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<Hcl>- Overrides:
visitParentheticalExpressionin classHCLParserBaseVisitor<Hcl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSplatExpression
Description copied from class:HCLParserBaseVisitorVisit 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<Hcl>- Overrides:
visitSplatExpressionin classHCLParserBaseVisitor<Hcl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSplatAttr
-
visitQuotedTemplate
Description copied from class:HCLParserBaseVisitorVisit 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<Hcl>- Overrides:
visitQuotedTemplatein classHCLParserBaseVisitor<Hcl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTemplateInterpolation
Description copied from class:HCLParserBaseVisitorVisit 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<Hcl>- Overrides:
visitTemplateInterpolationin classHCLParserBaseVisitor<Hcl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTuple
Description copied from class:HCLParserBaseVisitorVisit 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<Hcl>- Overrides:
visitTuplein classHCLParserBaseVisitor<Hcl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitUnaryOp
Description copied from class:HCLParserBaseVisitorVisit 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<Hcl>- Overrides:
visitUnaryOpin classHCLParserBaseVisitor<Hcl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVariableExpr
Description copied from class:HCLParserBaseVisitorVisit 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<Hcl>- Overrides:
visitVariableExprin classHCLParserBaseVisitor<Hcl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-