Class ProgramLocationActionContext

All Implemented Interfaces:
ActionContext, FunctionSupplierContext
Direct Known Subclasses:
NavigatableActionContext

public class ProgramLocationActionContext extends ProgramActionContext implements FunctionSupplierContext
  • Constructor Details

  • Method Details

    • getLocation

      public ProgramLocation getLocation()
      Returns:
      Returns the program location.
    • getSelection

      public ProgramSelection getSelection()
      Returns:
      Returns the program selection.
    • getHighlight

      public ProgramSelection getHighlight()
    • getAddress

      public Address getAddress()
      Returns:
      address corresponding to the action's program location or null if program location is null.
    • getCodeUnit

      public CodeUnit getCodeUnit()
      Returns the code unit containing the action's program location or null
      Returns:
      the code unit containing the action's program location or null
    • hasSelection

      public boolean hasSelection()
    • hasHighlight

      public boolean hasHighlight()
    • hasFunctions

      public boolean hasFunctions()
      Description copied from interface: FunctionSupplierContext
      Returns true if this context can supply one or more functions.
      Specified by:
      hasFunctions in interface FunctionSupplierContext
      Returns:
      true if this context can supply one or more functions
    • getFunctions

      public Set<Function> getFunctions()
      Description copied from interface: FunctionSupplierContext
      Returns the set of functions that this context object can supply.
      Specified by:
      getFunctions in interface FunctionSupplierContext
      Returns:
      the set of functions that this context object can supply