Package de.fraunhofer.aisec.cpg.graph
Class CaseStatement
- java.lang.Object
-
- de.fraunhofer.aisec.cpg.graph.Node
-
- de.fraunhofer.aisec.cpg.graph.Statement
-
- de.fraunhofer.aisec.cpg.graph.CaseStatement
-
public class CaseStatement extends Statement
Case statement of the formcase expression :that serves as entry point for switch statements, the only allowed substatements are side effekt free primitive expression for the selector to choose from. THe statements executed after the entry are on the same AST hierarchy in the parent compound statement.
-
-
Field Summary
Fields Modifier and Type Field Description ExpressioncaseExpressionPrimitive side effect free statement that has to match with the evaluated selector in SwitchStatement
-
Constructor Summary
Constructors Constructor Description CaseStatement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)ExpressiongetCaseExpression()inthashCode()voidsetCaseExpression(Expression caseExpression)-
Methods inherited from class de.fraunhofer.aisec.cpg.graph.Node
addNextDFG, addPrevDFG, disconnectFromGraph, getArgumentIndex, getCode, getFile, getId, getName, getNextCFG, getNextDFG, getNextEOG, getPrevDFG, getPrevEOG, getRegion, isDummy, isImplicit, removeNextDFG, removePrevDFG, setArgumentIndex, setCode, setComment, setDummy, setFile, setImplicit, setName, setNextDFG, setNextEOG, setPrevDFG, setPrevEOG, setRegion, toString
-
-
-
-
Field Detail
-
caseExpression
public Expression caseExpression
Primitive side effect free statement that has to match with the evaluated selector in SwitchStatement
-
-
Method Detail
-
getCaseExpression
public Expression getCaseExpression()
-
setCaseExpression
public void setCaseExpression(Expression caseExpression)
-
-