Class Scope
java.lang.Object
de.fraunhofer.aisec.cpg.passes.scopes.Scope
- Direct Known Subclasses:
ValueDeclarationScope
public abstract class Scope
extends java.lang.Object
Represent semantic scopes in the language and only saves information, such as relevant
statements. Pre and Postprocessing is done by the passes. Only the passes themselves know the
semantics of used edges, but different passes can use the same scope stack concept.
-
Field Summary
Fields Modifier and Type Field Description protected de.fraunhofer.aisec.cpg.graph.NodeastNodeprotected java.util.List<Scope>childrenprotected java.util.Map<java.lang.String,LabelStatement>labelStatementsprotected Scopeparentprotected java.lang.StringscopedName -
Constructor Summary
Constructors Constructor Description Scope() -
Method Summary
Modifier and Type Method Description voidaddLabelStatement(LabelStatement labelStatement)de.fraunhofer.aisec.cpg.graph.NodegetAstNode()java.util.List<Scope>getChildren()java.util.Map<java.lang.String,LabelStatement>getLabelStatements()ScopegetParent()java.lang.StringgetScopedName()voidsetAstNode(de.fraunhofer.aisec.cpg.graph.Node astNode)voidsetChildren(java.util.List<Scope> children)voidsetLabelStatements(java.util.Map<java.lang.String,LabelStatement> labelStatements)voidsetParent(Scope parent)voidsetScopedName(java.lang.String scopedName)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
astNode
protected de.fraunhofer.aisec.cpg.graph.Node astNode -
scopedName
protected java.lang.String scopedName -
parent
-
children
-
labelStatements
-
-
Constructor Details
-
Scope
public Scope()
-
-
Method Details
-
getScopedName
public java.lang.String getScopedName() -
setScopedName
public void setScopedName(java.lang.String scopedName) -
getAstNode
public de.fraunhofer.aisec.cpg.graph.Node getAstNode() -
setAstNode
public void setAstNode(de.fraunhofer.aisec.cpg.graph.Node astNode) -
getLabelStatements
-
setLabelStatements
-
addLabelStatement
-
getParent
-
setParent
-
getChildren
-
setChildren
-