Package ghidra.app.services
Interface DataTypeQueryService
- All Known Subinterfaces:
DataTypeManagerService
public interface DataTypeQueryService
Simplified datatype service interface to provide query capabilities
to a set of open datatype managers
-
Method Summary
Modifier and TypeMethodDescriptiongetDataType
(String filterText) Obtain the preferred datatype which corresponds to the specified datatype specified by filterText.Gets the sorted list of all datatypes known by this service via it's owned DataTypeManagers.
-
Method Details
-
getSortedDataTypeList
Gets the sorted list of all datatypes known by this service via it's owned DataTypeManagers. This method can be called frequently, as the underlying data is indexed and only updated as changes are made. The sorting of the list is done using theDataTypeComparator
whose primary sort is based upon theDataTypeNameComparator
.- Returns:
- the sorted list of known data types.
-
getDataType
Obtain the preferred datatype which corresponds to the specified datatype specified by filterText. A tool-based service provider may prompt the user to select a datatype if more than one possibility exists.- Parameters:
filterText
- If not null, this text filters the visible data types to only show those that start with the given text- Returns:
- the preferred data type (e.g., chosen by the user) or null if no match found or selection was cancelled by user.
-