Package org.jtool.cfg

Class CFGFieldEntry


public class CFGFieldEntry extends CFGEntry
An entry node for a CFG for a field or an enum constant.
  • Constructor Details

    • CFGFieldEntry

      public CFGFieldEntry(JavaField jfield, CFGNode.Kind kind)
      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 node
      kind - the kind of this node
  • Method Details

    • getJavaField

      public JavaField getJavaField()
      Returns the filed associated with this entry node.
      Returns:
      the associated field
    • setDeclarationNode

      public void setDeclarationNode(CFGStatement node)
      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

      public CFGStatement 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

      public JVariableReference getDefField()
      Returns a variable corresponding to the field associated with this entry node.
      Returns:
      the reference to this field
    • getUseFields

      public List<JVariableReference> getUseFields()
      Returns variables used in the declaration of the field associated with this entry node.
      Returns:
      the collection of the used references
    • toString

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