Interface ICustomOperationAccessor
-
- All Known Implementing Classes:
Project
public interface ICustomOperationAccessorProvides access to custom operations.- Author:
- Holger Eichelberger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ProjectImportgetImport(int index)Returns the project import specified byindex.intgetImportsCount()Returns the number of imports.CustomOperationgetOperation(int index)Returns the operation specified byindex.intgetOperationCount()Returns the number of operations.IDatatypegetType()Returns the (pseudo) datatype of this accessor, the operand type for all accessible custom operations.
-
-
-
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 byindex.- Parameters:
index- a 0-based index specifying the operation to be returned- Returns:
- the operation
- Throws:
java.lang.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
ProjectImport getImport(int index)
Returns the project import specified byindex.- Parameters:
index- a 0-based index specifying the import to be returned- Returns:
- the project import
- Throws:
java.lang.IndexOutOfBoundsException- ifindex<0 || index>=getImportsCount()
-
-