Class ASMUMLModelElement
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.nativelib.ASMOclType
org.eclipse.m2m.atl.engine.vm.nativelib.ASMModelElement
org.eclipse.m2m.atl.drivers.emf4atl.ASMEMFModelElement
org.eclipse.m2m.atl.drivers.uml24atl.ASMUMLModelElement
The UMLspecific implementation for
ASMModelElement
.-
Field Summary
Fields inherited from class org.eclipse.m2m.atl.drivers.emf4atl.ASMEMFModelElement
object
Fields inherited from class org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclType
myType
Fields inherited from class org.eclipse.m2m.atl.engine.vm.nativelib.ASMNativeObject
nativeImpl
-
Constructor Summary
ModifierConstructorDescriptionprotected
ASMUMLModelElement
(Map modelElements, ASMModel model, org.eclipse.emf.ecore.EObject object) Creates a newASMUMLModelElement
. -
Method Summary
Modifier and TypeMethodDescriptioninvoke
(StackFrame frame, String opName, List arguments) Searches for Operation opName in this context and invokes it if found.invokeSuper
(StackFrame frame, String opName, List arguments) Searches for Operation opName in the superclass context and invokes it if found.static ASMModelElement
newInstance
(StackFrame frame, ASMUMLModelElement self) Creates a new instance of the given type.static ASMModelElement
newInstanceIn
(StackFrame frame, ASMUMLModelElement self, ASMString modelName) Creates a new instance of a given type.realInvoke
(StackFrame frame, String opName, List arguments) Immediate invocation of the operation.protected static void
registerMOFOperation
(String modelelementName, String methodName, Class[] args) Registers MOF operations.Methods inherited from class org.eclipse.m2m.atl.drivers.emf4atl.ASMEMFModelElement
allInstances, allInstancesFrom, asm2EMF, conformsTo, emf2ASM, finalize, findMethod, get, getEENumLiteral, getInstanceById, getObject, getProperty, getPropertyType, newInstance, newInstanceIn, refImmediateComposite, set, unset
Methods inherited from class org.eclipse.m2m.atl.engine.vm.nativelib.ASMModelElement
createNewInstance, getAcquaintance, getMetaobject, getModel, getName, lookupElementExtended, otherEnd, setMetaobject, setName, toString
Methods inherited from class org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclType
addSupertype, conformsTo, getName, getSupertypes, getVMOperations, registerHelperAttribute, registerVMOperation, registerWeavingHelper
Methods inherited from class org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclAny
asBag, asSequence, asSet, check, debug, findOperation, findOperation, getHelper, getNamedTargetFromSource, getOclAnyType, getType, invoke, isHelper, oclIsKindOf, oclIsTypeOf, oclIsUndefined, oclType, operatorEQ, operatorNE, output, refGetValue, refImmediateComposite, refInvokeOperation, refSetValue, refUnsetValue, setType, toString
Methods inherited from class org.eclipse.m2m.atl.engine.vm.nativelib.ASMNativeObject
getNativeImpl
-
Constructor Details
-
ASMUMLModelElement
protected ASMUMLModelElement(Map modelElements, ASMModel model, org.eclipse.emf.ecore.EObject object) Creates a newASMUMLModelElement
.- Parameters:
modelElements
- the model elements mapmodel
- the modelobject
- theEObject
-
-
Method Details
-
registerMOFOperation
protected static void registerMOFOperation(String modelelementName, String methodName, Class[] args) throws Exception Registers MOF operations.- Parameters:
modelelementName
- the model element namemethodName
- the method nameargs
- the method arguments types- Throws:
Exception
-
newInstance
Creates a new instance of the given type.- Parameters:
frame
- the frame contextself
- the type- Returns:
- the new instance
-
newInstanceIn
public static ASMModelElement newInstanceIn(StackFrame frame, ASMUMLModelElement self, ASMString modelName) Creates a new instance of a given type.- Parameters:
frame
- the frame contextself
- the given typemodelName
- the model where to create the element- Returns:
- the new element
-
invoke
Searches for Operation opName in this context and invokes it if found.- Overrides:
invoke
in classASMEMFModelElement
- Parameters:
frame
- the environmentopName
- the name of the operation to invoke or delayarguments
- arguments of the method- Returns:
- The Operation's result or null
- See Also:
-
invokeSuper
Searches for Operation opName in the superclass context and invokes it if found.- Overrides:
invokeSuper
in classASMEMFModelElement
- Parameters:
frame
- The current stack frameopName
- The Operation's namearguments
- The operation arguments, excluding self- Returns:
- The Operation's result or null
- See Also:
-
realInvoke
Immediate invocation of the operation.- Parameters:
frame
- the environmentopName
- the name of the operation to invokearguments
- the arguments of the operation- Returns:
- ASMOclAny
-