Class DeclarationScope
- java.lang.Object
-
- de.fraunhofer.aisec.cpg.passes.scopes.Scope
-
- de.fraunhofer.aisec.cpg.passes.scopes.DeclarationScope
-
- Direct Known Subclasses:
BlockScope,FunctionScope,GlobalScope,LoopScope,RecordScope,SwitchScope,TryScope
public class DeclarationScope 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 Summary
-
Fields inherited from class de.fraunhofer.aisec.cpg.passes.scopes.Scope
astNode, children, labelStatements, parent
-
-
Constructor Summary
Constructors Constructor Description DeclarationScope(Node node)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddValueDeclaration(ValueDeclaration valueDeclaration)@NonNull java.util.List<ValueDeclaration>getValueDeclarations()voidsetValueDeclarations(@NonNull java.util.List<ValueDeclaration> valueDeclarations)-
Methods inherited from class de.fraunhofer.aisec.cpg.passes.scopes.Scope
addLabelStatement, getAstNode, getChildren, getLabelStatements, getParent, setAstNode, setChildren, setLabelStatements, setParent
-
-
-
-
Constructor Detail
-
DeclarationScope
public DeclarationScope(Node node)
-
-
Method Detail
-
getValueDeclarations
public @NonNull java.util.List<ValueDeclaration> getValueDeclarations()
-
setValueDeclarations
public void setValueDeclarations(@NonNull java.util.List<ValueDeclaration> valueDeclarations)
-
addValueDeclaration
public void addValueDeclaration(ValueDeclaration valueDeclaration)
-
-