org.eclipse.emf.java.impl
Class JClassImpl

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.JClassImpl
All Implemented Interfaces:
Notifier, EObject, InternalEObject, JClass, JMember, JModelElement

public class JClassImpl
extends JMemberImpl
implements JClass

An implementation of the model object 'JClass'.

The following features are implemented:


Nested Class Summary
protected static class JClassImpl.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 abstract_
          The cached value of the 'Abstract' attribute
protected static boolean ABSTRACT_EDEFAULT
          The default value of the 'Abstract' attribute
protected  EList<JClass> allTypes
           
protected  JClass arrayType
          The cached value of the 'Array Type' containment reference
protected  boolean final_
          The cached value of the 'Final' attribute
protected static boolean FINAL_EDEFAULT
          The default value of the 'Final' attribute
protected  boolean interface_
          The cached value of the 'Interface' attribute
protected static boolean INTERFACE_EDEFAULT
          The default value of the 'Interface' attribute
protected  java.lang.Class<?> javaClass
          The cached value of the 'Java Class' attribute
protected  EList<JMember> members
          The cached value of the 'Members' containment reference list
protected  JPackage package_
          The cached value of the 'Package' reference
protected  EList<JClass> superTypes
          The cached value of the 'Super Types' reference list
protected  boolean throwable
          The cached value of the 'Throwable' attribute
protected static boolean THROWABLE_EDEFAULT
          The default value of the 'Throwable' attribute
protected  EList<JClass> types
           
 
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 JClassImpl()
           
 
Method Summary
 JPackage basicGetPackage()
           
 NotificationChain basicSetArrayType(JClass newArrayType, NotificationChain msgs)
           
 NotificationChain basicSetComponentType(JClass newComponentType, NotificationChain msgs)
           
 NotificationChain basicSetPackage(JPackage newPackage, NotificationChain msgs)
           
 NotificationChain basicSetUnit(JCompilationUnit newUnit, NotificationChain msgs)
           
protected  void changeAttribute(Notification notification)
           
protected
<T> void
collectAll(EStructuralFeature eStructuralFeature, EList<T> target)
           
 NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs)
           
 java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
           
 NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
           
 NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
           
 boolean eIsSet(int featureID)
           
 EObject eObjectForURIFragmentSegment(java.lang.String uriFragmentSegment)
          Returns the object resolved by the fragment segment.
 void eSet(int featureID, java.lang.Object newValue)
           
protected  EClass eStaticClass()
           
 void eUnset(int featureID)
           
 EList<JField> getAllFields()
           
 EList<JMethod> getAllMethods()
           
 EList<JClass> getAllSuperTypes()
           
 EList<JClass> getAllTypes()
           
 JClass getArrayType()
           
 JClass getComponentType()
           
 EList<JField> getFields()
           
 java.lang.Class<?> getJavaClass()
           
 EList<JMember> getMembers()
           
 EList<JMethod> getMethods()
           
 JPackage getPackage()
           
 java.lang.String getQualifiedName()
           
 EList<JClass> getSuperTypes()
           
 EList<JClass> getTypes()
           
 JCompilationUnit getUnit()
           
 boolean isAbstract()
           
 boolean isFinal()
           
 boolean isInterface()
           
 boolean isThrowable()
           
protected  void resolveIdentifiers()
           
 JClass resolveJClass(java.lang.String fullName)
           
 void setAbstract(boolean newAbstract)
           
 void setArrayType(JClass newArrayType)
           
 void setComponentType(JClass newComponentType)
           
 void setFinal(boolean newFinal)
           
 void setInterface(boolean newInterface)
           
 void setJavaClass(java.lang.Class<?> newJavaClass)
           
 void setPackage(JPackage newPackage)
           
 void setThrowable(boolean newThrowable)
           
 void setUnit(JCompilationUnit newUnit)
           
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.emf.java.impl.JMemberImpl
basicSetContainingType, getComment, getContainingType, getVisibility, isStatic, setComment, setContainingType, setStatic, setVisibility
 
Methods inherited from class org.eclipse.emf.java.impl.JModelElementImpl
adoptContent, changeReference, eNotificationRequired, eNotify, getJNode, getName, 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, 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, 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

ABSTRACT_EDEFAULT

protected static final boolean ABSTRACT_EDEFAULT
The default value of the 'Abstract' attribute.

See Also:
isAbstract(), Constant Field Values

abstract_

protected boolean abstract_
The cached value of the 'Abstract' attribute.

See Also:
isAbstract()

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()

INTERFACE_EDEFAULT

protected static final boolean INTERFACE_EDEFAULT
The default value of the 'Interface' attribute.

