Class LoopScope
java.lang.Object
de.fraunhofer.aisec.cpg.passes.scopes.Scope
de.fraunhofer.aisec.cpg.passes.scopes.ValueDeclarationScope
de.fraunhofer.aisec.cpg.passes.scopes.LoopScope
- All Implemented Interfaces:
de.fraunhofer.aisec.cpg.passes.scopes.Breakable,de.fraunhofer.aisec.cpg.passes.scopes.Continuable,de.fraunhofer.aisec.cpg.passes.scopes.ScopeTraits
public class LoopScope extends ValueDeclarationScope implements de.fraunhofer.aisec.cpg.passes.scopes.Breakable, de.fraunhofer.aisec.cpg.passes.scopes.Continuable
-
Field Summary
Fields inherited from class de.fraunhofer.aisec.cpg.passes.scopes.ValueDeclarationScope
logFields inherited from class de.fraunhofer.aisec.cpg.passes.scopes.Scope
astNode, children, labelStatements, parent, scopedName -
Constructor Summary
-
Method Summary
Modifier and Type Method Description voidaddBreakStatement(BreakStatement breakStatement)voidaddContinueStatement(ContinueStatement continueStatement)java.util.List<BreakStatement>getBreakStatements()java.util.List<de.fraunhofer.aisec.cpg.graph.Node>getConditions()java.util.List<ContinueStatement>getContinueStatements()java.util.List<de.fraunhofer.aisec.cpg.graph.Node>getStarts()voidsetConditions(java.util.List<de.fraunhofer.aisec.cpg.graph.Node> conditions)voidsetStarts(java.util.List<de.fraunhofer.aisec.cpg.graph.Node> starts)java.util.List<de.fraunhofer.aisec.cpg.graph.Node>starts()Methods inherited from class de.fraunhofer.aisec.cpg.passes.scopes.ValueDeclarationScope
addDeclaration, addTypedef, getTypedefs, getValueDeclarations, setTypedefs, setValueDeclarationsMethods 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
-
Constructor Details
-
LoopScope
-
-
Method Details
-
getStarts
public java.util.List<de.fraunhofer.aisec.cpg.graph.Node> getStarts() -
setStarts
public void setStarts(java.util.List<de.fraunhofer.aisec.cpg.graph.Node> starts) -
getConditions
public java.util.List<de.fraunhofer.aisec.cpg.graph.Node> getConditions() -
setConditions
public void setConditions(java.util.List<de.fraunhofer.aisec.cpg.graph.Node> conditions) -
addBreakStatement
- Specified by:
addBreakStatementin interfacede.fraunhofer.aisec.cpg.passes.scopes.Breakable
-
addContinueStatement
- Specified by:
addContinueStatementin interfacede.fraunhofer.aisec.cpg.passes.scopes.Continuable
-
getBreakStatements
- Specified by:
getBreakStatementsin interfacede.fraunhofer.aisec.cpg.passes.scopes.Breakable
-
getContinueStatements
- Specified by:
getContinueStatementsin interfacede.fraunhofer.aisec.cpg.passes.scopes.Continuable
-
starts
public java.util.List<de.fraunhofer.aisec.cpg.graph.Node> starts()
-