Class FunctionProxy

java.lang.Object
ghidra.app.util.viewer.proxy.ProxyObj<Function>
ghidra.app.util.viewer.proxy.FunctionProxy

public class FunctionProxy extends ProxyObj<Function>
Stores information about a function in a program such that the function can be retrieved when needed. The locationAddr and functionAddr may differ when the function object has been inferred via a reference at the locationAddr.
  • Constructor Details

    • FunctionProxy

      public FunctionProxy(ListingModel model, Program program, Address locationAddr, Function function)
      Construct a proxy for a function
      Parameters:
      model - listing model
      program - the program containing the function
      locationAddr - the listing address at which the function exists or was inferred via reference
      function - the function to proxy
  • Method Details

    • getLocationAddress

      public Address getLocationAddress()
    • getFunctionAddress

      public Address getFunctionAddress()
    • getObject

      public Function 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<Function>
      Returns:
      the object that this proxy represents or null if the object no longer exists.
    • 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<Function>
      Parameters:
      a - the address
      Returns:
      true if the proxy object of this class contains the given address.