Class ValueDeclarationScope

java.lang.Object
de.fraunhofer.aisec.cpg.passes.scopes.Scope
de.fraunhofer.aisec.cpg.passes.scopes.ValueDeclarationScope
Direct Known Subclasses:
BlockScope, FunctionScope, LoopScope, StructureDeclarationScope, SwitchScope, TryScope

public class ValueDeclarationScope
extends Scope
Is a scope where local variables can be declared and independent from specific language constructs. Works for if, for, and extends to the block scope
  • Field Details

    • log

      protected static final org.slf4j.Logger log
  • Constructor Details

    • ValueDeclarationScope

      public ValueDeclarationScope​(de.fraunhofer.aisec.cpg.graph.Node node)
  • Method Details

    • getValueDeclarations

      public @NonNull java.util.List<ValueDeclaration> getValueDeclarations()
    • setValueDeclarations

      public void setValueDeclarations​(@NonNull java.util.List<ValueDeclaration> valueDeclarations)
    • getTypedefs

      public java.util.List<TypedefDeclaration> getTypedefs()
    • setTypedefs

      public void setTypedefs​(java.util.List<TypedefDeclaration> typedefs)
    • addTypedef

      public void addTypedef​(TypedefDeclaration typedef)
    • addDeclaration

      public void addDeclaration​(@NonNull Declaration declaration)