Package org.sonar.iac.docker.visitors
Class DockerSymbolVisitor
- java.lang.Object
-
- org.sonar.iac.common.extension.visitors.TreeVisitor<InputFileContext>
-
- org.sonar.iac.docker.visitors.DockerSymbolVisitor
-
public class DockerSymbolVisitor extends TreeVisitor<InputFileContext>
Class used to visit a DockerTree and build symbols and their usages for variables. Those Symbol/Usage can later be used in checks to resolve Argument or to report issue variable flow.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.sonar.iac.common.extension.visitors.TreeVisitor
TreeVisitor.ConsumerFilter<C extends TreeContext,T extends Tree>
-
-
Field Summary
-
Fields inherited from class org.sonar.iac.common.extension.visitors.TreeVisitor
consumers
-
-
Constructor Summary
Constructors Constructor Description DockerSymbolVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends Tree>
TreeVisitor<InputFileContext>registerAfter(Class<T> cls, BiConsumer<InputFileContext,T> visitor)voidrestoreGlobalScope(InputFileContext ctx, FromInstruction from)voidsetGlobalScope(InputFileContext ctx, Body body)voidsetImageScope(InputFileContext ctx, FromInstruction from)protected voidvisit(InputFileContext ctx, Tree node)-
Methods inherited from class org.sonar.iac.common.extension.visitors.TreeVisitor
after, before, register, scan
-
-
-
-
Method Detail
-
visit
protected void visit(InputFileContext ctx, @Nullable Tree node)
- Overrides:
visitin classTreeVisitor<InputFileContext>
-
registerAfter
public <T extends Tree> TreeVisitor<InputFileContext> registerAfter(Class<T> cls, BiConsumer<InputFileContext,T> visitor)
-
setGlobalScope
public void setGlobalScope(InputFileContext ctx, Body body)
-
restoreGlobalScope
public void restoreGlobalScope(InputFileContext ctx, FromInstruction from)
-
setImageScope
public void setImageScope(InputFileContext ctx, FromInstruction from)
-
-