org.eclipse.xtext.resource
Interface IResourceDescription
- All Superinterfaces:
- ISelectable
- All Known Implementing Classes:
- AbstractResourceDescription, CopiedResourceDescription, DefaultResourceDescription, LayeredTypeResourceDescription, ResourceDescriptionImpl, StatefulResourceDescription, TypeResourceDescription, URIBasedTestResourceDescription, URIBasedTestResourceDescription
public interface IResourceDescription
- extends ISelectable
A representation of a resource's contents as an ISelectable
.
The exported objects of a Resource
describe its public interface.
A description
holds information about the
imported names
which can be used to compute the
transitive closure when a resource is modified. Information about the actually
established cross references
is available, too.
- Author:
- Sebastian Zarnekow - Initial contribution and API, Sven Efftinge, Jan Koehnlein
getExportedObjects
java.lang.Iterable<IEObjectDescription> getExportedObjects()
- Specified by:
getExportedObjects
in interface ISelectable
- Returns:
- descriptions of all EObjects provided by the given Resource. The result is expected to return any
combination of
name
and eObjectOrProxy
only once as an
IEObjectDescription
. The order of the exported objects matters.
getImportedNames
java.lang.Iterable<QualifiedName> getImportedNames()
- Returns:
- the list of names the described resource depends depends on.
getReferenceDescriptions
java.lang.Iterable<IReferenceDescription> getReferenceDescriptions()
- Returns:
- the list of all references contained in the underlying resource.
getURI
org.eclipse.emf.common.util.URI getURI()
- Returns:
- the uri of the described resource. Will not return
null
.