Package ghidra.app.services
Interface DataTypeReferenceFinder
-
- All Superinterfaces:
ExtensionPoint
public interface DataTypeReferenceFinder extends ExtensionPoint
An interface for extension points to implement. Implementations know how to find data type references.Implementation class names must end with DataTypeReferenceFinder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
findReferences(Program program, Composite composite, java.lang.String fieldName, java.util.function.Consumer<DataTypeReference> callback, TaskMonitor monitor)
Finds references in the current program to specific field of the givenComposite
type in a manner appropriate with the given implementation.void
findReferences(Program program, DataType dataType, java.util.function.Consumer<DataTypeReference> callback, TaskMonitor monitor)
Finds references in the current program in a manner appropriate with the given implementation.
-
-
-
Method Detail
-
findReferences
void findReferences(Program program, DataType dataType, java.util.function.Consumer<DataTypeReference> callback, TaskMonitor monitor) throws CancelledException
Finds references in the current program in a manner appropriate with the given implementation.Note that this operation is multi-threaded and that results will be delivered as they are found via the
callback
.- Parameters:
program
- the program to searchdataType
- the type for which to searchcallback
- the callback to be called when a reference is foundmonitor
- the monitor that allows for progress and cancellation- Throws:
CancelledException
- if the operation was cancelled
-
findReferences
void findReferences(Program program, Composite composite, java.lang.String fieldName, java.util.function.Consumer<DataTypeReference> callback, TaskMonitor monitor) throws CancelledException
Finds references in the current program to specific field of the givenComposite
type in a manner appropriate with the given implementation.Note that this operation is multi-threaded and that results will be delivered as they are found via the
callback
.- Parameters:
program
- the program to searchcomposite
- the type containing the field for which to searchfieldName
- the name of the composite's field for which to searchcallback
- the callback to be called when a reference is foundmonitor
- the monitor that allows for progress and cancellation- Throws:
CancelledException
- if the operation was cancelled
-
-