Package org.jtool.cfg

Class JVariableReference

java.lang.Object
org.jtool.cfg.JReference
org.jtool.cfg.JVariableReference
Direct Known Subclasses:
JFieldReference, JLocalVarReference

public class JVariableReference extends JReference
A class that represents a reference to a variable.
  • Constructor Details

    • JVariableReference

      protected JVariableReference(org.eclipse.jdt.core.dom.ASTNode node)
      Creates a new object that represents a reference to a variable. This constructor is not intended to be invoked by clients.
      Parameters:
      node - AST node corresponding to this reference
  • Method Details

    • setProperties

      protected void setProperties(org.eclipse.jdt.core.dom.ASTNode node, String name, String type)
      Sets the properties of this variable reference.
      Parameters:
      node - the AST node for this variable reference
      name - the name of this variable reference
      type - the type of the referenced variable
    • isFinal

      public boolean isFinal()
      Tests if this is a reference to a final method.
      Returns:
      true if this is a final method reference, otherwise false
    • getPrefix

      public JVariableReference getPrefix()
      Returns a prefix reference located prior to this reference.
      Returns:
      the prefix reference
    • toString

      public String toString()
      Obtains information on this variable reference.
      Overrides:
      toString in class Object
      Returns:
      the string representing the information