Class ASMTransientLink
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.ASMTransientLink
An ASMTransientLink represents an internal traceability link.
Other languages than ATL may be compiled to ATL VM and reuse this class.
They can also define their own traceability links using Maps and Tuples.
-
Field Summary
FieldsFields inherited from class org.eclipse.m2m.atl.engine.vm.nativelib.ASMNativeObject
nativeImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addSourceElement
(StackFrame frame, ASMTransientLink self, ASMString name, ASMOclAny element) static void
addTargetElement
(StackFrame frame, ASMTransientLink self, ASMString name, ASMOclAny element) static void
addVariable
(StackFrame frame, ASMTransientLink self, ASMString name, ASMOclAny value) static ASMOclAny
getNamedTargetFromSource
(StackFrame frame, ASMTransientLink self, ASMOclAny sourceElement, ASMString name) static ASMOclAny
getRule
(StackFrame frame, ASMTransientLink self) static ASMOclAny
getSourceElement
(StackFrame frame, ASMTransientLink self, ASMString name) static ASMMap
getSourceElements
(StackFrame frame, ASMTransientLink self) This method allows for retrieving all source elements for this link without knowing the local variable names of the rule that created the mappings.static ASMOclAny
getTargetElement
(StackFrame frame, ASMTransientLink self, ASMString name) static ASMMap
getTargetElements
(StackFrame frame, ASMTransientLink self) This method allows for retrieving all target elements for this link without knowing the local variable names of the rule that created the mappings.static ASMOclAny
getTargetFromSource
(StackFrame frame, ASMTransientLink self, ASMOclAny sourceElement) static ASMOclAny
getVariable
(StackFrame frame, ASMTransientLink self, ASMString name) static void
setRule
(StackFrame frame, ASMTransientLink self, ASMOclAny rule) toString()
Methods inherited from class org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclAny
asBag, asSequence, asSet, check, debug, findOperation, findOperation, get, 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
-
Field Details
-
myType
-
-
Constructor Details
-
ASMTransientLink
public ASMTransientLink()
-
-
Method Details
-
toString
-
getSourceMap
-
getSourceElements
-
getTargetElements
-
setRule
-
addSourceElement
public static void addSourceElement(StackFrame frame, ASMTransientLink self, ASMString name, ASMOclAny element) -
addTargetElement
public static void addTargetElement(StackFrame frame, ASMTransientLink self, ASMString name, ASMOclAny element) -
addVariable
public static void addVariable(StackFrame frame, ASMTransientLink self, ASMString name, ASMOclAny value) -
getRule
-
getSourceElement
-
getTargetElement
-
getTargetFromSource
public static ASMOclAny getTargetFromSource(StackFrame frame, ASMTransientLink self, ASMOclAny sourceElement) -
getNamedTargetFromSource
public static ASMOclAny getNamedTargetFromSource(StackFrame frame, ASMTransientLink self, ASMOclAny sourceElement, ASMString name) -
getVariable
-
getSourceElements
This method allows for retrieving all source elements for this link without knowing the local variable names of the rule that created the mappings. This reduces fragility.- Parameters:
frame
-self
-- Returns:
- A Map of source element names to target elements for this link.
-
getTargetElements
This method allows for retrieving all target elements for this link without knowing the local variable names of the rule that created the mappings. This reduces fragility.- Parameters:
frame
-self
-- Returns:
- A Map of target element names to target elements for this link.
-