org.eclipse.xtext.xbase.impl
Class XSwitchExpressionImpl

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended by org.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended by org.eclipse.emf.ecore.impl.MinimalEObjectImpl
              extended by org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
                  extended by org.eclipse.xtext.xbase.impl.XExpressionImpl
                      extended by org.eclipse.xtext.xbase.impl.XSwitchExpressionImpl
All Implemented Interfaces:
org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EStructuralFeature.Internal.DynamicValueHolder, org.eclipse.emf.ecore.InternalEObject, JvmIdentifiableElement, XExpression, XSwitchExpression
Direct Known Subclasses:
XSwitchExpressionImplCustom

public class XSwitchExpressionImpl
extends XExpressionImpl
implements XSwitchExpression

An implementation of the model object 'XSwitch Expression'.

The following features are implemented:

EMF generated code

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container.Dynamic
 
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl
org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
 
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
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
org.eclipse.emf.ecore.InternalEObject.EStore
 
Field Summary
protected  org.eclipse.emf.common.util.EList<XCasePart> cases
          The cached value of the 'Cases' containment reference list
protected  XExpression default_
          The cached value of the 'Default' containment reference
protected static java.lang.String LOCAL_VAR_NAME_EDEFAULT
          The default value of the 'Local Var Name' attribute
protected  java.lang.String localVarName
          The cached value of the 'Local Var Name' attribute
protected  XExpression switch_
          The cached value of the 'Switch' containment reference
 
