Interface ICustomOperationAccessor
- All Known Implementing Classes:
Project
public interface ICustomOperationAccessor
Provides access to custom operations.
- Author:
- Holger Eichelberger
-
Method Summary
Modifier and TypeMethodDescriptiongetImport(int index) Returns the project import specified byindex.intReturns the number of imports.getOperation(int index) Returns the operation specified byindex.intReturns the number of operations.getType()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
Returns the operation specified byindex.- Parameters:
index- a 0-based index specifying the operation to be returned- Returns:
- the operation
- Throws:
IndexOutOfBoundsException- ifindex<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
Returns the project import specified byindex.- Parameters:
index- a 0-based index specifying the import to be returned- Returns:
- the project import
- Throws:
IndexOutOfBoundsException- ifindex<0 || index>=getImportsCount()
-