Package ghidra.program.model.lang

# Interface DataTypeProviderContext

public interface DataTypeProviderContext
Interface for objects that can provide new instances of dataTypes

- ## Method Summary

  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.
  `String`
  `getUniqueName(String baseName)`
  Get a unique name for a data type given a prefix name

- ## Method Details

  - ### getUniqueName

    String getUniqueName(String baseName)
    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

    DataTypeComponent getDataTypeComponent(int offset)
    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

    DataTypeComponent[] getDataTypeComponents(int start, int end)
    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 offset
      `end` - end offset
    Returns:
      array of DataTypes that exist between start and end.