org.eclipse.xtext.xtend2.richstring.impl
Class LiteralImpl

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.xtend2.richstring.impl.LinePartImpl
                      extended by org.eclipse.xtext.xtend2.richstring.impl.LiteralImpl
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, LinePart, Literal
Direct Known Subclasses:
LineBreakImpl

public class LiteralImpl
extends LinePartImpl
implements Literal

An implementation of the model object 'Literal'.

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  int length
          The cached value of the 'Length' attribute
protected static int LENGTH_EDEFAULT
          The default value of the 'Length' attribute
protected  RichStringLiteral literal
          The cached value of the 'Literal' reference
protected  int offset
          The cached value of the 'Offset' attribute
protected static int OFFSET_EDEFAULT
          The default value of the 'Offset' attribute
 
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 LiteralImpl()
           
 
Method Summary
 RichStringLiteral basicGetLiteral()
           
 java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
           
 boolean eIsSet(int featureID)
           
 void eSet(int featureID, java.lang.Object newValue)
           
protected  org.eclipse.emf.ecore.EClass eStaticClass()
           
 void eUnset(int featureID)
           
 int getLength()
           
 RichStringLiteral getLiteral()
           
 int getOffset()
           
 void setLength(int newLength)
           
 void setLiteral(RichStringLiteral newLiteral)
           
 void setOffset(int newOffset)
           
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.xtext.xtend2.richstring.impl.LinePartImpl
basicSetLine, eBasicRemoveFromContainerFeature, eInverseAdd, eInverseRemove, getLine, setLine
 
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, 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, 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.xtext.xtend2.richstring.LinePart
getLine, setLine
 
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

literal

protected RichStringLiteral literal
The cached value of the 'Literal' reference.

See Also:
getLiteral()
EMF generated code
EMF ordered

OFFSET_EDEFAULT

protected static final int OFFSET_EDEFAULT
The default value of the 'Offset' attribute.

See Also:
getOffset(), Constant Field Values
EMF generated code
EMF ordered

offset

protected int offset
The cached value of the 'Offset' attribute.

See Also:
getOffset()
EMF generated code
EMF ordered

LENGTH_EDEFAULT

protected static final int LENGTH_EDEFAULT
The default value of the 'Length' attribute.

See Also:
getLength(), Constant Field Values
EMF generated code
EMF ordered

length

protected int length
The cached value of the 'Length' attribute.

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

LiteralImpl

protected LiteralImpl()

EMF generated code
Method Detail

eStaticClass

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

Overrides:
eStaticClass in class LinePartImpl
EMF generated code

getLiteral

public RichStringLiteral getLiteral()

Specified by:
getLiteral in interface Literal
Returns:
the value of the 'Literal' reference.
See Also:
Literal.setLiteral(RichStringLiteral), ProcessedRichStringPackage.getLiteral_Literal()
EMF generated code

basicGetLiteral

public RichStringLiteral basicGetLiteral()

EMF generated code

setLiteral

public void setLiteral(RichStringLiteral newLiteral)

Specified by:
setLiteral in interface Literal
Parameters:
newLiteral - the new value of the 'Literal' reference.
See Also:
Literal.getLiteral()
EMF generated code

getOffset

public int getOffset()

Specified by:
getOffset in interface Literal
Returns:
the value of the 'Offset' attribute.
See Also:
Literal.setOffset(int), ProcessedRichStringPackage.getLiteral_Offset()
EMF generated code

setOffset

public void setOffset(int newOffset)

Specified by:
setOffset in interface Literal
Parameters:
newOffset - the new value of the 'Offset' attribute.
See Also:
Literal.getOffset()
EMF generated code

getLength

public int getLength()

Specified by:
getLength in interface Literal
Returns:
the value of the 'Length' attribute.
See Also:
Literal.setLength(int), ProcessedRichStringPackage.getLiteral_Length()
EMF generated code

setLength

public void setLength(int newLength)

Specified by:
setLength in interface Literal
Parameters:
newLength - the new value of the 'Length' attribute.
See Also:
Literal.getLength()
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 LinePartImpl
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 LinePartImpl
EMF generated code

eUnset

public void eUnset(int featureID)

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

eIsSet

public boolean eIsSet(int featureID)

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

toString

public java.lang.String toString()

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