Package org.jtool.cfg
Class CFGFieldEntry
java.lang.Object
org.jtool.graph.GraphElement
org.jtool.graph.GraphNode
org.jtool.cfg.CFGNode
org.jtool.cfg.CFGEntry
org.jtool.cfg.CFGFieldEntry
An entry node for a CFG for a field or an enum constant.
-
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
ConstructorsConstructorDescriptionCFGFieldEntry
(JavaField jfield, CFGNode.Kind kind) Creates a new object that represents an entry for a field. -
Method Summary
Modifier and TypeMethodDescriptionReturns the CFG node for the declaration of the field associated with this entry node.Returns a variable corresponding to the field associated with this entry node.Returns the filed associated with this entry node.Returns variables used in the declaration of the field associated with this entry node.void
Sets the CFG node for the declaration of the field associated with this entry node.toString()
Obtains information on this node.Methods inherited from class org.jtool.cfg.CFGEntry
getCFG, getQualifiedName, getSignature, setCFG
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
-
CFGFieldEntry
Creates a new object that represents an entry for a field. This method is not intended to be invoked by clients.- Parameters:
jfield
- the field associated with this entry nodekind
- the kind of this node
-
-
Method Details
-
getJavaField
Returns the filed associated with this entry node.- Returns:
- the associated field
-
setDeclarationNode
Sets the CFG node for the declaration of the field associated with this entry node. This method is not intended to be invoked by clients.- Parameters:
node
- the CFG node of the field declaration to be set
-
getDeclarationNode
Returns the CFG node for the declaration of the field associated with this entry node.- Returns:
- the CFG node of the field declaration
-
getDefField
Returns a variable corresponding to the field associated with this entry node.- Returns:
- the reference to this field
-
getUseFields
Returns variables used in the declaration of the field associated with this entry node.- Returns:
- the collection of the used references
-
toString
Obtains information on this node.
-