Package ghidra.app.util.viewer.proxy

# 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 Summary

  Constructors
  Constructor
  Description
  `FunctionProxy(ListingModel model, Program program, Address locationAddr, Function function)`
  Construct a proxy for a function

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `contains(Address a)`
  Returns true if the proxy object of this class contains the given address.
  `Address`
  `getFunctionAddress()`
  `Address`
  `getLocationAddress()`
  `Function`
  `getObject()`
  Returns the object that this proxy represents or null if the object no longer exists.

  ### Methods inherited from class ghidra.app.util.viewer.proxy.ProxyObj

  `getListingLayoutModel`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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.