Class WhileStatement
- java.lang.Object
-
- de.fraunhofer.aisec.cpg.graph.Node
-
- de.fraunhofer.aisec.cpg.graph.statements.Statement
-
- de.fraunhofer.aisec.cpg.graph.statements.WhileStatement
-
- All Implemented Interfaces:
DeclarationHolder,Persistable,IVisitable<Node>
public class WhileStatement extends Statement
Represents a conditional loop statement of the form:while(...){...}.
-
-
Constructor Summary
Constructors Constructor Description WhileStatement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)ExpressiongetCondition()DeclarationgetConditionDeclaration()StatementgetStatement()inthashCode()voidsetCondition(Expression condition)voidsetConditionDeclaration(Declaration conditionDeclaration)voidsetStatement(Statement thenStatement)java.lang.StringtoString()-
Methods inherited from class de.fraunhofer.aisec.cpg.graph.statements.Statement
addDeclaration, getLocals, getLocalsPropertyEdge, removeLocal, setLocals
-
Methods inherited from class de.fraunhofer.aisec.cpg.graph.Node
addAnnotations, addNextCFG, addNextCFG, addNextDFG, addNextEOG, addPrevDFG, addPrevEOG, addTypedef, clearNextEOG, disconnectFromGraph, getAnnotations, getArgumentIndex, getCode, getFile, getId, getLocation, getName, getNextCFG, getNextDFG, getNextEOG, getNextEOGProperties, getNextEOGPropertyEdge, getPrevDFG, getPrevEOG, getPrevEOGProperties, getTypedefs, isDummy, isImplicit, removeNextDFG, removePrevDFG, removePrevEOGEntries, removePrevEOGEntry, setArgumentIndex, setCode, setComment, setDummy, setFile, setImplicit, setLocation, setName, setNextDFG, setNextEOG, setPrevDFG, setPrevEOG, setPrevEOGProperties, setTypedefs
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.fraunhofer.aisec.cpg.graph.DeclarationHolder
addIfNotContains, addIfNotContains, addIfNotContains
-
Methods inherited from interface de.fraunhofer.aisec.cpg.processing.IVisitable
accept
-
-
-
-
Method Detail
-
getConditionDeclaration
public Declaration getConditionDeclaration()
-
setConditionDeclaration
public void setConditionDeclaration(Declaration conditionDeclaration)
-
getCondition
public Expression getCondition()
-
setCondition
public void setCondition(Expression condition)
-
getStatement
public Statement getStatement()
-
setStatement
public void setStatement(Statement thenStatement)
-
-