See Also:
isInterface(), Constant Field Values

interface_

protected boolean interface_
The cached value of the 'Interface' attribute.

See Also:
isInterface()

THROWABLE_EDEFAULT

protected static final boolean THROWABLE_EDEFAULT
The default value of the 'Throwable' attribute.

See Also:
isThrowable(), Constant Field Values

throwable

protected boolean throwable
The cached value of the 'Throwable' attribute.

See Also:
isThrowable()

javaClass

protected java.lang.Class<?> javaClass
The cached value of the 'Java Class' attribute.

See Also:
getJavaClass()

superTypes

protected EList<JClass> superTypes
The cached value of the 'Super Types' reference list.

See Also:
getSuperTypes()

members

protected EList<JMember> members
The cached value of the 'Members' containment reference list.

See Also:
getMembers()

arrayType

protected JClass arrayType
The cached value of the 'Array Type' containment reference.

See Also:
getArrayType()

package_

protected JPackage package_
The cached value of the 'Package' reference.

See Also:
getPackage()

types

protected EList<JClass> types

allTypes

protected EList<JClass> allTypes
Constructor Detail

JClassImpl

protected JClassImpl()

Method Detail

eStaticClass

protected EClass eStaticClass()

Overrides:
eStaticClass in class JMemberImpl

isAbstract

public boolean isAbstract()

Specified by:
isAbstract in interface JClass
Returns:
the value of the 'Abstract' attribute.
See Also:
JClass.setAbstract(boolean), JavaPackage.getJClass_Abstract()

setAbstract

public void setAbstract(boolean newAbstract)

Specified by:
setAbstract in interface JClass
Parameters:
newAbstract - the new value of the 'Abstract' attribute.
See Also:
JClass.isAbstract()

isFinal

public boolean isFinal()

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

setFinal

public void setFinal(boolean newFinal)

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

isInterface

public boolean isInterface()

Specified by:
isInterface in interface JClass
Returns:
the value of the 'Interface' attribute.
See Also:
JClass.setInterface(boolean), JavaPackage.getJClass_Interface()

setInterface

public void setInterface(boolean newInterface)

Specified by:
setInterface in interface JClass
Parameters:
newInterface - the new value of the 'Interface' attribute.
See Also:
JClass.isInterface()

isThrowable

public boolean isThrowable()

Specified by:
isThrowable in interface JClass
Returns:
the value of the 'Throwable' attribute.
See Also:
JClass.setThrowable(boolean), JavaPackage.getJClass_Throwable()

setThrowable

public void setThrowable(boolean newThrowable)

Specified by:
setThrowable in interface JClass
Parameters:
newThrowable - the new value of the 'Throwable' attribute.
See Also:
JClass.isThrowable()

getJavaClass

public java.lang.Class<?> getJavaClass()

Specified by:
getJavaClass in interface JClass
Returns:
the value of the 'Java Class' attribute.
See Also:
JClass.setJavaClass(Class), JavaPackage.getJClass_JavaClass()

setJavaClass

public void setJavaClass(java.lang.Class<?> newJavaClass)

Specified by:
setJavaClass in interface JClass
Parameters:
newJavaClass - the new value of the 'Java Class' attribute.
See Also:
JClass.getJavaClass()

getFields

public EList<JField> getFields()

Specified by:
getFields in interface JClass
Returns:
the value of the 'Fields' reference list.
See Also:
JavaPackage.getJClass_Fields()

getMethods

public EList<JMethod> getMethods()

Specified by:
getMethods in interface JClass
Returns:
the value of the 'Methods' reference list.
See Also:
JavaPackage.getJClass_Methods()

getSuperTypes

public EList<JClass> getSuperTypes()

Specified by:
getSuperTypes in interface JClass
Returns:
the value of the 'Super Types' reference list.
See Also:
JavaPackage.getJClass_SuperTypes()

getAllSuperTypes

public EList<JClass> getAllSuperTypes()

Specified by:
getAllSuperTypes in interface JClass
Returns:
the value of the 'All Super Types' reference list.
See Also:
JavaPackage.getJClass_AllSuperTypes()

collectAll

protected <T> void collectAll(EStructuralFeature eStructuralFeature,
                              EList<T> target)

getMembers

public EList<JMember> getMembers()

Specified by:
getMembers in interface JClass
Returns:
the value of the 'Members' containment reference list.
See Also:
JavaPackage.getJClass_Members(), JMember.getContainingType()

getComponentType

public JClass getComponentType()

