Class ComputeScopeTree
- java.lang.Object
-
- software.amazon.awssdk.codegen.poet.rules2.WalkRuleExpressionVisitor
-
- software.amazon.awssdk.codegen.poet.rules2.ComputeScopeTree
-
- All Implemented Interfaces:
RuleExpressionVisitor<Void>
public final class ComputeScopeTree extends WalkRuleExpressionVisitor
Computes all the symbols, locals and params, used by each of the rules, either directly or transitively.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ComputeScopeTree.Scope
static class
ComputeScopeTree.ScopeBuilder
-
Constructor Summary
Constructors Constructor Description ComputeScopeTree(SymbolTable symbolTable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeScopeTree.Scope
result()
Returns the root scope.Map<String,ComputeScopeTree.Scope>
scopesByName()
Returns the mapping between rule id and scope.Void
visitLetExpression(LetExpression e)
Void
visitRuleSetExpression(RuleSetExpression node)
Void
visitVariableReferenceExpression(VariableReferenceExpression e)
-
Methods inherited from class software.amazon.awssdk.codegen.poet.rules2.WalkRuleExpressionVisitor
visitAll, visitBooleanAndExpression, visitBooleanNotExpression, visitEndpointExpression, visitErrorExpression, visitFunctionCallExpression, visitHeadersExpression, visitIndexedAccessExpression, visitListExpression, visitLiteralBooleanExpression, visitLiteralIntegerExpression, visitLiteralStringExpression, visitMemberAccessExpression, visitMethodCallExpression, visitPropertiesExpression, visitStringConcatExpression
-
-
-
-
Constructor Detail
-
ComputeScopeTree
public ComputeScopeTree(SymbolTable symbolTable)
-
-
Method Detail
-
result
public ComputeScopeTree.Scope result()
Returns the root scope.
-
scopesByName
public Map<String,ComputeScopeTree.Scope> scopesByName()
Returns the mapping between rule id and scope.
-
visitRuleSetExpression
public Void visitRuleSetExpression(RuleSetExpression node)
- Specified by:
visitRuleSetExpression
in interfaceRuleExpressionVisitor<Void>
- Overrides:
visitRuleSetExpression
in classWalkRuleExpressionVisitor
-
visitVariableReferenceExpression
public Void visitVariableReferenceExpression(VariableReferenceExpression e)
- Specified by:
visitVariableReferenceExpression
in interfaceRuleExpressionVisitor<Void>
- Overrides:
visitVariableReferenceExpression
in classWalkRuleExpressionVisitor
-
visitLetExpression
public Void visitLetExpression(LetExpression e)
- Specified by:
visitLetExpression
in interfaceRuleExpressionVisitor<Void>
- Overrides:
visitLetExpression
in classWalkRuleExpressionVisitor
-
-