Interface ICustomOperationAccessor

All Known Implementing Classes:
Project

public interface ICustomOperationAccessor
Provides access to custom operations.
Author:
Holger Eichelberger
  • Method Summary

    Modifier and Type
    Method
    Description
    getImport(int index)
    Returns the project import specified by index.
    int
    Returns the number of imports.
    getOperation(int index)
    Returns the operation specified by index.
    int
    Returns the number of operations.
    Returns the (pseudo) datatype of this accessor, the operand type for all accessible custom operations.
  • Method Details

    • getType

      IDatatype getType()
      Returns the (pseudo) datatype of this accessor, the operand type for all accessible custom operations.
      Returns:
      the datatype
    • getOperation

      CustomOperation getOperation(int index)
      Returns the operation specified by index.
      Parameters:
      index - a 0-based index specifying the operation to be returned
      Returns:
      the operation
      Throws:
      IndexOutOfBoundsException - if index<0 || index>=getOperationCount()
    • getOperationCount

      int getOperationCount()
      Returns the number of operations.
      Returns:
      the number of operations
    • getImportsCount

      int getImportsCount()
      Returns the number of imports.
      Returns:
      the number of imports
    • getImport

      ProjectImport getImport(int index)
      Returns the project import specified by index.
      Parameters:
      index - a 0-based index specifying the import to be returned
      Returns:
      the project import
      Throws:
      IndexOutOfBoundsException - if index<0 || index>=getImportsCount()