Package org.jtool.cfg

Class CCFGEntry


public class CCFGEntry extends CFGNode
The entry node for a CCFG for a class or an interface.
  • Constructor Details

    • CCFGEntry

      public CCFGEntry(JavaClass jclass, CFGNode.Kind kind)
      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 node
      kind - the kind of this node
  • Method Details

    • getJavaClass

      public JavaClass getJavaClass()
      Returns the class associated with this entry node.
      Returns:
      the associated class
    • getQualifiedName

      public QualifiedName getQualifiedName()
      Returns the fully-qualified name of the CCFG that has this entry node
      Returns:
      the fully-qualified name of the CCFG
    • setCCFG

      public void setCCFG(CCFG ccfg)
      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

      public CCFG getCCFG()
      Returns the CCFG that has this entry node
      Returns:
      the CCFG
    • addMethod

      public void addMethod(CFG cfg)
      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

      public Set<CFG> getMethods()
      Returns CFGs for the methods within the class associated with this entry node.
      Returns:
      the collection of the CFGs for the methods
    • addField

      public void addField(CFG cfg)
      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

      public Set<CFG> getFields()
      Returns CFGs for the fields within the class associated with this entry node.
      Returns:
      the collection of the CFGs for the fields
    • addClass

      public void addClass(CCFG ccfg)
      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

      public Set<CCFG> 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

      public String toString()
      Obtains information on this node.
      Overrides:
      toString in class CFGNode
      Returns:
      the string representing the information