Package ghidra.app.plugin.core.data
Class ProgramProviderContext
- java.lang.Object
-
- ghidra.app.plugin.core.data.ProgramProviderContext
-
- All Implemented Interfaces:
DataTypeProviderContext
public class ProgramProviderContext extends java.lang.Object implements DataTypeProviderContext
-
-
Constructor Summary
Constructors Constructor Description ProgramProviderContext(Program program, Address addr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataTypeComponent
getDataTypeComponent(int offset)
Get one data type from buffer at the current position plus offset.DataTypeComponent[]
getDataTypeComponents(int start, int end)
Get an array of DataTypeComponents that begin at start or before end.java.lang.String
getUniqueName(java.lang.String baseName)
Get a unique name for a data type given a prefix name
-
-
-
Method Detail
-
getDataTypeComponents
public DataTypeComponent[] getDataTypeComponents(int start, int end)
Description copied from interface:DataTypeProviderContext
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- Specified by:
getDataTypeComponents
in interfaceDataTypeProviderContext
- Parameters:
start
- start offsetend
- end offset- Returns:
- array of DataTypes that exist between start and end.
-
getDataTypeComponent
public DataTypeComponent getDataTypeComponent(int offset)
Description copied from interface:DataTypeProviderContext
Get one data type from buffer at the current position plus offset.- Specified by:
getDataTypeComponent
in interfaceDataTypeProviderContext
- Parameters:
offset
- the displacement from the current position.- Returns:
- the data type at offset from the current position.
-
getUniqueName
public java.lang.String getUniqueName(java.lang.String baseName)
Description copied from interface:DataTypeProviderContext
Get a unique name for a data type given a prefix name- Specified by:
getUniqueName
in interfaceDataTypeProviderContext
- Parameters:
baseName
- prefix for unique name- Returns:
- a unique data type name
-
-