Specified by:
getComponentType in interface JClass
Returns:
the value of the 'Component Type' container reference.
See Also:
JClass.setComponentType(JClass), JavaPackage.getJClass_ComponentType(), JClass.getArrayType()

basicSetComponentType

public NotificationChain basicSetComponentType(JClass newComponentType,
                                               NotificationChain msgs)


setComponentType

public void setComponentType(JClass newComponentType)

Specified by:
setComponentType in interface JClass
Parameters:
newComponentType - the new value of the 'Component Type' container reference.
See Also:
JClass.getComponentType()

getArrayType

public JClass getArrayType()

Specified by:
getArrayType in interface JClass
Returns:
the value of the 'Array Type' containment reference.
See Also:
JClass.setArrayType(JClass), JavaPackage.getJClass_ArrayType(), JClass.getComponentType()

basicSetArrayType

public NotificationChain basicSetArrayType(JClass newArrayType,
                                           NotificationChain msgs)


setArrayType

public void setArrayType(JClass newArrayType)

Specified by:
setArrayType in interface JClass
Parameters:
newArrayType - the new value of the 'Array Type' containment reference.
See Also:
JClass.getArrayType()

getUnit

public JCompilationUnit getUnit()

Specified by:
getUnit in interface JClass
Returns:
the value of the 'Unit' container reference.
See Also:
JClass.setUnit(JCompilationUnit), JavaPackage.getJClass_Unit(), JCompilationUnit.getTypes()

basicSetUnit

public NotificationChain basicSetUnit(JCompilationUnit newUnit,
                                      NotificationChain msgs)


setUnit

public void setUnit(JCompilationUnit newUnit)

Specified by:
setUnit in interface JClass
Parameters:
newUnit - the new value of the 'Unit' container reference.
See Also:
JClass.getUnit()

getAllMethods

public EList<JMethod> getAllMethods()

Specified by:
getAllMethods in interface JClass
Returns:
the value of the 'All Methods' reference list.
See Also:
JavaPackage.getJClass_AllMethods()

getAllFields

public EList<JField> getAllFields()

Specified by:
getAllFields in interface JClass
Returns:
the value of the 'All Fields' reference list.
See Also:
JavaPackage.getJClass_AllFields()

getPackage

public JPackage getPackage()

Specified by:
getPackage in interface JClass
Returns:
the value of the 'Package' reference.
See Also:
JClass.setPackage(JPackage), JavaPackage.getJClass_Package(), JPackage.getTypes()

basicGetPackage

public JPackage basicGetPackage()


basicSetPackage

public NotificationChain basicSetPackage(JPackage newPackage,
                                         NotificationChain msgs)


setPackage

public void setPackage(JPackage newPackage)

Specified by:
setPackage in interface JClass
Parameters:
newPackage - the new value of the 'Package' reference.
See Also:
JClass.getPackage()

getTypes

public EList<JClass> getTypes()

Specified by:
getTypes in interface JClass
Returns:
the value of the 'Types' reference list.
See Also:
JavaPackage.getJClass_Types()

getAllTypes

public EList<JClass> getAllTypes()

Specified by:
getAllTypes in interface JClass
Returns:
the value of the 'All Types' reference list.
See Also:
JavaPackage.getJClass_AllTypes()

eInverseAdd

public NotificationChain eInverseAdd(InternalEObject otherEnd,
                                     int featureID,
                                     NotificationChain msgs)

Overrides:
eInverseAdd in class JMemberImpl

eInverseRemove

public NotificationChain eInverseRemove(InternalEObject otherEnd,
                                        int featureID,
                                        NotificationChain msgs)

Overrides:
eInverseRemove in class JMemberImpl

eBasicRemoveFromContainerFeature

public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs)

Overrides:
eBasicRemoveFromContainerFeature in class JMemberImpl

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

resolveJClass

public JClass resolveJClass(java.lang.String fullName)
Specified by:
resolveJClass in interface JClass

eObjectForURIFragmentSegment

public EObject eObjectForURIFragmentSegment(java.lang.String uriFragmentSegment)
Description copied from interface: InternalEObject
Returns the object resolved by the fragment segment.

The fragment segment encoding will typically be of the form returned by eURIFragmentSegment.

Specified by:
eObjectForURIFragmentSegment in interface InternalEObject
Overrides:
eObjectForURIFragmentSegment in class BasicEObjectImpl
Parameters:
uriFragmentSegment - a fragment segment.
Returns:
the fragment segment that resolves to the given object in this object's given feature.

getQualifiedName

public java.lang.String getQualifiedName()
Specified by:
getQualifiedName in interface JModelElement
Overrides:
getQualifiedName in class JModelElementImpl

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