Package ghidra.app.context
Interface DataLocationListContext
-
public interface DataLocationListContext
Context mix-in interface that ActionContexts can implement if they can provide a list ofData
object'sProgramLocation
's.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getCount()
Returns the number ofData
objects for the current action context.java.util.List<ProgramLocation>
getDataLocationList()
Returns a list of the locations of the currentData
objects in the current action context.java.util.List<ProgramLocation>
getDataLocationList(java.util.function.Predicate<Data> filter)
Returns a list of the locations of the currentData
objects in the current action context that pass the given filter.Program
getProgram()
Returns the program for the current action context.
-
-
-
Method Detail
-
getCount
int getCount()
Returns the number ofData
objects for the current action context.- Returns:
- the number of
Data
objects for the current action context.
-
getDataLocationList
java.util.List<ProgramLocation> getDataLocationList()
Returns a list of the locations of the currentData
objects in the current action context.- Returns:
- a list of the locations of the current
Data
objects 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 currentData
objects in the current action context that pass the given filter.- Parameters:
filter
- a filter to apply to the current context's Data list,null
implies all elements match.- Returns:
- a list of the locations of the current
Data
objects 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.
-
-