|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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
public class ASMEMFModelElement
The EMF implementation for ASMModelElement.
Field Summary | |
---|---|
protected org.eclipse.emf.ecore.EObject |
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 | |
---|---|
protected |
ASMEMFModelElement(java.util.Map modelElements,
ASMModel model,
org.eclipse.emf.ecore.EObject object)
Creates a new ASMEMFModelElement with the given parameters. |
Method Summary | |
---|---|
static ASMOrderedSet |
allInstances(StackFrame frame,
ASMEMFModelElement self)
Returns all instances of a type. |
static ASMOrderedSet |
allInstancesFrom(StackFrame frame,
ASMEMFModelElement self,
ASMString sourceModelName)
Returns all instances of a type from a given model. |
protected java.lang.Object |
asm2EMF(StackFrame frame,
ASMOclAny value,
java.lang.String propName,
org.eclipse.emf.ecore.EStructuralFeature feature)
Converts an ASM element to its EMF equivalent. |
ASMBoolean |
conformsTo(ASMOclType other)
|
protected ASMOclAny |
emf2ASM(StackFrame frame,
java.lang.Object value)
Converts an EMF element to its ASM equivalent. |
protected void |
finalize()
|
protected java.lang.reflect.Method |
findMethod(java.lang.Class cls,
java.lang.String name,
java.lang.Class[] argumentTypes)
Returns the method which match the given parameters. |
ASMOclAny |
get(StackFrame frame,
java.lang.String name)
|
static org.eclipse.emf.ecore.EEnumLiteral |
getEENumLiteral(org.eclipse.emf.ecore.EEnum eEnum,
java.lang.String id)
Returns the literal matching the given name or literal. |
static ASMOclAny |
getInstanceById(StackFrame frame,
ASMEMFModelElement self,
ASMString modelName,
ASMString id)
Returns the instance with the given id. |
org.eclipse.emf.ecore.EObject |
getObject()
Returns the internal EObject. |
ASMModelElement |
getProperty(java.lang.String name)
|
ASMModelElement |
getPropertyType(java.lang.String name)
|
ASMOclAny |
invoke(StackFrame frame,
java.lang.String opName,
java.util.List arguments)
Searches for Operation opName in this context and invokes it if found. |
ASMOclAny |
invokeSuper(StackFrame frame,
java.lang.String opName,
java.util.List arguments)
Searches for Operation opName in the superclass context and invokes it if found. |
static ASMModelElement |
newInstance(StackFrame frame,
ASMEMFModelElement self)
Creates a new instance of a given type. |
static ASMModelElement |
newInstanceIn(StackFrame frame,
ASMEMFModelElement self,
ASMString modelName)
Creates a new instance of a given type. |
ASMOclAny |
refImmediateComposite()
|
void |
set(StackFrame frame,
java.lang.String name,
ASMOclAny value)
|
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, getOclAnyType, getType, invoke, isHelper, oclIsKindOf, oclIsTypeOf, oclIsUndefined, oclType, operatorEQ, operatorNE, output, refGetValue, refImmediateComposite, refInvokeOperation, refSetValue, setType, toString |
Methods inherited from class org.eclipse.m2m.atl.engine.vm.nativelib.ASMNativeObject |
---|
getNativeImpl |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected org.eclipse.emf.ecore.EObject object
Constructor Detail |
---|
protected ASMEMFModelElement(java.util.Map modelElements, ASMModel model, org.eclipse.emf.ecore.EObject object)
ASMEMFModelElement
with the given parameters.
modelElements
- the model elements mapmodel
- the model elementobject
- the objectMethod Detail |
---|
public ASMBoolean conformsTo(ASMOclType other)
conformsTo
in class ASMModelElement
ASMModelElement.conformsTo(org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclType)
public ASMModelElement getPropertyType(java.lang.String name)
getPropertyType
in class ASMModelElement
ASMModelElement.getPropertyType(java.lang.String)
public ASMModelElement getProperty(java.lang.String name)
getProperty
in class ASMModelElement
ASMModelElement.getProperty(java.lang.String)
public ASMOclAny refImmediateComposite()
refImmediateComposite
in class ASMOclAny
ASMOclAny.refImmediateComposite()
public ASMOclAny get(StackFrame frame, java.lang.String name)
get
in class ASMModelElement
ASMModelElement.get(org.eclipse.m2m.atl.engine.vm.StackFrame,
java.lang.String)
protected java.lang.Object asm2EMF(StackFrame frame, ASMOclAny value, java.lang.String propName, org.eclipse.emf.ecore.EStructuralFeature feature)
frame
- the frame contextvalue
- the element to convertpropName
- the property namefeature
- the feature which refers to the element
protected ASMOclAny emf2ASM(StackFrame frame, java.lang.Object value)
frame
- the frame contextvalue
- the element to convert
public static org.eclipse.emf.ecore.EEnumLiteral getEENumLiteral(org.eclipse.emf.ecore.EEnum eEnum, java.lang.String id)
eEnum
- the enumerationid
- the name or the literal
public void set(StackFrame frame, java.lang.String name, ASMOclAny value)
set
in class ASMModelElement
ASMModelElement.set(org.eclipse.m2m.atl.engine.vm.StackFrame,
java.lang.String, org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclAny)
public static ASMOclAny getInstanceById(StackFrame frame, ASMEMFModelElement self, ASMString modelName, ASMString id)
frame
- the frame contextself
- the current elementmodelName
- the model nameid
- the instance id
public static ASMOrderedSet allInstances(StackFrame frame, ASMEMFModelElement self)
frame
- the frame contextself
- the caller type
public static ASMOrderedSet allInstancesFrom(StackFrame frame, ASMEMFModelElement self, ASMString sourceModelName)
frame
- the frame contextself
- the caller typesourceModelName
- the model name
public static ASMModelElement newInstance(StackFrame frame, ASMEMFModelElement self)
frame
- the frame contextself
- the given type
public static ASMModelElement newInstanceIn(StackFrame frame, ASMEMFModelElement self, ASMString modelName)
frame
- the frame contextself
- the given typemodelName
- the model where to create the element
protected java.lang.reflect.Method findMethod(java.lang.Class cls, java.lang.String name, java.lang.Class[] argumentTypes)
cls
- the class which contains the methodname
- the method nameargumentTypes
- th method parameters
public ASMOclAny invoke(StackFrame frame, java.lang.String opName, java.util.List arguments)
invoke
in class ASMOclAny
frame
- The current stack frameopName
- The Operation's namearguments
- The operation arguments, excluding self
ASMOclAny.invoke(org.eclipse.m2m.atl.engine.vm.StackFrame,
java.lang.String, java.util.List)
public ASMOclAny invokeSuper(StackFrame frame, java.lang.String opName, java.util.List arguments)
invokeSuper
in class ASMOclAny
frame
- The current stack frameopName
- The Operation's namearguments
- The operation arguments, excluding self
ASMOclAny.invokeSuper(org.eclipse.m2m.atl.engine.vm.StackFrame,
java.lang.String, java.util.List)
public org.eclipse.emf.ecore.EObject getObject()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
Object.finalize()
|
Copyright 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |