|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.EObjectImpl
org.eclipse.emf.java.impl.JModelElementImpl
org.eclipse.emf.java.impl.JCompilationUnitImpl
public class JCompilationUnitImpl
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.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 |
|---|
protected 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()| Constructor Detail |
|---|
protected JCompilationUnitImpl()
| Method Detail |
|---|
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 BasicEObjectImpl
public 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()
JCompilationUnit
resolveIdentifiers in interface JCompilationUnitresolveIdentifiers in class JModelElementImplpublic JClass resolveJClass(java.lang.String fullName)
resolveJClass in interface JCompilationUnit
protected JClass handlePackageImport(ResourceSet resourceSet,
java.lang.String packageName,
java.lang.String fullName)
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||