Class PrepareForCodegenVisitor

java.lang.Object
software.amazon.awssdk.codegen.poet.rules2.RewriteRuleExpressionVisitor
software.amazon.awssdk.codegen.poet.rules2.PrepareForCodegenVisitor
All Implemented Interfaces:
RuleExpressionVisitor<RuleExpression>

public final class PrepareForCodegenVisitor extends RewriteRuleExpressionVisitor
Visitor that rewrites some expressions in preparation for codegen and also renaming locals assignments to use idiomatic java names. This visitor in particular rewrites variable references to the equivalent to getAttr(params, NAME) or getAttr(locals, NAME), depending on whether the reference is an endpoint params variable or a locally assigned one.