org.eclipse.emf.java
Interface JCompilationUnit

All Superinterfaces:
EObject, JModelElement, Notifier
All Known Implementing Classes:
JCompilationUnitImpl

public interface JCompilationUnit
extends JModelElement

A representation of the model object 'JCompilation Unit'.

The following features are supported:

See Also:
JavaPackage.getJCompilationUnit()

Method Summary
 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
 
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
 

Method Detail

getPackage

JPackage getPackage()
Returns the value of the 'Package' reference.

Returns:
the value of the 'Package' reference.
See Also:
setPackage(JPackage), JavaPackage.getJCompilationUnit_Package()

setPackage

void setPackage(JPackage value)
Sets the value of the 'Package' reference.

Parameters:
value - the new value of the 'Package' reference.
See Also:
getPackage()

getImports

EList<java.lang.String> getImports()
Returns the value of the 'Imports' attribute list. The list contents are of type String.

Returns:
the value of the 'Imports' attribute list.
See Also:
JavaPackage.getJCompilationUnit_Imports()

getComment

java.lang.String getComment()
Returns the value of the 'Comment' attribute.

Returns:
the value of the 'Comment' attribute.
See Also:
setComment(String), JavaPackage.getJCompilationUnit_Comment()

setComment

void setComment(java.lang.String value)
Sets the value of the 'Comment' attribute.

Parameters:
value - the new value of the 'Comment' attribute.
See Also:
getComment()

getTypes

EList<JClass> getTypes()
Returns the value of the 'Types' containment reference list. The list contents are of type JClass. It is bidirectional and its opposite is 'Unit'.

Returns:
the value of the 'Types' containment reference list.
See Also:
JavaPackage.getJCompilationUnit_Types(), JClass.getUnit()

getImportedPackages

EList<JPackage> getImportedPackages()
Returns the value of the 'Imported Packages' reference list. The list contents are of type JPackage.

Returns:
the value of the 'Imported Packages' reference list.
See Also:
JavaPackage.getJCompilationUnit_ImportedPackages()

getImportedTypes

EList<JClass> getImportedTypes()
Returns the value of the 'Imported Types' reference list. The list contents are of type JClass.

Returns:
the value of the 'Imported Types' reference list.
See Also:
JavaPackage.getJCompilationUnit_ImportedTypes()

resolveIdentifiers

void resolveIdentifiers()
Resolves all package and class references based on the source; the JNode must be present. EATM


resolveJClass

JClass resolveJClass(java.lang.String qualifiedName)

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