Package org.eclipse.m2m.atl.engine.vm
Class NativeOperation
java.lang.Object
org.eclipse.m2m.atl.engine.vm.nativelib.ASMNativeObject
org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclAny
org.eclipse.m2m.atl.engine.vm.Operation
org.eclipse.m2m.atl.engine.vm.NativeOperation
- Direct Known Subclasses:
ClassNativeOperation
,InstanceNativeOperation
The native operations definition class.
-
Field Summary
Fields inherited from class org.eclipse.m2m.atl.engine.vm.nativelib.ASMNativeObject
nativeImpl
-
Constructor Summary
ConstructorDescriptionNativeOperation
(Method method, List parameters, ASMOclType returnType, ASMOclType contextType) NativeOperation constructor. -
Method Summary
Modifier and TypeMethodDescriptionabstract ASMOclAny
exec
(StackFrame frame) protected static ASMOclType
getASMType
(Class pt, boolean allowTypeTranslation) getName()
static void
static void
registerOperations
(ASMOclType t, Class c, boolean allowClassLevel, boolean allowInstanceLevel, boolean allowTypeTranslation, boolean allowDontUseFrame) toString()
Methods inherited from class org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclAny
asBag, asSequence, asSet, check, debug, findOperation, findOperation, getHelper, getNamedTargetFromSource, getOclAnyType, getType, invoke, invoke, invokeSuper, isHelper, oclIsKindOf, oclIsTypeOf, oclIsUndefined, oclType, operatorEQ, operatorNE, output, refGetValue, refImmediateComposite, refImmediateComposite, refInvokeOperation, refSetValue, refUnsetValue, set, setType, toString, unset
Methods inherited from class org.eclipse.m2m.atl.engine.vm.nativelib.ASMNativeObject
getNativeImpl
-
Constructor Details
-
NativeOperation
public NativeOperation(Method method, List parameters, ASMOclType returnType, ASMOclType contextType) NativeOperation constructor. TODO The Method must be static and must have self as a first parameter.- Parameters:
method
-parameters
-returnType
-contextType
-
-
-
Method Details
-
registerOperations
- Parameters:
t
-c
-
-
registerOperations
public static void registerOperations(ASMOclType t, Class c, boolean allowClassLevel, boolean allowInstanceLevel, boolean allowTypeTranslation, boolean allowDontUseFrame) - Parameters:
t
-c
-allowClassLevel
-allowInstanceLevel
-allowTypeTranslation
-allowDontUseFrame
-
-
getASMType
-
getName
-
getContextSignature
- Specified by:
getContextSignature
in classOperation
-
getSignature
- Specified by:
getSignature
in classOperation
-
exec
-
toString
-
getMethod
-
getParameters
- Specified by:
getParameters
in classOperation
-
getReturnType
- Specified by:
getReturnType
in classOperation
-
getContextType
- Specified by:
getContextType
in classOperation
-