Class VariableProxy

java.lang.Object
ghidra.app.util.viewer.proxy.ProxyObj<Variable>
ghidra.app.util.viewer.proxy.VariableProxy

public class VariableProxy extends ProxyObj<Variable>
Stores information about a variable in a program such that the variable can be retrieved when needed.
  • Constructor Details

    • VariableProxy

      public VariableProxy(ListingModel model, Program program, Address locationAddr, Function fun, Variable var)
      Constructs a proxy for a variable.
      Parameters:
      model - listing model
      program - the program containing the variable.
      locationAddr - the listing address at which the function exists or was inferred via reference
      fun - the function containing the variable.
      var - the variable to proxy.
  • Method Details

    • getObject

      public Variable getObject()
      Description copied from class: ProxyObj
      Returns the object that this proxy represents or null if the object no longer exists.
      Specified by:
      getObject in class ProxyObj<Variable>
      Returns:
      the object that this proxy represents or null if the object no longer exists.
    • getLocationAddress

      public Address getLocationAddress()
    • getFunctionAddress

      public Address getFunctionAddress()
    • contains

      public boolean contains(Address a)
      Description copied from class: ProxyObj
      Returns true if the proxy object of this class contains the given address.
      Specified by:
      contains in class ProxyObj<Variable>
      Parameters:
      a - the address
      Returns:
      true if the proxy object of this class contains the given address.