Package org.jtool.cfg
Class CFGEntry
java.lang.Object
org.jtool.graph.GraphElement
org.jtool.graph.GraphNode
org.jtool.cfg.CFGNode
org.jtool.cfg.CFGEntry
- Direct Known Subclasses:
CFGFieldEntry
,CFGMethodEntry
An entry node for a CFG.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jtool.cfg.CFGNode
CFGNode.Kind
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final QualifiedName
The fully-qualified name of the CFG that has this entry node.Fields inherited from class org.jtool.graph.GraphNode
id, incomingEdges, outgoingEdges
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CFGEntry
(org.eclipse.jdt.core.dom.ASTNode node, CFGNode.Kind kind, QualifiedName fqn) Creates a new object that represents an entry. -
Method Summary
Modifier and TypeMethodDescriptiongetCFG()
Returns the CFG that has this entry nodeReturns the fully-qualified name of the CFG that has this entry nodeReturns the signature of the CFG that has this entry nodevoid
Associates a CFG with this entry node.Methods inherited from class org.jtool.cfg.CFGNode
equals, equals, getASTNode, getIncomingFalseFlows, getIncomingFlows, getIncomingTrueFlows, getKind, getNumOfPredecessors, getNumOfSuccessors, getOutgoingFalseFlow, getOutgoingFlows, getOutgoingTrueFlow, getPDGNode, getPredecessors, getSuccessors, hasDefVariable, hashCode, hasUseVariable, isActual, isActualIn, isActualOut, isAssert, isAssignment, isBranch, isBreak, isCatchClause, isClassEntry, isConstructorEntry, isContinue, isDo, isDummy, isEnhancedFor, isEntry, isEnumConstantEntry, isEnumEntry, isExit, isExpression, isFieldDeclaration, isFieldEntry, isFinallyClause, isFor, isFormal, isFormalIn, isFormalOut, isIf, isInitializerEntry, isInterfaceEntry, isJoin, isLabel, isLiteral, isLocalDeclaration, isLoop, isMerge, isMethodCall, isMethodEntry, isNextToBranch, isParameter, isReceiver, isReturn, isSelection, isStatement, isStatement, isStatementNotParameter, isSwitch, isSwitchCase, isSwitchDefault, isSynchronized, isThrow, isThrowClause, isTry, isWhile, print, resetId, setASTNode, setKind, setPDGNode, sortNodes, sortNodesInverse, toString
Methods inherited from class org.jtool.graph.GraphNode
addIncomingEdge, addIncomingEdges, addOutgoingEdge, addOutgoingEdges, clear, equals, equals, getDstNodes, getId, getIncomingEdges, getOutgoingEdges, getSrcNodes, removeIncomingEdge, removeOutgoingEdge, setId, sortGraphNode
Methods inherited from class org.jtool.graph.GraphElement
difference, equals, getIdString, intersection, subset, subsetEqual, union
-
Field Details
-
fqn
The fully-qualified name of the CFG that has this entry node.
-
-
Constructor Details
-
CFGEntry
Creates a new object that represents an entry. This method is not intended to be invoked by clients.- Parameters:
node
- the ASt node corresponding to this nodekind
- the kind of this nodefqn
- the fully-qualified name of the CFG that has this entry node
-
-
Method Details
-
setCFG
Associates a CFG with this entry node. This method is not intended to be invoked by clients.- Parameters:
cfg
- the CFG to be associated
-
getCFG
Returns the CFG that has this entry node- Returns:
- the CFG
-
getSignature
Returns the signature of the CFG that has this entry node- Returns:
- the signature of the CFG
-
getQualifiedName
Returns the fully-qualified name of the CFG that has this entry node- Returns:
- the fully-qualified name of the CFG
-