org.eclipse.emf.java.impl
Class JFieldImpl

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.EObjectImpl
              extended by org.eclipse.emf.java.impl.JModelElementImpl
                  extended by org.eclipse.emf.java.impl.JMemberImpl
                      extended by org.eclipse.emf.java.impl.JFieldImpl
All Implemented Interfaces:
Notifier, EObject, InternalEObject, JField, JMember, JModelElement

public class JFieldImpl
extends JMemberImpl
implements JField

An implementation of the model object 'JField'.

The following features are implemented:


Nested Class Summary
protected static class JFieldImpl.JHelper
           
 
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
BasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderBaseImpl, BasicEObjectImpl.EPropertiesHolderImpl
 
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
BasicNotifierImpl.EAdapterList<E extends java.lang.Object & Adapter>, BasicNotifierImpl.EObservableAdapterList
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
InternalEObject.EStore
 
Field Summary
protected  boolean final_
          The cached value of the 'Final' attribute
protected static boolean FINAL_EDEFAULT
          The default value of the 'Final' attribute
protected  java.lang.String initializer
          The cached value of the 'Initializer' attribute
protected static java.lang.String INITIALIZER_EDEFAULT
          The default value of the 'Initializer' attribute
protected static java.lang.reflect.Field JAVA_FIELD_EDEFAULT
          The default value of the 'Java Field' attribute
protected  java.lang.reflect.Field javaField
          The cached value of the 'Java Field' attribute
protected  boolean transient_
          The cached value of the 'Transient' attribute
protected static boolean TRANSIENT_EDEFAULT
          The default value of the 'Transient' attribute
protected  JClass type
          The cached value of the 'Type' reference
protected  boolean volatile_
          The cached value of the 'Volatile' attribute
protected static boolean VOLATILE_EDEFAULT
          The default value of the 'Volatile' attribute
 
Fields inherited from class org.eclipse.emf.java.impl.JMemberImpl
comment, COMMENT_EDEFAULT, static_, STATIC_EDEFAULT, visibility, VISIBILITY_EDEFAULT
 
Fields inherited from class org.eclipse.emf.java.impl.JModelElementImpl
isReconciling, jNode, JNODE_EDEFAULT, 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
protected JFieldImpl()
           
 
Method Summary
 JClass basicGetType()
           
protected  void changeAttribute(Notification notification)
           
 java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
           
 boolean eIsSet(int featureID)
           
 void eSet(int featureID, java.lang.Object newValue)
           
protected  EClass eStaticClass()
           
 void eUnset(int featureID)
           
 java.lang.String getInitializer()
           
 java.lang.reflect.Field getJavaField()
           
 JClass getType()
           
 boolean isFinal()
           
 boolean isTransient()
           
 boolean isVolatile()
           
protected  void resolveIdentifiers()
           
 void setFinal(boolean newFinal)
           
 void setInitializer(java.lang.String newInitializer)
           
 void setJavaField(java.lang.reflect.Field newJavaField)
           
 void setTransient(boolean newTransient)
           
 void setType(JClass newType)
           
 void setVolatile(boolean newVolatile)
           
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.emf.java.impl.JMemberImpl
basicSetContainingType, eBasicRemoveFromContainerFeature, eInverseAdd, eInverseRemove, getComment, getContainingType, getVisibility, isStatic, setComment, setContainingType, setStatic, setVisibility
 
Methods inherited from class org.eclipse.emf.java.impl.JModelElementImpl
adoptContent, changeReference, eNotificationRequired, eNotify, getJNode, getName, getQualifiedName, moveContent, orphanContent, setJNode, setJNodeGen, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.java.JMember
getComment, getContainingType, getVisibility, isStatic, setComment, setContainingType, setStatic, setVisibility
 
Methods inherited from interface org.eclipse.emf.java.JModelElement
getJNode, getName, getQualifiedName, setJNode, setName
 
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
 

Field Detail

FINAL_EDEFAULT

protected static final boolean FINAL_EDEFAULT
The default value of the 'Final' attribute.

See Also:
isFinal(), Constant Field Values

final_

protected boolean final_
The cached value of the 'Final' attribute.

See Also:
isFinal()

TRANSIENT_EDEFAULT

protected static final boolean TRANSIENT_EDEFAULT
The default value of the 'Transient' attribute.

See Also:
isTransient(), Constant Field Values

transient_

protected boolean transient_
The cached value of the 'Transient' attribute.

See Also:
isTransient()

VOLATILE_EDEFAULT

protected static final boolean VOLATILE_EDEFAULT
The default value of the 'Volatile' attribute.

See Also:
isVolatile(), Constant Field Values

volatile_

