Interface ICustomOperationAccessor

  • All Known Implementing Classes:
    Project

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

      • 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:
        java.lang.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:
        java.lang.IndexOutOfBoundsException - if index<0 || index>=getImportsCount()