Package ghidra.app.context
Class ProgramLocationActionContext
- java.lang.Object
 - 
- docking.ActionContext
 - 
- ghidra.app.context.ProgramActionContext
 - 
- ghidra.app.context.ProgramLocationActionContext
 
 
 
 
- 
- Direct Known Subclasses:
 NavigatableActionContext
public class ProgramLocationActionContext extends ProgramActionContext
 
- 
- 
Field Summary
- 
Fields inherited from class ghidra.app.context.ProgramActionContext
program 
 - 
 
- 
Constructor Summary
Constructors Constructor Description ProgramLocationActionContext(ComponentProvider provider, Program program, ProgramLocation location, ProgramSelection selection, ProgramSelection highlight) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AddressgetAddress()CodeUnitgetCodeUnit()Returns the code unit containing the action's program location or nullProgramSelectiongetHighlight()ProgramLocationgetLocation()ProgramSelectiongetSelection()booleanhasHighlight()booleanhasSelection()- 
Methods inherited from class ghidra.app.context.ProgramActionContext
getProgram 
- 
Methods inherited from class docking.ActionContext
getComponentProvider, getContextObject, getGlobalContext, getMouseEvent, getSourceComponent, getSourceObject, setContextObject, setMouseEvent, setSourceObject, toString 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
ProgramLocationActionContext
public ProgramLocationActionContext(ComponentProvider provider, Program program, ProgramLocation location, ProgramSelection selection, ProgramSelection highlight)
 
 - 
 
- 
Method Detail
- 
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()
 
 - 
 
 -