protected boolean volatile_
The cached value of the 'Volatile' attribute.

See Also:
isVolatile()

JAVA_FIELD_EDEFAULT

protected static final java.lang.reflect.Field JAVA_FIELD_EDEFAULT
The default value of the 'Java Field' attribute.

See Also:
getJavaField()

javaField

protected java.lang.reflect.Field javaField
The cached value of the 'Java Field' attribute.

See Also:
getJavaField()

INITIALIZER_EDEFAULT

protected static final java.lang.String INITIALIZER_EDEFAULT
The default value of the 'Initializer' attribute.

See Also:
getInitializer()

initializer

protected java.lang.String initializer
The cached value of the 'Initializer' attribute.

See Also:
getInitializer()

type

protected JClass type
The cached value of the 'Type' reference.

See Also:
getType()
Constructor Detail

JFieldImpl

protected JFieldImpl()

Method Detail

eStaticClass

protected EClass eStaticClass()

Overrides:
eStaticClass in class JMemberImpl

isFinal

public boolean isFinal()

Specified by:
isFinal in interface JField
Returns:
the value of the 'Final' attribute.
See Also:
JField.setFinal(boolean), JavaPackage.getJField_Final()

setFinal

public void setFinal(boolean newFinal)

Specified by:
setFinal in interface JField
Parameters:
newFinal - the new value of the 'Final' attribute.
See Also:
JField.isFinal()

isTransient

public boolean isTransient()

Specified by:
isTransient in interface JField
Returns:
the value of the 'Transient' attribute.
See Also:
JField.setTransient(boolean), JavaPackage.getJField_Transient()

setTransient

public void setTransient(boolean newTransient)

Specified by:
setTransient in interface JField
Parameters:
newTransient - the new value of the 'Transient' attribute.
See Also:
JField.isTransient()

isVolatile

public boolean isVolatile()

Specified by:
isVolatile in interface JField
Returns:
the value of the 'Volatile' attribute.
See Also:
JField.setVolatile(boolean), JavaPackage.getJField_Volatile()

setVolatile

public void setVolatile(boolean newVolatile)

Specified by:
setVolatile in interface JField
Parameters:
newVolatile - the new value of the 'Volatile' attribute.
See Also:
JField.isVolatile()

getJavaField

public java.lang.reflect.Field getJavaField()

Specified by:
getJavaField in interface JField
Returns:
the value of the 'Java Field' attribute.
See Also:
JField.setJavaField(Field), JavaPackage.getJField_JavaField()

setJavaField

public void setJavaField(java.lang.reflect.Field newJavaField)

Specified by:
setJavaField in interface JField
Parameters:
newJavaField - the new value of the 'Java Field' attribute.
See Also:
JField.getJavaField()

getInitializer

public java.lang.String getInitializer()

Specified by:
getInitializer in interface JField
Returns:
the value of the 'Initializer' attribute.
See Also:
JField.setInitializer(String), JavaPackage.getJField_Initializer()

setInitializer

public void setInitializer(java.lang.String newInitializer)

Specified by:
setInitializer in interface JField
Parameters:
newInitializer - the new value of the 'Initializer' attribute.
See Also:
JField.getInitializer()

getType

public JClass getType()

Specified by:
getType in interface JField
Returns:
the value of the 'Type' reference.
See Also:
JField.setType(JClass), JavaPackage.getJField_Type()

basicGetType

public JClass basicGetType()


setType

public void setType(JClass newType)

Specified by:
setType in interface JField
Parameters:
newType - the new value of the 'Type' reference.
See Also:
JField.getType()

eGet

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

Specified by:
eGet in interface InternalEObject
Overrides:
eGet in class JMemberImpl
See Also:
InternalEObject.eGet(EStructuralFeature, boolean, boolean)

eSet

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

Specified by:
eSet in interface InternalEObject
Overrides:
eSet in class JMemberImpl
See Also:
EObject.eSet(EStructuralFeature, Object)

eUnset

public void eUnset(int featureID)

Specified by:
eUnset in interface InternalEObject
Overrides:
eUnset in class JMemberImpl
See Also:
EObject.eUnset(EStructuralFeature)

eIsSet

public boolean eIsSet(int featureID)

Specified by:
eIsSet in interface InternalEObject
Overrides:
eIsSet in class JMemberImpl
See Also:
EObject.eIsSet(EStructuralFeature)

toString

public java.lang.String toString()

Overrides:
toString in class JMemberImpl

changeAttribute

protected void changeAttribute(Notification notification)
Overrides:
changeAttribute in class JModelElementImpl

resolveIdentifiers

protected void resolveIdentifiers()
Overrides:
resolveIdentifiers in class JModelElementImpl

Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.