public class JCompilationUnitImpl extends JModelElementImpl implements JCompilationUnit
The following features are implemented:
| Modifier and Type | Class and Description |
|---|---|
protected static class |
JCompilationUnitImpl.JHelper |
BasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderBaseImpl, BasicEObjectImpl.EPropertiesHolderImplBasicNotifierImpl.EAdapterList<E extends java.lang.Object & Adapter>, BasicNotifierImpl.EObservableAdapterListInternalEObject.EStore| Modifier and Type | Field and Description |
|---|---|
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 |
isReconciling, jNode, JNODE_EDEFAULT, name, NAME_EDEFAULTeAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXYEVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSETEOPPOSITE_FEATURE_BASE| Modifier | Constructor and Description |
|---|---|
protected |
JCompilationUnitImpl() |
| Modifier and Type | Method and Description |
|---|---|
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() |
adoptContent, changeReference, eNotificationRequired, eNotify, getJNode, getName, getQualifiedName, moveContent, orphanContent, setJNode, setJNodeGen, setNameeAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURIeAddVirtualValue, 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, eVirtualValueseBasicAdapterArray, eBasicHasAdaptersclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetJNode, getName, getQualifiedName, setJNode, setNameeAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnseteAdapters, eDeliver, eNotify, eSetDeliverprotected EList<java.lang.String> imports
Imports' attribute list.
getImports()protected static final java.lang.String COMMENT_EDEFAULT
Comment' attribute.
getComment()protected java.lang.String comment
Comment' attribute.
getComment()protected EList<JClass> types
Types' containment reference list.
getTypes()protected EList<JPackage> importedPackages
Imported Packages' reference list.
getImportedPackages()protected EList<JClass> importedTypes
Imported Types' reference list.
getImportedTypes()protected JPackage package_
Package' reference.
getPackage()protected EClass eStaticClass()
eStaticClass in class JModelElementImplpublic JPackage getPackage()
getPackage in interface JCompilationUnitJCompilationUnit.setPackage(JPackage),
JavaPackage.getJCompilationUnit_Package()public JPackage basicGetPackage()
public void setPackage(JPackage newPackage)
setPackage in interface JCompilationUnitnewPackage - the new value of the 'Package' reference.JCompilationUnit.getPackage()public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
eInverseAdd in class BasicEObjectImplpublic NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
eInverseRemove in class BasicEObjectImplpublic EList<java.lang.String> getImports()
getImports in interface JCompilationUnitJavaPackage.getJCompilationUnit_Imports()public java.lang.String getComment()
getComment in interface JCompilationUnitJCompilationUnit.setComment(String),
JavaPackage.getJCompilationUnit_Comment()public void setComment(java.lang.String newComment)
setComment in interface JCompilationUnitnewComment - the new value of the 'Comment' attribute.JCompilationUnit.getComment()public EList<JClass> getTypes()
getTypes in interface JCompilationUnitJavaPackage.getJCompilationUnit_Types(),
JClass.getUnit()public EList<JPackage> getImportedPackages()
getImportedPackages in interface JCompilationUnitJavaPackage.getJCompilationUnit_ImportedPackages()public EList<JClass> getImportedTypes()
getImportedTypes in interface JCompilationUnitJavaPackage.getJCompilationUnit_ImportedTypes()public java.lang.Object eGet(int featureID,
boolean resolve,
boolean coreType)
eGet in interface InternalEObjecteGet in class JModelElementImplInternalEObject.eGet(EStructuralFeature, boolean, boolean)public void eSet(int featureID,
java.lang.Object newValue)
eSet in interface InternalEObjecteSet in class JModelElementImplEObject.eSet(EStructuralFeature, Object)public void eUnset(int featureID)
eUnset in interface InternalEObjecteUnset in class JModelElementImplEObject.eUnset(EStructuralFeature)public boolean eIsSet(int featureID)
eIsSet in interface InternalEObjecteIsSet in class JModelElementImplEObject.eIsSet(EStructuralFeature)public java.lang.String toString()
toString in class JModelElementImplprotected void changeAttribute(Notification notification)
changeAttribute in class JModelElementImplpublic void resolveIdentifiers()
JCompilationUnitresolveIdentifiers in interface JCompilationUnitresolveIdentifiers in class JModelElementImplpublic JClass resolveJClass(java.lang.String fullName)
resolveJClass in interface JCompilationUnitprotected JClass handlePackageImport(ResourceSet resourceSet, java.lang.String packageName, java.lang.String fullName)