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.LoggerlogFields inherited from class de.fraunhofer.aisec.cpg.passes.scopes.Scope
astNode, children, labelStatements, parent, scopedName -
Constructor Summary
Constructors Constructor Description ValueDeclarationScope(de.fraunhofer.aisec.cpg.graph.Node node) -
Method Summary
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, setScopedNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
-
setValueDeclarations
-
getTypedefs
-
setTypedefs
-
addTypedef
-
addDeclaration
-