org.eclipse.emf.java.impl
Class JCompilationUnitImpl

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.JCompilationUnitImpl
All Implemented Interfaces:
Notifier, EObject, InternalEObject, JCompilationUnit, JModelElement

public class JCompilationUnitImpl
extends JModelElementImpl
implements JCompilationUnit

An implementation of the model object 'JCompilation Unit'.

The following features are implemented:


Nested Class Summary
protected static class JCompilationUnitImpl.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  java.lang.String comment
          The cached value of the 'Comment' attribute
protected static java.lang.String COMMENT_EDEFAULT
          The default value of the 'Comment' attribute
protected  EList<JPackage> importedPackages
          The cached value of the 'Imported Packages' reference list
protected  EList<JClass> importedTypes
          The cached value of the 'Imported Types' reference list
protected  EList<java.lang.String> imports
          The cached value of the 'Imports' attribute list
protected  JPackage package_
          The cached value of the 'Package' reference
protected  EList<JClass> types
          The cached value of the 'Types' containment reference list
 
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 JCompilationUnitImpl()
           
 
Method Summary
 JPackage basicGetPackage()
           
protected  void changeAttribute(Notification notification)
           
 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)
           
 void eSet(int featureID, java.lang.Object newValue)
           
protected  EClass eStaticClass()
           
 void eUnset(int featureID)
           
 java.lang.String getComment()
           
 EList<JPackage> getImportedPackages()
           
 EList<JClass> getImportedTypes()
           
 EList<java.lang.String> getImports()
           
 JPackage getPackage()
           
 EList<JClass> getTypes()
           
protected  JClass handlePackageImport(ResourceSet resourceSet, java.lang.String packageName, java.lang.String fullName)
           
 void resolveIdentifiers()
          Resolves all package and class references based on the source; the JNode must be present.
 JClass resolveJClass(java.lang.String fullName)
           
 void setComment(java.lang.String newComment)
           
 void setPackage(JPackage newPackage)
           
 java.lang.String toString()
           
 
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, eBasicRemoveFromContainerFeature, 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.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

imports

protected EList<java.lang.String> imports
The cached value of the 'Imports' attribute list.

See Also:
getImports()

COMMENT_EDEFAULT

protected static final java.lang.String COMMENT_EDEFAULT
The default value of the 'Comment' attribute.

See Also:
getComment()

comment

protected java.lang.String comment
The cached value of the 'Comment' attribute.

See Also:
getComment()

types

protected EList<JClass> types
The cached value of the 'Types' containment reference list.

See Also:
getTypes()

importedPackages

protected EList<JPackage> importedPackages
The cached value of the 'Imported Packages' reference list.

See Also:
getImportedPackages()

importedTypes

protected EList<JClass> importedTypes
The cached value of the 'Imported Types' reference list.

See Also:
getImportedTypes()

package_

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

See Also:
getPackage()
Constructor Detail

JCompilationUnitImpl

protected JCompilationUnitImpl()

Method Detail

eStaticClass

protected EClass eStaticClass()

Overrides:
eStaticClass in class JModelElementImpl

getPackage

public JPackage getPackage()

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

basicGetPackage

public JPackage basicGetPackage()


setPackage

public void setPackage(JPackage newPackage)

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

eInverseAdd

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

Overrides:
eInverseAdd in class BasicEObjectImpl

eInverseRemove

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

Overrides:
eInverseRemove in class BasicEObjectImpl

getImports

public EList<java.lang.String> getImports()

Specified by:
getImports in interface JCompilationUnit
Returns:
the value of the 'Imports' attribute list.
See Also:
JavaPackage.getJCompilationUnit_Imports()

getComment

public java.lang.String getComment()

Specified by:
getComment in interface JCompilationUnit
Returns:
the value of the 'Comment' attribute.
See Also:
JCompilationUnit.setComment(String), JavaPackage.getJCompilationUnit_Comment()

setComment

public void setComment(java.lang.String newComment)

Specified by:
setComment in interface JCompilationUnit
Parameters:
newComment - the new value of the 'Comment' attribute.
See Also:
JCompilationUnit.getComment()

getTypes

public EList<JClass> getTypes()

Specified by:
getTypes in interface JCompilationUnit
Returns:
the value of the 'Types' containment reference list.
See Also:
JavaPackage.getJCompilationUnit_Types(), JClass.getUnit()

getImportedPackages

public EList<JPackage> getImportedPackages()

Specified by:
getImportedPackages in interface JCompilationUnit
Returns:
the value of the 'Imported Packages' reference list.
See Also:
JavaPackage.getJCompilationUnit_ImportedPackages()

getImportedTypes

public EList<JClass> getImportedTypes()

Specified by:
getImportedTypes in interface JCompilationUnit
Returns:
the value of the 'Imported Types' reference list.
See Also:
JavaPackage.getJCompilationUnit_ImportedTypes()

eGet

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

Specified by:
eGet in interface InternalEObject
Overrides:
eGet in class JModelElementImpl
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 JModelElementImpl
See Also:
EObject.eSet(EStructuralFeature, Object)

eUnset

public void eUnset(int featureID)

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

eIsSet

public boolean eIsSet(int featureID)

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

toString

public java.lang.String toString()

Overrides:
toString in class JModelElementImpl

changeAttribute

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

resolveIdentifiers

public void resolveIdentifiers()
Description copied from interface: JCompilationUnit
Resolves all package and class references based on the source; the JNode must be present. EATM

Specified by:
resolveIdentifiers in interface JCompilationUnit
Overrides:
resolveIdentifiers in class JModelElementImpl

resolveJClass

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

handlePackageImport

protected JClass handlePackageImport(ResourceSet resourceSet,
                                     java.lang.String packageName,
                                     java.lang.String fullName)

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