Package org.eclipse.xtext.resource.impl
Class DefaultResourceDescriptionStrategy
- java.lang.Object
-
- org.eclipse.xtext.resource.impl.DefaultResourceDescriptionStrategy
-
- All Implemented Interfaces:
IDefaultResourceDescriptionStrategy
- Direct Known Subclasses:
XtextResourceDescriptionStrategy
public class DefaultResourceDescriptionStrategy extends java.lang.Object implements IDefaultResourceDescriptionStrategy
By default, all elements with a not nullnamefeature and all cross-resource crossrefs are indexed.
-
-
Constructor Summary
Constructors Constructor Description DefaultResourceDescriptionStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancreateEObjectDescriptions(org.eclipse.emf.ecore.EObject eObject, org.eclipse.xtext.util.IAcceptor<IEObjectDescription> acceptor)Calculates theIEObjectDescriptions foreObjectand passes them to the acceptor.protected IReferenceDescriptioncreateReferenceDescription(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.common.util.URI exportedContainerURI, org.eclipse.emf.ecore.EReference eReference, int indexInList, org.eclipse.emf.ecore.EObject target)booleancreateReferenceDescriptions(org.eclipse.emf.ecore.EObject from, org.eclipse.emf.common.util.URI exportedContainerURI, org.eclipse.xtext.util.IAcceptor<IReferenceDescription> acceptor)Calculates theIReferenceDescriptions for external cross references fromeObjectand passes them to the acceptor.LazyURIEncodergetLazyURIEncoder()IQualifiedNameProvidergetQualifiedNameProvider()protected booleanisIndexable(org.eclipse.emf.ecore.EReference eReference)protected booleanisResolvedAndExternal(org.eclipse.emf.ecore.EObject from, org.eclipse.emf.ecore.EObject to)voidsetLazyURIEncoder(LazyURIEncoder uriEncoder)voidsetQualifiedNameProvider(IQualifiedNameProvider qualifiedNameProvider)
-
-
-
Method Detail
-
setQualifiedNameProvider
public void setQualifiedNameProvider(IQualifiedNameProvider qualifiedNameProvider)
-
getQualifiedNameProvider
public IQualifiedNameProvider getQualifiedNameProvider()
-
setLazyURIEncoder
public void setLazyURIEncoder(LazyURIEncoder uriEncoder)
- Since:
- 2.0
-
getLazyURIEncoder
public LazyURIEncoder getLazyURIEncoder()
- Since:
- 2.0
-
createEObjectDescriptions
public boolean createEObjectDescriptions(org.eclipse.emf.ecore.EObject eObject, org.eclipse.xtext.util.IAcceptor<IEObjectDescription> acceptor)Description copied from interface:IDefaultResourceDescriptionStrategyCalculates theIEObjectDescriptions foreObjectand passes them to the acceptor.- Specified by:
createEObjectDescriptionsin interfaceIDefaultResourceDescriptionStrategy- Returns:
- true if the children of
eObjectshould be traversed.
-
createReferenceDescriptions
public boolean createReferenceDescriptions(org.eclipse.emf.ecore.EObject from, org.eclipse.emf.common.util.URI exportedContainerURI, org.eclipse.xtext.util.IAcceptor<IReferenceDescription> acceptor)Description copied from interface:IDefaultResourceDescriptionStrategyCalculates theIReferenceDescriptions for external cross references fromeObjectand passes them to the acceptor.- Specified by:
createReferenceDescriptionsin interfaceIDefaultResourceDescriptionStrategy- Returns:
- true if the children of
eObjectshould be traversed.
-
createReferenceDescription
protected IReferenceDescription createReferenceDescription(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.common.util.URI exportedContainerURI, org.eclipse.emf.ecore.EReference eReference, int indexInList, org.eclipse.emf.ecore.EObject target)
- Since:
- 2.0
-
isIndexable
protected boolean isIndexable(org.eclipse.emf.ecore.EReference eReference)
-
isResolvedAndExternal
protected boolean isResolvedAndExternal(org.eclipse.emf.ecore.EObject from, org.eclipse.emf.ecore.EObject to)
-
-