Package org.jtool.cfg

Class JUncoveredFieldReference


public class JUncoveredFieldReference extends JFieldReference
An class that represents a reference to a field, which is uncovered in a called method.
  • Constructor Details

    • JUncoveredFieldReference

      public JUncoveredFieldReference(org.eclipse.jdt.core.dom.ASTNode node, String className, String name, String referenceForm, String type, boolean primitive, int modifiers, boolean inProject, Set<CFGStatement> holdingNodes)
      Creates a new object that represents a reference to a field. This constructor is not intended to be invoked by clients.
      Parameters:
      node - the AST node corresponding to this reference
      className - the name of a class declaring the referenced field
      name - the name of the referenced field
      referenceForm - the form of this reference
      type - the type of the referenced field
      primitive - true if the type of the referenced field is primitive, otherwise false
      modifiers - the modifier information on the referenced field
      inProject - true if the referenced field exists in the target project, otherwise false
      holdingNodes - CFG nodes that hold this uncovered field reference
  • Method Details

    • getHoldingNodes

      public Set<CFGStatement> getHoldingNodes()
      Returns the CFG nodes that hold this uncovered field reference.
      Returns:
      the collection of the nodes
    • isUncoveredFieldReference

      public boolean isUncoveredFieldReference()
      Tests if this is a reference to a field, which is uncovered in a called method.
      Overrides:
      isUncoveredFieldReference in class JReference
      Returns:
      true if this is an uncovered field reference, otherwise false