Class JavaReferenceResolverSwitch
java.lang.Object
org.emftext.language.java.resolver.JavaReferenceResolverSwitch
- All Implemented Interfaces:
IJavaReferenceResolver<EObject,
EObject>
public class JavaReferenceResolverSwitch
extends Object
implements IJavaReferenceResolver<EObject,EObject>
A IJavaReferenceResolverSwitch holds references to multiple other reference
resolvers and delegates requests to the appropriate resolver.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionIJavaReferenceResolver<? extends EObject,
? extends EObject> getResolver
(EStructuralFeature reference) void
resolve
(String identifier, EObject container, EReference reference, int position, IJavaReferenceResolveResult<EObject> result) Attempts to resolve a reference string.
-
Constructor Details
-
JavaReferenceResolverSwitch
public JavaReferenceResolverSwitch()
-
-
Method Details
-
getClassifierImportClassifierReferenceResolver
public IJavaReferenceResolver<Import,ConcreteClassifier> getClassifierImportClassifierReferenceResolver() -
getStaticMemberImportStaticMembersReferenceResolver
public IJavaReferenceResolver<StaticMemberImport,ReferenceableElement> getStaticMemberImportStaticMembersReferenceResolver() -
getAnnotationInstanceAnnotationReferenceResolver
public IJavaReferenceResolver<AnnotationInstance,Classifier> getAnnotationInstanceAnnotationReferenceResolver() -
getAnnotationAttributeSettingAttributeReferenceResolver
public IJavaReferenceResolver<AnnotationAttributeSetting,InterfaceMethod> getAnnotationAttributeSettingAttributeReferenceResolver() -
getClassifierReferenceTargetReferenceResolver
public IJavaReferenceResolver<ClassifierReference,Classifier> getClassifierReferenceTargetReferenceResolver() -
getElementReferenceTargetReferenceResolver
public IJavaReferenceResolver<ElementReference,ReferenceableElement> getElementReferenceTargetReferenceResolver() -
resolve
public void resolve(String identifier, EObject container, EReference reference, int position, IJavaReferenceResolveResult<EObject> result) Description copied from interface:IJavaReferenceResolver
Attempts to resolve a reference string.- Specified by:
resolve
in interfaceIJavaReferenceResolver<EObject,
EObject> - 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.
-
getResolver
public IJavaReferenceResolver<? extends EObject,? extends EObject> getResolver(EStructuralFeature reference)
-