Package org.eclipse.xtext.resource
Interface IResourceDescription
-
- All Superinterfaces:
ISelectable
- All Known Implementing Classes:
AbstractResourceDescription,DefaultResourceDescription,ResolvedResourceDescription,SerializableResourceDescription
public interface IResourceDescription extends ISelectable
A representation of a resource's contents as anISelectable. The exported objects of aResourcedescribe its public interface. Adescriptionholds information about theimported nameswhich can be used to compute the transitive closure when a resource is modified. Information about the actually establishedcross referencesis available, too.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceIResourceDescription.CoarseGrainedEventThis event is used to indicate that there were changes but it was not possible to determine what kind of changes had been done.static interfaceIResourceDescription.DeltaA delta describing the differences between two versions of the sameIResourceDescription.static interfaceIResourceDescription.Eventstatic interfaceIResourceDescription.Manager
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Iterable<IEObjectDescription>getExportedObjects()java.lang.Iterable<QualifiedName>getImportedNames()java.lang.Iterable<IReferenceDescription>getReferenceDescriptions()org.eclipse.emf.common.util.URIgetURI()-
Methods inherited from interface org.eclipse.xtext.resource.ISelectable
getExportedObjects, getExportedObjectsByObject, getExportedObjectsByType, isEmpty
-
-
-
-
Method Detail
-
getExportedObjects
java.lang.Iterable<IEObjectDescription> getExportedObjects()
- Specified by:
getExportedObjectsin interfaceISelectable- Returns:
- descriptions of all EObjects provided by the given Resource. The result is expected to return any
combination of
nameandeObjectOrProxyonly once as anIEObjectDescription. The order of the exported objects matters.
-
getImportedNames
java.lang.Iterable<QualifiedName> getImportedNames()
- Returns:
- the list of names the described resource 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.
-
-