Package org.jtool.cfg
Class CCFGEntry
java.lang.Object
org.jtool.graph.GraphElement
org.jtool.graph.GraphNode
org.jtool.cfg.CFGNode
org.jtool.cfg.CCFGEntry
The entry node for a CCFG for a class or an interface.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jtool.cfg.CFGNode
CFGNode.Kind
-
Field Summary
Fields inherited from class org.jtool.graph.GraphNode
id, incomingEdges, outgoingEdges
-
Constructor Summary
ConstructorsConstructorDescriptionCCFGEntry
(JavaClass jclass, CFGNode.Kind kind) Creates a new object that represents an entry for a class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a CCFG for an inner class to the class associated with this entry node.void
Adds a CFG for a field to the class associated with this entry node.void
Adds a CFG for a method to the class associated with this entry node.getCCFG()
Returns the CCFG that has this entry nodeReturns CCFGs for the inner classes within the class associated with this entry node.Returns CFGs for the fields within the class associated with this entry node.Returns the class associated with this entry node.Returns CFGs for the methods within the class associated with this entry node.Returns the fully-qualified name of the CCFG that has this entry nodevoid
Associates a CCFG with this entry node.toString()
Obtains information on this 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
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
-
Constructor Details
-
CCFGEntry
Creates a new object that represents an entry for a class. This method is not intended to be invoked by clients.- Parameters:
jclass
- the class associated with this entry nodekind
- the kind of this node
-
-
Method Details
-
getJavaClass
Returns the class associated with this entry node.- Returns:
- the associated class
-
getQualifiedName
Returns the fully-qualified name of the CCFG that has this entry node- Returns:
- the fully-qualified name of the CCFG
-
setCCFG
Associates a CCFG with this entry node. This method is not intended to be invoked by clients.- Parameters:
ccfg
- the CCFG to be associated
-
getCCFG
Returns the CCFG that has this entry node- Returns:
- the CCFG
-
addMethod
Adds a CFG for a method to the class associated with this entry node. This method is not intended to be invoked by clients.- Parameters:
cfg
- the CFG to be added
-
getMethods
Returns CFGs for the methods within the class associated with this entry node.- Returns:
- the collection of the CFGs for the methods
-
addField
Adds a CFG for a field to the class associated with this entry node. This method is not intended to be invoked by clients.- Parameters:
cfg
- the CFG to be added
-
getFields
Returns CFGs for the fields within the class associated with this entry node.- Returns:
- the collection of the CFGs for the fields
-
addClass
Adds a CCFG for an inner class to the class associated with this entry node. This method is not intended to be invoked by clients.- Parameters:
ccfg
- the CCFG to be added
-
getClasses
Returns CCFGs for the inner classes within the class associated with this entry node.- Returns:
- the collection of the CCFGs for the inner classes
-
toString
Obtains information on this node.
-