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
public class LocalVariableImpl extends TypedElementImpl implements LocalVariable
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 java.lang.Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EScannableAdapterList
-
-
Field Summary
Fields Modifier and Type Field Description protected static intEND_INSTRUCTION_INDEX_EDEFAULTThe default value of the 'End Instruction Index' attribute.protected InstructionendInstructionThe cached value of the 'End Instruction' reference.protected intendInstructionIndexThe cached value of the 'End Instruction Index' attribute.protected intslotThe cached value of the 'Slot' attribute.protected static intSLOT_EDEFAULTThe default value of the 'Slot' attribute.protected static intSTART_INSTRUCTION_INDEX_EDEFAULTThe default value of the 'Start Instruction Index' attribute.protected InstructionstartInstructionThe cached value of the 'Start Instruction' reference.protected intstartInstructionIndexThe 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
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedLocalVariableImpl()Creates a newLocalVariableImpl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstructionbasicGetEndInstruction()InstructionbasicGetStartInstruction()org.eclipse.emf.common.notify.NotificationChainbasicSetOwningBlock(CodeBlock newOwningBlock, org.eclipse.emf.common.notify.NotificationChain msgs)org.eclipse.emf.common.notify.NotificationChaineBasicRemoveFromContainerFeature(org.eclipse.emf.common.notify.NotificationChain msgs)java.lang.ObjecteGet(int featureID, boolean resolve, boolean coreType)org.eclipse.emf.common.notify.NotificationChaineInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)org.eclipse.emf.common.notify.NotificationChaineInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)booleaneIsSet(int featureID)voideSet(int featureID, java.lang.Object newValue)protected org.eclipse.emf.ecore.EClasseStaticClass()Returns theEClassthat correspond to this metaclass.voideUnset(int featureID)InstructiongetEndInstruction()Returns the value of the 'End Instruction' reference.intgetEndInstructionIndex()Returns the value of the 'End Instruction Index' attribute.CodeBlockgetOwningBlock()Returns the value of the 'Owning Block' container reference.intgetSlot()Returns the value of the 'Slot' attribute.InstructiongetStartInstruction()Returns the value of the 'Start Instruction' reference.intgetStartInstructionIndex()Returns the value of the 'Start Instruction Index' attribute.voidsetEndInstruction(Instruction newEndInstruction)Sets the value of the 'End Instruction' reference.voidsetEndInstructionIndex(int newEndInstructionIndex)Sets the value of the 'End Instruction Index' attribute.voidsetOwningBlock(CodeBlock newOwningBlock)Sets the value of the 'Owning Block' container reference.voidsetSlot(int newSlot)Sets the value of the 'Slot' attribute.voidsetStartInstruction(Instruction newStartInstruction)Sets the value of the 'Start Instruction' reference.voidsetStartInstructionIndex(int newStartInstructionIndex)Sets the value of the 'Start Instruction Index' attribute.java.lang.StringtoString()-
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.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 Detail
-
SLOT_EDEFAULT
protected static final int SLOT_EDEFAULT
The default value of the 'Slot' attribute.- See Also:
getSlot(), Constant Field Values
-
startInstruction
protected Instruction startInstruction
The cached value of the 'Start Instruction' reference.- See Also:
getStartInstruction()
-
endInstruction
protected Instruction endInstruction
The cached value of the 'End Instruction' reference.- See Also:
getEndInstruction()
-
START_INSTRUCTION_INDEX_EDEFAULT
protected static final int START_INSTRUCTION_INDEX_EDEFAULT
The default value of the 'Start Instruction Index' attribute.- See Also:
getStartInstructionIndex(), Constant Field Values
-
END_INSTRUCTION_INDEX_EDEFAULT
protected static final int END_INSTRUCTION_INDEX_EDEFAULT
The default value of the 'End Instruction Index' attribute.- See Also:
getEndInstructionIndex(), Constant Field Values
-
startInstructionIndex
protected int startInstructionIndex
The cached value of the 'Start Instruction Index' attribute.- See Also:
getStartInstructionIndex()
-
endInstructionIndex
protected int endInstructionIndex
The cached value of the 'End Instruction Index' attribute.- See Also:
getEndInstructionIndex()
-
-
Constructor Detail
-
LocalVariableImpl
protected LocalVariableImpl()
Creates a newLocalVariableImpl.
-
-
Method Detail
-
eStaticClass
protected org.eclipse.emf.ecore.EClass eStaticClass()
Returns theEClassthat correspond to this metaclass.- Overrides:
eStaticClassin classTypedElementImpl- Returns:
- the
EClassthat 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:
getSlotin interfaceLocalVariable- Returns:
- the value of the 'Slot' attribute.
- See Also:
LocalVariable.setSlot(int),EmftvmPackage.getLocalVariable_Slot()
-
setSlot
public void setSlot(int newSlot)
Sets the value of the 'Slot' attribute.- Specified by:
setSlotin interfaceLocalVariable- Parameters:
newSlot- the new value of the 'Slot' attribute.- See Also:
LocalVariable.getSlot()
-
getStartInstruction
public Instruction 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:
getStartInstructionin interfaceLocalVariable- Returns:
- the value of the 'Start Instruction' reference.
- See Also:
LocalVariable.setStartInstruction(Instruction),EmftvmPackage.getLocalVariable_StartInstruction()
-
basicGetStartInstruction
public Instruction basicGetStartInstruction()
-
setStartInstruction
public void setStartInstruction(Instruction newStartInstruction)
Sets the value of the 'Start Instruction' reference.- Specified by:
setStartInstructionin interfaceLocalVariable- Parameters:
newStartInstruction- the new value of the 'Start Instruction' reference.- See Also:
LocalVariable.getStartInstruction()
-
getEndInstruction
public Instruction 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:
getEndInstructionin interfaceLocalVariable- Returns:
- the value of the 'End Instruction' reference.
- See Also:
LocalVariable.setEndInstruction(Instruction),EmftvmPackage.getLocalVariable_EndInstruction()
-
basicGetEndInstruction
public Instruction basicGetEndInstruction()
- See Also:
getEndInstruction()
-
setEndInstruction
public void setEndInstruction(Instruction newEndInstruction)
Sets the value of the 'End Instruction' reference.- Specified by:
setEndInstructionin interfaceLocalVariable- Parameters:
newEndInstruction- the new value of the 'End Instruction' reference.- See Also:
LocalVariable.getEndInstruction()
-
getStartInstructionIndex
public int getStartInstructionIndex()
Returns the value of the 'Start Instruction Index' attribute. The default value is"-1".- Specified by:
getStartInstructionIndexin interfaceLocalVariable- Returns:
- the value of the 'Start Instruction Index' attribute.
- See Also:
LocalVariable.setStartInstructionIndex(int),EmftvmPackage.getLocalVariable_StartInstructionIndex()
-
setStartInstructionIndex
public void setStartInstructionIndex(int newStartInstructionIndex)
Sets the value of the 'Start Instruction Index' attribute.- Specified by:
setStartInstructionIndexin interfaceLocalVariable- Parameters:
newStartInstructionIndex- the new value of the 'Start Instruction Index' attribute.- See Also:
LocalVariable.getStartInstructionIndex()
-
getEndInstructionIndex
public int getEndInstructionIndex()
Returns the value of the 'End Instruction Index' attribute. The default value is"-1".- Specified by:
getEndInstructionIndexin interfaceLocalVariable- Returns:
- the value of the 'End Instruction Index' attribute.
- See Also:
LocalVariable.setEndInstructionIndex(int),EmftvmPackage.getLocalVariable_EndInstructionIndex()
-
setEndInstructionIndex
public void setEndInstructionIndex(int newEndInstructionIndex)
Sets the value of the 'End Instruction Index' attribute.- Specified by:
setEndInstructionIndexin interfaceLocalVariable- Parameters:
newEndInstructionIndex- the new value of the 'End Instruction Index' attribute.- See Also:
LocalVariable.getEndInstructionIndex()
-
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:
eInverseAddin 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:
eInverseRemovein classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eBasicRemoveFromContainerFeature
public org.eclipse.emf.common.notify.NotificationChain eBasicRemoveFromContainerFeature(org.eclipse.emf.common.notify.NotificationChain msgs)
- Overrides:
eBasicRemoveFromContainerFeaturein classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eGet
public java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)- Specified by:
eGetin interfaceorg.eclipse.emf.ecore.InternalEObject- Overrides:
eGetin classTypedElementImpl
-
eSet
public void eSet(int featureID, java.lang.Object newValue)- Specified by:
eSetin interfaceorg.eclipse.emf.ecore.InternalEObject- Overrides:
eSetin classTypedElementImpl
-
eUnset
public void eUnset(int featureID)
- Specified by:
eUnsetin interfaceorg.eclipse.emf.ecore.InternalEObject- Overrides:
eUnsetin classTypedElementImpl
-
eIsSet
public boolean eIsSet(int featureID)
- Specified by:
eIsSetin interfaceorg.eclipse.emf.ecore.InternalEObject- Overrides:
eIsSetin classTypedElementImpl
-
getOwningBlock
public CodeBlock 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:
getOwningBlockin interfaceLocalVariable- Returns:
- the value of the 'Owning Block' container reference.
- See Also:
LocalVariable.setOwningBlock(CodeBlock),EmftvmPackage.getLocalVariable_OwningBlock(),CodeBlock.getLocalVariables()
-
basicSetOwningBlock
public org.eclipse.emf.common.notify.NotificationChain basicSetOwningBlock(CodeBlock newOwningBlock, org.eclipse.emf.common.notify.NotificationChain msgs)
- See Also:
setOwningBlock(CodeBlock)
-
setOwningBlock
public void setOwningBlock(CodeBlock newOwningBlock)
Sets the value of the 'Owning Block' container reference.- Specified by:
setOwningBlockin interfaceLocalVariable- Parameters:
newOwningBlock- the new value of the 'Owning Block' container reference.- See Also:
LocalVariable.getOwningBlock()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classTypedElementImpl
-
-