Package ghidra.app.context
Interface DataLocationListContext
-
public interface DataLocationListContextContext mix-in interface that ActionContexts can implement if they can provide a list ofDataobject'sProgramLocation's.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetCount()Returns the number ofDataobjects for the current action context.java.util.List<ProgramLocation>getDataLocationList()Returns a list of the locations of the currentDataobjects in the current action context.java.util.List<ProgramLocation>getDataLocationList(java.util.function.Predicate<Data> filter)Returns a list of the locations of the currentDataobjects in the current action context that pass the given filter.ProgramgetProgram()Returns the program for the current action context.
-
-
-
Method Detail
-
getCount
int getCount()
Returns the number ofDataobjects for the current action context.- Returns:
- the number of
Dataobjects for the current action context.
-
getDataLocationList
java.util.List<ProgramLocation> getDataLocationList()
Returns a list of the locations of the currentDataobjects in the current action context.- Returns:
- a list of the locations of the current
Dataobjects in the current action context.
-
getDataLocationList
java.util.List<ProgramLocation> getDataLocationList(java.util.function.Predicate<Data> filter)
Returns a list of the locations of the currentDataobjects in the current action context that pass the given filter.- Parameters:
filter- a filter to apply to the current context's Data list,nullimplies all elements match.- Returns:
- a list of the locations of the current
Dataobjects in the current action context that pass the given filter.
-
getProgram
Program getProgram()
Returns the program for the current action context.- Returns:
- the program for the current action context.
-
-