Package org.eclipse.xtext.resource.impl
Class DefaultResourceDescription
- java.lang.Object
-
- org.eclipse.xtext.resource.impl.AbstractResourceDescription
-
- org.eclipse.xtext.resource.impl.DefaultResourceDescription
-
- All Implemented Interfaces:
IResourceDescription
,ISelectable
public class DefaultResourceDescription extends AbstractResourceDescription
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.xtext.resource.IResourceDescription
IResourceDescription.CoarseGrainedEvent, IResourceDescription.Delta, IResourceDescription.Event, IResourceDescription.Manager
-
-
Field Summary
-
Fields inherited from class org.eclipse.xtext.resource.impl.AbstractResourceDescription
lookup
-
-
Constructor Summary
Constructors Constructor Description DefaultResourceDescription(org.eclipse.emf.ecore.resource.Resource resource, IDefaultResourceDescriptionStrategy strategy)
For testing.DefaultResourceDescription(org.eclipse.emf.ecore.resource.Resource resource, IDefaultResourceDescriptionStrategy strategy, org.eclipse.xtext.util.IResourceScopeCache cache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<IEObjectDescription>
computeExportedObjects()
protected java.util.List<IReferenceDescription>
computeReferenceDescriptions()
protected java.util.Map<org.eclipse.emf.ecore.EObject,IEObjectDescription>
createEObject2ExportedEObjectsMap(java.lang.Iterable<IEObjectDescription> exportedObjects)
protected org.eclipse.emf.common.util.URI
findExportedContainerURI(org.eclipse.emf.ecore.EObject referenceOwner, java.util.Map<org.eclipse.emf.ecore.EObject,IEObjectDescription> eObject2exportedEObjects)
java.lang.Iterable<QualifiedName>
getImportedNames()
protected EObjectDescriptionLookUp
getLookUp()
java.lang.Iterable<IReferenceDescription>
getReferenceDescriptions()
org.eclipse.emf.ecore.resource.Resource
getResource()
org.eclipse.emf.common.util.URI
getURI()
java.lang.String
toString()
-
Methods inherited from class org.eclipse.xtext.resource.impl.AbstractResourceDescription
getExportedObjects, getExportedObjects, getExportedObjectsByObject, getExportedObjectsByType, getNormalizedURI, isEmpty
-
-
-
-
Constructor Detail
-
DefaultResourceDescription
public DefaultResourceDescription(org.eclipse.emf.ecore.resource.Resource resource, IDefaultResourceDescriptionStrategy strategy, org.eclipse.xtext.util.IResourceScopeCache cache)
-
DefaultResourceDescription
public DefaultResourceDescription(org.eclipse.emf.ecore.resource.Resource resource, IDefaultResourceDescriptionStrategy strategy)
For testing. Uses aIResourceScopeCache.NullImpl
.
-
-
Method Detail
-
computeExportedObjects
protected java.util.List<IEObjectDescription> computeExportedObjects()
- Specified by:
computeExportedObjects
in classAbstractResourceDescription
-
getImportedNames
public java.lang.Iterable<QualifiedName> getImportedNames()
- Returns:
- the list of names the described resource depends on.
-
getResource
public org.eclipse.emf.ecore.resource.Resource getResource()
-
getURI
public org.eclipse.emf.common.util.URI getURI()
- Returns:
- the uri of the described resource. Will not return
null
.
-
getReferenceDescriptions
public java.lang.Iterable<IReferenceDescription> getReferenceDescriptions()
- Returns:
- the list of all references contained in the underlying resource.
-
computeReferenceDescriptions
protected java.util.List<IReferenceDescription> computeReferenceDescriptions()
-
createEObject2ExportedEObjectsMap
protected java.util.Map<org.eclipse.emf.ecore.EObject,IEObjectDescription> createEObject2ExportedEObjectsMap(java.lang.Iterable<IEObjectDescription> exportedObjects)
-
findExportedContainerURI
protected org.eclipse.emf.common.util.URI findExportedContainerURI(org.eclipse.emf.ecore.EObject referenceOwner, java.util.Map<org.eclipse.emf.ecore.EObject,IEObjectDescription> eObject2exportedEObjects)
-
getLookUp
protected EObjectDescriptionLookUp getLookUp()
- Overrides:
getLookUp
in classAbstractResourceDescription
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-