Package ghidra.app.context
Class ProgramLocationActionContext
java.lang.Object
docking.DefaultActionContext
ghidra.app.context.ProgramActionContext
ghidra.app.context.ProgramLocationActionContext
- All Implemented Interfaces:
- ActionContext,- FunctionSupplierContext
- Direct Known Subclasses:
- NavigatableActionContext
public class ProgramLocationActionContext
extends ProgramActionContext
implements FunctionSupplierContext
- 
Field SummaryFields inherited from class ghidra.app.context.ProgramActionContextprogram
- 
Constructor SummaryConstructorsConstructorDescriptionProgramLocationActionContext(ComponentProvider provider, Program program, ProgramLocation location, ProgramSelection selection, ProgramSelection highlight) 
- 
Method SummaryModifier and TypeMethodDescriptionReturns the code unit containing the action's program location or nullprotected FunctionReturns the set of functions that this context object can supply.booleanReturns true if this context can supply one or more functions.booleanbooleanMethods inherited from class ghidra.app.context.ProgramActionContextgetProgramMethods inherited from class docking.DefaultActionContextgetComponentProvider, getContextObject, getEventClickModifiers, getMouseEvent, getSourceComponent, getSourceObject, hasAnyEventClickModifiers, setContextObject, setEventClickModifiers, setMouseEvent, setSourceComponent, setSourceObject, toStringMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface docking.ActionContextgetComponentProvider, getContextObject, getEventClickModifiers, getMouseEvent, getSourceComponent, getSourceObject, hasAnyEventClickModifiers, setContextObject, setEventClickModifiers, setMouseEvent, setSourceComponent, setSourceObject
- 
Constructor Details- 
ProgramLocationActionContextpublic ProgramLocationActionContext(ComponentProvider provider, Program program, ProgramLocation location, ProgramSelection selection, ProgramSelection highlight) 
 
- 
- 
Method Details- 
getLocation- Returns:
- Returns the program location.
 
- 
getSelection- Returns:
- Returns the program selection.
 
- 
getHighlight
- 
getAddress- Returns:
- address corresponding to the action's program location or null if program location is null.
 
- 
getCodeUnitReturns the code unit containing the action's program location or null- Returns:
- the code unit containing the action's program location or null
 
- 
hasSelectionpublic boolean hasSelection()
- 
hasHighlightpublic boolean hasHighlight()
- 
hasFunctionspublic boolean hasFunctions()Description copied from interface:FunctionSupplierContextReturns true if this context can supply one or more functions.- Specified by:
- hasFunctionsin interface- FunctionSupplierContext
- Returns:
- true if this context can supply one or more functions
 
- 
getFunctionsDescription copied from interface:FunctionSupplierContextReturns the set of functions that this context object can supply.- Specified by:
- getFunctionsin interface- FunctionSupplierContext
- Returns:
- the set of functions that this context object can supply
 
- 
getFunctionForLocation
 
-