Package org.eclipse.m2m.atl.emftvm.util
Class NativeCodeBlock
java.lang.Object
org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.EObjectImpl
org.eclipse.m2m.atl.emftvm.impl.CodeBlockImpl
org.eclipse.m2m.atl.emftvm.util.NativeCodeBlock
- All Implemented Interfaces:
org.eclipse.emf.common.notify.Notifier,org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.InternalEObject,CodeBlock
CodeBlock with empty native Java body. Returns null by default.-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolder, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderBaseImpl, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderImplNested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EScannableAdapterListNested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
org.eclipse.emf.ecore.InternalEObject.EStore -
Field Summary
Fields inherited from class org.eclipse.m2m.atl.emftvm.impl.CodeBlockImpl
code, EXEC_ENV, lineNumbers, localVariables, MAX_LOCALS_EDEFAULT, MAX_STACK_EDEFAULT, maxLocals, maxStack, nested, PARENT_FRAME_EDEFAULT, parentFrameFields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXYFields inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSETFields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(StackFrame frame) Executes the instructions in thisCodeBlock, using the parameters stored inframe.intReturns the value of the 'Max Stack' attribute.intCalculates the amount of elements on the stack after executing thisCodeBlock.Methods inherited from class org.eclipse.m2m.atl.emftvm.impl.CodeBlockImpl
basicSetApplierFor, basicSetBindingFor, basicSetBodyFor, basicSetInitialiserFor, basicSetMatcherFor, basicSetNestedFor, basicSetPostApplyFor, eBasicRemoveFromContainerFeature, eGet, eInverseAdd, eInverseRemove, eIsSet, eNotificationRequired, eNotify, eSet, eStaticClass, eUnset, getAllPredecessors, getApplierFor, getASM, getBindingFor, getBodyFor, getCode, getField, getInitialiserFor, getJITCodeBlock, getLineNumbers, getLocalVariables, getMatcherFor, getMaxLocals, getModule, getNested, getNestedFor, getNonLoopingPredecessors, getOperation, getParentFrame, getPostApplyFor, getPredecessors, getRule, setApplierFor, setBindingFor, setBodyFor, setInitialiserFor, setJITCodeBlock, setMatcherFor, setMaxLocals, setMaxStack, setNestedFor, setParentFrame, setPostApplyFor, toStringMethods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURIMethods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eHasSettings, eInternalResource, eInverseAdd, eInverseRemove, eInvocationDelegate, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStaticOperationCount, eStore, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValuesMethods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eBasicAdapterArray, eBasicHasAdaptersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnsetMethods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eSetDeliver
-
Constructor Details
-
NativeCodeBlock
public NativeCodeBlock()
-
-
Method Details
-
getMaxStack
public int getMaxStack()Returns the value of the 'Max Stack' attribute. The default value is"-1".Represents the amount of stack slots required. This value is derived automatically from the list of instructions.
- Specified by:
getMaxStackin interfaceCodeBlock- Overrides:
getMaxStackin classCodeBlockImpl- Returns:
- the value of the 'Max Stack' attribute.
- See Also:
-
execute
Executes the instructions in thisCodeBlock, using the parameters stored inframe.- Specified by:
executein interfaceCodeBlock- Overrides:
executein classCodeBlockImpl- Parameters:
frame- theStackFrameto use during execution.- Returns:
- the return value.
- See Also:
-
getStackLevel
public int getStackLevel()Calculates the amount of elements on the stack after executing thisCodeBlock.- Specified by:
getStackLevelin interfaceCodeBlock- Overrides:
getStackLevelin classCodeBlockImpl- Returns:
- the amount of elements on the stack after executing this
CodeBlock.
-