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 Summary
Fields Modifier and Type Field Description protected static org.slf4j.Loggerlog-
Fields inherited from class de.fraunhofer.aisec.cpg.passes.scopes.Scope
astNode, children, labelStatements, parent, scopedName
-
-
Constructor Summary
Constructors Constructor Description ValueDeclarationScope(Node node)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDeclaration(@NonNull Declaration declaration)voidaddTypedef(TypedefDeclaration typedef)java.util.List<TypedefDeclaration>getTypedefs()@NonNull java.util.List<ValueDeclaration>getValueDeclarations()voidsetTypedefs(java.util.List<TypedefDeclaration> typedefs)voidsetValueDeclarations(@NonNull java.util.List<ValueDeclaration> valueDeclarations)-
Methods inherited from class de.fraunhofer.aisec.cpg.passes.scopes.Scope
addLabelStatement, getAstNode, getChildren, getLabelStatements, getParent, getScopedName, setAstNode, setChildren, setLabelStatements, setParent, setScopedName
-
-
-
-
Constructor Detail
-
ValueDeclarationScope
public ValueDeclarationScope(Node node)
-
-
Method Detail
-
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)
-
-