Package org.jtool.cfg
Class CCFG
java.lang.Object
org.jtool.cfg.CCFG
An object storing information on a class control flow graph (CCFG).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a CFG to this CCFG.boolean
boolean
Tests if a given CCFG is equal to this CCFG.Returns a CFG that has a given name.getCFGs()
Return CFGs contained in this CCFG.Returns the entry node of this CCFG.Returns the fully qualified name of this CCFG.int
hashCode()
boolean
isClass()
Tests if this CCFG is created from a class.boolean
isEnum()
Tests if this CCFG is created from an enum class.boolean
Tests if this CCFG is created from an interface.void
print()
Displays information on this graph.void
setEntryNode
(CCFGEntry node) Sets the entry node of this CFG.toString()
Obtains information on this CCFG.
-
Constructor Details
-
CCFG
public CCFG()Creates a new, empty object for storing a CCFG information. This method is not intended to be invoked by clients.
-
-
Method Details
-
setEntryNode
Sets the entry node of this CFG. This method is not intended to be invoked by clients.- Parameters:
node
- the entry node of this CFG
-
getEntryNode
Returns the entry node of this CCFG.- Returns:
- the entry node
-
getQualifiedName
Returns the fully qualified name of this CCFG.- Returns:
- the fully qualified name
-
getCFG
Returns a CFG that has a given name.- Parameters:
fqn
- the fully-qualified name of the CFG to be retrieved- Returns:
- the found CFG, or
null
if no CFG is found
-
add
Adds a CFG to this CCFG. This method is not intended to be invoked by clients.- Parameters:
cfg
- the CFG to be added
-
getCFGs
Return CFGs contained in this CCFG.- Returns:
- the collection of the contained CFGs
-
isClass
public boolean isClass()Tests if this CCFG is created from a class.- Returns:
true
if this CCFG corresponds to a class, otherwisefalse
-
isInterface
public boolean isInterface()Tests if this CCFG is created from an interface.- Returns:
true
if this CCFG corresponds to an interface, otherwisefalse
-
isEnum
public boolean isEnum()Tests if this CCFG is created from an enum class.- Returns:
true
if this CCFG corresponds to an enum, otherwisefalse
-
equals
-
equals
Tests if a given CCFG is equal to this CCFG.- Parameters:
ccfg
- the CCFG to be checked- Returns:
- the
true
if the given CCFG is equal to this CCFG
-
hashCode
public int hashCode() -
print
public void print()Displays information on this graph. -
toString
Obtains information on this CCFG.
-