Package org.eclipse.m2m.atl.emftvm.impl
Class LocalVariableImpl
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.NamedElementImpl
org.eclipse.m2m.atl.emftvm.impl.TypedElementImpl
org.eclipse.m2m.atl.emftvm.impl.LocalVariableImpl
- All Implemented Interfaces:
org.eclipse.emf.common.notify.Notifier
,org.eclipse.emf.ecore.EObject
,org.eclipse.emf.ecore.InternalEObject
,LocalVariable
,NamedElement
,TypedElement
An implementation of the model object 'Local Variable'.
-
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.EPropertiesHolderImpl
Nested 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.EScannableAdapterList
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
org.eclipse.emf.ecore.InternalEObject.EStore
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final int
The default value of the 'End Instruction Index
' attribute.protected Instruction
The cached value of the 'End Instruction
' reference.protected int
The cached value of the 'End Instruction Index
' attribute.protected int
The cached value of the 'Slot
' attribute.protected static final int
The default value of the 'Slot
' attribute.protected static final int
The default value of the 'Start Instruction Index
' attribute.protected Instruction
The cached value of the 'Start Instruction
' reference.protected int
The cached value of the 'Start Instruction Index
' attribute.Fields inherited from class org.eclipse.m2m.atl.emftvm.impl.TypedElementImpl
eType, type, TYPE_EDEFAULT, TYPE_MODEL_EDEFAULT, typeModel
Fields inherited from class org.eclipse.m2m.atl.emftvm.impl.NamedElementImpl
name, NAME_EDEFAULT
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY
Fields inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.emf.common.notify.NotificationChain
basicSetOwningBlock
(CodeBlock newOwningBlock, org.eclipse.emf.common.notify.NotificationChain msgs) org.eclipse.emf.common.notify.NotificationChain
eBasicRemoveFromContainerFeature
(org.eclipse.emf.common.notify.NotificationChain msgs) eGet
(int featureID, boolean resolve, boolean coreType) org.eclipse.emf.common.notify.NotificationChain
eInverseAdd
(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs) org.eclipse.emf.common.notify.NotificationChain
eInverseRemove
(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs) boolean
eIsSet
(int featureID) void
protected org.eclipse.emf.ecore.EClass
Returns theEClass
that correspond to this metaclass.void
eUnset
(int featureID) Returns the value of the 'End Instruction' reference.int
Returns the value of the 'End Instruction Index' attribute.Returns the value of the 'Owning Block' container reference.int
getSlot()
Returns the value of the 'Slot' attribute.Returns the value of the 'Start Instruction' reference.int
Returns the value of the 'Start Instruction Index' attribute.void
setEndInstruction
(Instruction newEndInstruction) Sets the value of the 'End Instruction
' reference.void
setEndInstructionIndex
(int newEndInstructionIndex) Sets the value of the 'End Instruction Index
' attribute.void
setOwningBlock
(CodeBlock newOwningBlock) Sets the value of the 'Owning Block
' container reference.void
setSlot
(int newSlot) Sets the value of the 'Slot
' attribute.void
setStartInstruction
(Instruction newStartInstruction) Sets the value of the 'Start Instruction
' reference.void
setStartInstructionIndex
(int newStartInstructionIndex) Sets the value of the 'Start Instruction Index
' attribute.toString()
Methods inherited from class org.eclipse.m2m.atl.emftvm.impl.TypedElementImpl
basicGetEType, getEType, getType, getTypeModel, setEType, setType, setTypeModel
Methods inherited from class org.eclipse.m2m.atl.emftvm.impl.NamedElementImpl
getName, setName
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI
Methods 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, eVirtualValues
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotify
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
Methods inherited from interface org.eclipse.m2m.atl.emftvm.NamedElement
getName, setName
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
Methods inherited from interface org.eclipse.m2m.atl.emftvm.TypedElement
getEType, getType, getTypeModel, setEType, setType, setTypeModel
-
Field Details
-
SLOT_EDEFAULT
protected static final int SLOT_EDEFAULTThe default value of the 'Slot
' attribute.- See Also:
-
slot
protected int slotThe cached value of the 'Slot
' attribute.- See Also:
-
startInstruction
The cached value of the 'Start Instruction
' reference.- See Also:
-
endInstruction
The cached value of the 'End Instruction
' reference.- See Also:
-
START_INSTRUCTION_INDEX_EDEFAULT
protected static final int START_INSTRUCTION_INDEX_EDEFAULTThe default value of the 'Start Instruction Index
' attribute. -
END_INSTRUCTION_INDEX_EDEFAULT
protected static final int END_INSTRUCTION_INDEX_EDEFAULTThe default value of the 'End Instruction Index
' attribute. -
startInstructionIndex
protected int startInstructionIndexThe cached value of the 'Start Instruction Index
' attribute.- See Also:
-
endInstructionIndex
protected int endInstructionIndexThe cached value of the 'End Instruction Index
' attribute.- See Also:
-
-
Constructor Details
-
LocalVariableImpl
protected LocalVariableImpl()Creates a newLocalVariableImpl
.
-
-
Method Details
-
eStaticClass
protected org.eclipse.emf.ecore.EClass eStaticClass()Returns theEClass
that correspond to this metaclass.- Overrides:
eStaticClass
in classTypedElementImpl
- Returns:
- the
EClass
that correspond to this metaclass.
-
getSlot
public int getSlot()Returns the value of the 'Slot' attribute. The default value is"-1"
.Automatically assigns a free slot for local variables without a slot. Verifies that previous overlapping local variables have a unique slot. Attempts to reuse free slots.
- Specified by:
getSlot
in interfaceLocalVariable
- Returns:
- the value of the 'Slot' attribute.
- See Also:
-
setSlot
public void setSlot(int newSlot) Sets the value of the 'Slot
' attribute.- Specified by:
setSlot
in interfaceLocalVariable
- Parameters:
newSlot
- the new value of the 'Slot' attribute.- See Also:
-
getStartInstruction
Returns the value of the 'Start Instruction' reference.If the meaning of the 'Start Instruction' attribute isn't clear, there really should be more of a description here...
- Specified by:
getStartInstruction
in interfaceLocalVariable
- Returns:
- the value of the 'Start Instruction' reference.
- See Also:
-
basicGetStartInstruction
-
setStartInstruction
Sets the value of the 'Start Instruction
' reference.- Specified by:
setStartInstruction
in interfaceLocalVariable
- Parameters:
newStartInstruction
- the new value of the 'Start Instruction' reference.- See Also:
-
getEndInstruction
Returns the value of the 'End Instruction' reference.If the meaning of the 'End Instruction' attribute isn't clear, there really should be more of a description here...
- Specified by:
getEndInstruction
in interfaceLocalVariable
- Returns:
- the value of the 'End Instruction' reference.
- See Also:
-
basicGetEndInstruction
-
setEndInstruction
Sets the value of the 'End Instruction
' reference.- Specified by:
setEndInstruction
in interfaceLocalVariable
- Parameters:
newEndInstruction
- the new value of the 'End Instruction' reference.- See Also:
-
getStartInstructionIndex
public int getStartInstructionIndex()Returns the value of the 'Start Instruction Index' attribute. The default value is"-1"
.- Specified by:
getStartInstructionIndex
in interfaceLocalVariable
- Returns:
- the value of the 'Start Instruction Index' attribute.
- See Also:
-
setStartInstructionIndex
public void setStartInstructionIndex(int newStartInstructionIndex) Sets the value of the 'Start Instruction Index
' attribute.- Specified by:
setStartInstructionIndex
in interfaceLocalVariable
- Parameters:
newStartInstructionIndex
- the new value of the 'Start Instruction Index' attribute.- See Also:
-
getEndInstructionIndex
public int getEndInstructionIndex()Returns the value of the 'End Instruction Index' attribute. The default value is"-1"
.- Specified by:
getEndInstructionIndex
in interfaceLocalVariable
- Returns:
- the value of the 'End Instruction Index' attribute.
- See Also:
-
setEndInstructionIndex
public void setEndInstructionIndex(int newEndInstructionIndex) Sets the value of the 'End Instruction Index
' attribute.- Specified by:
setEndInstructionIndex
in interfaceLocalVariable
- Parameters:
newEndInstructionIndex
- the new value of the 'End Instruction Index' attribute.- See Also:
-
eInverseAdd
public org.eclipse.emf.common.notify.NotificationChain eInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs) - Overrides:
eInverseAdd
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eInverseRemove
public org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs) - Overrides:
eInverseRemove
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eBasicRemoveFromContainerFeature
public org.eclipse.emf.common.notify.NotificationChain eBasicRemoveFromContainerFeature(org.eclipse.emf.common.notify.NotificationChain msgs) - Overrides:
eBasicRemoveFromContainerFeature
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eGet
- Specified by:
eGet
in interfaceorg.eclipse.emf.ecore.InternalEObject
- Overrides:
eGet
in classTypedElementImpl
-
eSet
- Specified by:
eSet
in interfaceorg.eclipse.emf.ecore.InternalEObject
- Overrides:
eSet
in classTypedElementImpl
-
eUnset
public void eUnset(int featureID) - Specified by:
eUnset
in interfaceorg.eclipse.emf.ecore.InternalEObject
- Overrides:
eUnset
in classTypedElementImpl
-
eIsSet
public boolean eIsSet(int featureID) - Specified by:
eIsSet
in interfaceorg.eclipse.emf.ecore.InternalEObject
- Overrides:
eIsSet
in classTypedElementImpl
-
getOwningBlock
Returns the value of the 'Owning Block' container reference. It is bidirectional and its opposite is 'Local Variables
'.If the meaning of the 'Owning Block' container reference isn't clear, there really should be more of a description here...
- Specified by:
getOwningBlock
in interfaceLocalVariable
- Returns:
- the value of the 'Owning Block' container reference.
- See Also:
-
basicSetOwningBlock
public org.eclipse.emf.common.notify.NotificationChain basicSetOwningBlock(CodeBlock newOwningBlock, org.eclipse.emf.common.notify.NotificationChain msgs) -
setOwningBlock
Sets the value of the 'Owning Block
' container reference.- Specified by:
setOwningBlock
in interfaceLocalVariable
- Parameters:
newOwningBlock
- the new value of the 'Owning Block' container reference.- See Also:
-
toString
- Overrides:
toString
in classTypedElementImpl
-