Class IfStatement
java.lang.Object
de.fraunhofer.aisec.cpg.graph.Node
de.fraunhofer.aisec.cpg.graph.statements.Statement
de.fraunhofer.aisec.cpg.graph.statements.IfStatement
- All Implemented Interfaces:
DeclarationHolder,Persistable,IVisitable<de.fraunhofer.aisec.cpg.graph.Node>
public class IfStatement extends Statement
Represents a condition control flow statement, usually indicating by
If.-
Nested Class Summary
Nested classes/interfaces inherited from class de.fraunhofer.aisec.cpg.graph.Node
de.fraunhofer.aisec.cpg.graph.Node.Companion -
Field Summary
Fields inherited from class de.fraunhofer.aisec.cpg.graph.Node
Companion, EMPTY_NAME, TO_STRING_STYLE -
Constructor Summary
Constructors Constructor Description IfStatement() -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object o)ExpressiongetCondition()DeclarationgetConditionDeclaration()StatementgetElseStatement()StatementgetInitializerStatement()StatementgetThenStatement()inthashCode()booleanisConstExpression()voidsetCondition(Expression condition)voidsetConditionDeclaration(Declaration conditionDeclaration)voidsetConstExpression(boolean constExpression)voidsetElseStatement(Statement elseStatement)voidsetInitializerStatement(Statement initializerStatement)voidsetThenStatement(Statement thenStatement)java.lang.StringtoString()Methods inherited from class de.fraunhofer.aisec.cpg.graph.statements.Statement
addDeclaration, getDeclarations, getLocals, getLocalsPropertyEdge, removeLocal, setLocalsMethods inherited from class de.fraunhofer.aisec.cpg.graph.Node
addAnnotations, addNextDFG, addNextEOG, addPrevDFG, addPrevEOG, addTypedef, clearNextEOG, disconnectFromGraph, getAnnotations, getArgumentIndex, getCode, getComment, getFile, getId, getLocation, getName, getNextDFG, getNextEOG, getNextEOGEdges, getPrevDFG, getPrevEOG, getPrevEOGEdges, getTypedefs, isImplicit, isInferred, removeNextDFG, removePrevDFG, removePrevEOGEntry, setAnnotations, setArgumentIndex, setCode, setComment, setFile, setId, setImplicit, setInferred, setLocation, setName, setNextDFG, setNextEOG, setNextEOGEdges, setPrevDFG, setPrevEOG, setPrevEOGEdges, setTypedefsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface de.fraunhofer.aisec.cpg.graph.DeclarationHolder
addIfNotContains, addIfNotContains, addIfNotContainsMethods inherited from interface de.fraunhofer.aisec.cpg.processing.IVisitable
accept
-
Constructor Details
-
IfStatement
public IfStatement()
-
-
Method Details
-
getCondition
-
setCondition
-
getInitializerStatement
-
setInitializerStatement
-
getConditionDeclaration
-
setConditionDeclaration
-
isConstExpression
public boolean isConstExpression() -
setConstExpression
public void setConstExpression(boolean constExpression) -
getThenStatement
-
setThenStatement
-
getElseStatement
-
setElseStatement
-
toString
public java.lang.String toString()- Overrides:
toStringin classde.fraunhofer.aisec.cpg.graph.Node
-
equals
public boolean equals(java.lang.Object o) -
hashCode
public int hashCode()
-