public interface JCompilationUnit extends JModelElement
The following features are supported:
JavaPackage.getJCompilationUnit()
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getComment()
Returns the value of the 'Comment' attribute
|
EList<JPackage> |
getImportedPackages()
Returns the value of the 'Imported Packages' reference list.
|
EList<JClass> |
getImportedTypes()
Returns the value of the 'Imported Types' reference list.
|
EList<java.lang.String> |
getImports()
Returns the value of the 'Imports' attribute list.
|
JPackage |
getPackage()
Returns the value of the 'Package' reference
|
EList<JClass> |
getTypes()
Returns the value of the 'Types' containment reference list.
|
void |
resolveIdentifiers()
Resolves all package and class references based on the source;
the JNode must be present.
|
JClass |
resolveJClass(java.lang.String qualifiedName) |
void |
setComment(java.lang.String value)
Sets the value of the '
Comment ' attribute |
void |
setPackage(JPackage value)
Sets the value of the '
Package ' reference |
getJNode, getName, getQualifiedName, setJNode, setName
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
eAdapters, eDeliver, eNotify, eSetDeliver
JPackage getPackage()
setPackage(JPackage)
,
JavaPackage.getJCompilationUnit_Package()
void setPackage(JPackage value)
Package
' reference.
value
- the new value of the 'Package' reference.getPackage()
EList<java.lang.String> getImports()
String
.
JavaPackage.getJCompilationUnit_Imports()
java.lang.String getComment()
setComment(String)
,
JavaPackage.getJCompilationUnit_Comment()
void setComment(java.lang.String value)
Comment
' attribute.
value
- the new value of the 'Comment' attribute.getComment()
EList<JClass> getTypes()
JClass
.
It is bidirectional and its opposite is 'Unit
'.
JavaPackage.getJCompilationUnit_Types()
,
JClass.getUnit()
EList<JPackage> getImportedPackages()
JPackage
.
JavaPackage.getJCompilationUnit_ImportedPackages()
EList<JClass> getImportedTypes()
JClass
.
JavaPackage.getJCompilationUnit_ImportedTypes()
void resolveIdentifiers()
JClass resolveJClass(java.lang.String qualifiedName)