org.jnetstream.lang.npl.type
Interface DataOperations
- All Known Subinterfaces:
- DataType
- All Known Implementing Classes:
- AbstractDataType
public interface DataOperations
Interface that defines various operations that can be performed on a
particular data type.
- Author:
- Mark Bednarczyk, Sly Technologies, Inc.
|
Method Summary |
|
doAdd(O operand)
|
|
getNativeCapability(java.lang.Class<O> c)
|
|
getTranslatedCapability(java.lang.Class<O> c)
Returns a set of capabilities that this DataOperations object can perform
on specified data type by use of this interface do* operation. |
getTranslatedCapability
<O extends DataType> java.util.Set<DataOperations.DataOperation> getTranslatedCapability(java.lang.Class<O> c)
- Returns a set of capabilities that this DataOperations object can perform
on specified data type by use of this interface do* operation. Translated
operations are the ones that are performed by calling of one of the methods
supplied by this interface as opposed to java native operations which do
not require a special call, but simply be used directly in java.
- Type Parameters:
O - right operand type- Parameters:
c - class of the right operand
- Returns:
- set of capabilities that this data type can perform on the operand
getNativeCapability
<O extends DataType> java.util.Set<DataOperations.DataOperation> getNativeCapability(java.lang.Class<O> c)
doAdd
<R extends DataType,O extends DataType> R doAdd(O operand)