Package ghidra.program.model.lang
Interface DataTypeProviderContext
public interface DataTypeProviderContext
Interface for objects that can provide new instances of dataTypes
-
Method Summary
Modifier and TypeMethodDescriptiongetDataTypeComponent
(int offset) Get one data type from buffer at the current position plus offset.getDataTypeComponents
(int start, int end) Get an array of DataTypeComponents that begin at start or before end.getUniqueName
(String baseName) Get a unique name for a data type given a prefix name
-
Method Details
-
getUniqueName
Get a unique name for a data type given a prefix name- Parameters:
baseName
- prefix for unique name- Returns:
- a unique data type name
-
getDataTypeComponent
Get one data type from buffer at the current position plus offset.- Parameters:
offset
- the displacement from the current position.- Returns:
- the data type at offset from the current position.
- Throws:
IndexOutOfBoundsException
- if offset is negative
-
getDataTypeComponents
Get an array of DataTypeComponents that begin at start or before end. DataTypes that begin before start are not returned DataTypes that begin before end, but terminate after end ARE returned- Parameters:
start
- start offsetend
- end offset- Returns:
- array of DataTypes that exist between start and end.
-