- Type Parameters:
ContainerType
- the type of the container that contains the reference that is resolved by this resolverReferenceType
- the type of the reference that is resolved by this resolver
- All Known Implementing Classes:
AnnotationAttributeSettingAttributeReferenceResolver
,AnnotationInstanceAnnotationReferenceResolver
,ClassifierImportClassifierReferenceResolver
,ClassifierReferenceTargetReferenceResolver
,ElementReferenceTargetReferenceResolver
,JavaReferenceResolverSwitch
,StaticMemberImportStaticMembersReferenceResolver
public interface IJavaReferenceResolver<ContainerType extends EObject,ReferenceType extends EObject>
A reference resolver tries to resolve a reference to one or many model elements
(EObjects). It is called by the EMF proxy resolution mechanism.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
resolve
(String identifier, ContainerType container, EReference reference, int position, IJavaReferenceResolveResult<ReferenceType> result) Attempts to resolve a reference string.
-
Method Details
-
resolve
void resolve(String identifier, ContainerType container, EReference reference, int position, IJavaReferenceResolveResult<ReferenceType> result) Attempts to resolve a reference string.- Parameters:
identifier
- The identifier for the reference.container
- The object that contains the reference.reference
- The reference that points to the target of the reference.position
- The index of the reference (if it has an upper bound greater than 1).result
- an object that can be used to store the result of the resolve operation.
-