Fields inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
eContainer
 
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.EStructuralFeature.Internal.DynamicValueHolder
NIL
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
protected XSwitchExpressionImpl()
           
 
Method Summary
 org.eclipse.emf.common.notify.NotificationChain basicSetDefault(XExpression newDefault, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 org.eclipse.emf.common.notify.NotificationChain basicSetSwitch(XExpression newSwitch, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
           
 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 eSet(int featureID, java.lang.Object newValue)
           
protected  org.eclipse.emf.ecore.EClass eStaticClass()
           
 void eUnset(int featureID)
           
 org.eclipse.emf.common.util.EList<XCasePart> getCases()
           
 XExpression getDefault()
           
 java.lang.String getIdentifier()
           
 java.lang.String getLocalVarName()
           
 java.lang.String getQualifiedName()
           
 java.lang.String getQualifiedName(char innerClassDelimiter)
           
 java.lang.String getSimpleName()
           
 XExpression getSwitch()
           
 void setDefault(XExpression newDefault)
           
 void setLocalVarName(java.lang.String newLocalVarName)
           
 void setSwitch(XExpression newSwitch)
           
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
eBasicSetContainer, eInternalContainer
 
Methods inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl
dynamicGet, dynamicSet, dynamicUnset, eAdapters, eBasicAdapterArray, eBasicAdapters, eBasicHasAdapters, eBasicProperties, eBasicSetAdapterArray, eBasicSetContainer, eBasicSetContainerFeatureID, eBasicSetSettings, eBasicSettings, eClass, eContainerFeatureID, eContents, eCrossReferences, eDeliver, eDirectResource, eDynamicClass, eHasSettings, eIsProxy, eProperties, eProxyURI, eSetClass, eSetDeliver, eSetDirectResource, eSetProxyURI, eSettings
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDynamicBasicRemoveFromContainer, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eInvocationDelegate, eInvoke, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eSettingDelegate, 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
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.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
 

Field Detail

switch_

protected XExpression switch_
The cached value of the 'Switch' containment reference.

See Also:
getSwitch()
EMF generated code
EMF ordered

cases

protected org.eclipse.emf.common.util.EList<XCasePart> cases
The cached value of the 'Cases' containment reference list.

See Also:
getCases()
EMF generated code
EMF ordered

default_

protected XExpression default_
The cached value of the 'Default' containment reference.

See Also:
getDefault()
EMF generated code
EMF ordered

LOCAL_VAR_NAME_EDEFAULT

protected static final java.lang.String LOCAL_VAR_NAME_EDEFAULT
The default value of the 'Local Var Name' attribute.

See Also:
getLocalVarName()
EMF generated code
EMF ordered

localVarName

protected java.lang.String localVarName
The cached value of the 'Local Var Name' attribute.

See Also:
getLocalVarName()
EMF generated code
EMF ordered
Constructor Detail

XSwitchExpressionImpl

protected XSwitchExpressionImpl()

EMF generated code
Method Detail

eStaticClass

protected org.eclipse.emf.ecore.EClass eStaticClass()

Overrides:
eStaticClass in class XExpressionImpl
EMF generated code

getSwitch

public XExpression getSwitch()

Specified by:
getSwitch in interface XSwitchExpression
Returns:
the value of the 'Switch' containment reference.
See Also:
XSwitchExpression.setSwitch(XExpression), XbasePackage.getXSwitchExpression_Switch()
EMF generated code

basicSetSwitch

public org.eclipse.emf.common.notify.NotificationChain basicSetSwitch(XExpression newSwitch,
                                                                      org.eclipse.emf.common.notify.NotificationChain msgs)

EMF generated code

setSwitch

public void setSwitch(XExpression newSwitch)

Specified by:
setSwitch in interface XSwitchExpression
Parameters:
newSwitch - the new value of the 'Switch' containment reference.
See Also:
XSwitchExpression.getSwitch()
EMF generated code

getCases

public org.eclipse.emf.common.util.EList<XCasePart> getCases()

Specified by:
getCases in interface XSwitchExpression
Returns:
the value of the 'Cases' containment reference list.
See Also:
XbasePackage.getXSwitchExpression_Cases()
EMF generated code

getDefault

public XExpression getDefault()

Specified by:
getDefault in interface XSwitchExpression
Returns:
the value of the 'Default' containment reference.
See Also:
XSwitchExpression.setDefault(XExpression), XbasePackage.getXSwitchExpression_Default()
EMF generated code

basicSetDefault

public org.eclipse.emf.common.notify.NotificationChain basicSetDefault(XExpression newDefault,
                                                                       org.eclipse.emf.common.notify.NotificationChain msgs)

EMF generated code

setDefault

public void setDefault(XExpression newDefault)

Specified by:
setDefault in interface XSwitchExpression
Parameters:
newDefault - the new value of the 'Default' containment reference.
See Also:
XSwitchExpression.getDefault()
EMF generated code

getLocalVarName

public java.lang.String getLocalVarName()

Specified by:
getLocalVarName in interface XSwitchExpression
Returns:
the value of the 'Local Var Name' attribute.
See Also:
XSwitchExpression.setLocalVarName(String), XbasePackage.getXSwitchExpression_LocalVarName()
EMF generated code

setLocalVarName

public void setLocalVarName(java.lang.String newLocalVarName)

Specified by:
setLocalVarName in interface XSwitchExpression
Parameters:
newLocalVarName - the new value of the 'Local Var Name' attribute.
See Also:
XSwitchExpression.getLocalVarName()
EMF generated code

getIdentifier

public java.lang.String getIdentifier()

Specified by:
getIdentifier in interface JvmIdentifiableElement
EMF generated code

getSimpleName

public java.lang.String getSimpleName()

Specified by:
getSimpleName in interface JvmIdentifiableElement
EMF generated code

getQualifiedName

public java.lang.String getQualifiedName()

Specified by:
getQualifiedName in interface JvmIdentifiableElement
See Also:
EMF generated code

getQualifiedName

public java.lang.String getQualifiedName(char innerClassDelimiter)

Specified by:
getQualifiedName in interface JvmIdentifiableElement
EMF generated code

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 class org.eclipse.emf.ecore.impl.BasicEObjectImpl
EMF generated code

eGet

public java.lang.Object eGet(int featureID,
                             boolean resolve,
                             boolean coreType)

Specified by:
eGet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eGet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
EMF generated code

eSet

public void eSet(int featureID,
                 java.lang.Object newValue)

Specified by:
eSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eSet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
EMF generated code

eUnset

public void eUnset(int featureID)

Specified by:
eUnset in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eUnset in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
EMF generated code

eIsSet

public boolean eIsSet(int featureID)

Specified by:
eIsSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eIsSet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
EMF generated code

toString

public java.lang.String toString()

Overrides:
toString in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
EMF generated code