returnType = this.environment.getTypeFromSignature(methodDescriptor, index + 1, -1, false, this, missingTypeNames, walker.toMethodReturn()); // index is currently pointing at the ')' returnType = this.environment.getTypeFromTypeSignature(wrapper, typeVars, this, missingTypeNames, walker.toMethodReturn()); if (annotations == null || annotations.length == 0) if (method.isConstructor()) annotations = walker.toMethodReturn().getAnnotationsAtCursor(this.id); // FIXME: When both exist, order could become an issue. result.setAnnotations( createAnnotations(annotations, this.environment, missingTypeNames),
public static void annotateMethodBinding(MethodBinding method, ExternalAnnotationProvider provider, LookupEnvironment environment) { char[] methodSignature = method.genericSignature(); if (methodSignature == null) methodSignature = method.signature(); ITypeAnnotationWalker walker = provider.forMethod(method.selector, methodSignature, environment); if (walker != null && walker != ITypeAnnotationWalker.EMPTY_ANNOTATION_WALKER) { ExternalAnnotationSuperimposer visitor = new ExternalAnnotationSuperimposer(environment); TypeVariableBinding[] typeParams = method.typeVariables; for (short i = 0; i < typeParams.length; i++) { if (visitor.go(walker.toTypeParameter(false, i))) typeParams[i] = visitor.superimpose(typeParams[i], TypeVariableBinding.class); } if (!method.isConstructor()) { if (visitor.go(walker.toMethodReturn())) method.returnType = visitor.superimpose(method.returnType, TypeBinding.class); } TypeBinding[] parameters = method.parameters; for (short i = 0; i < parameters.length; i++) { if (visitor.go(walker.toMethodParameter(i))) parameters[i] = visitor.superimpose(parameters[i], TypeBinding.class); } } }
returnType = this.environment.getTypeFromSignature(methodDescriptor, index + 1, -1, false, this, missingTypeNames, walker.toMethodReturn()); // index is currently pointing at the ')' returnType = this.environment.getTypeFromTypeSignature(wrapper, typeVars, this, missingTypeNames, walker.toMethodReturn()); if (annotations == null || annotations.length == 0) if (method.isConstructor()) annotations = walker.toMethodReturn().getAnnotationsAtCursor(this.id); // FIXME: When both exist, order could become an issue. result.setAnnotations( createAnnotations(annotations, this.environment, missingTypeNames),
public static void annotateMethodBinding(MethodBinding method, ExternalAnnotationProvider provider, LookupEnvironment environment) { char[] methodSignature = method.genericSignature(); if (methodSignature == null) methodSignature = method.signature(); ITypeAnnotationWalker walker = provider.forMethod(method.selector, methodSignature, environment); if (walker != null && walker != ITypeAnnotationWalker.EMPTY_ANNOTATION_WALKER) { ExternalAnnotationSuperimposer visitor = new ExternalAnnotationSuperimposer(environment); TypeVariableBinding[] typeParams = method.typeVariables; for (short i = 0; i < typeParams.length; i++) { if (visitor.go(walker.toTypeParameter(false, i))) typeParams[i] = visitor.superimpose(typeParams[i], TypeVariableBinding.class); } if (!method.isConstructor()) { if (visitor.go(walker.toMethodReturn())) method.returnType = visitor.superimpose(method.returnType, TypeBinding.class); } TypeBinding[] parameters = method.parameters; for (short i = 0; i < parameters.length; i++) { if (visitor.go(walker.toMethodParameter(i))) parameters[i] = visitor.superimpose(parameters[i], TypeBinding.class); } } }
public static void annotateMethodBinding(MethodBinding method, ExternalAnnotationProvider provider, LookupEnvironment environment) { char[] methodSignature = method.genericSignature(); if (methodSignature == null) methodSignature = method.signature(); ITypeAnnotationWalker walker = provider.forMethod(method.selector, methodSignature, environment); if (walker != null && walker != ITypeAnnotationWalker.EMPTY_ANNOTATION_WALKER) { ExternalAnnotationSuperimposer visitor = new ExternalAnnotationSuperimposer(environment); TypeVariableBinding[] typeParams = method.typeVariables; for (short i = 0; i < typeParams.length; i++) { if (visitor.go(walker.toTypeParameter(false, i))) typeParams[i] = visitor.superimpose(typeParams[i], TypeVariableBinding.class); } if (!method.isConstructor()) { if (visitor.go(walker.toMethodReturn())) method.returnType = visitor.superimpose(method.returnType, TypeBinding.class); } TypeBinding[] parameters = method.parameters; for (short i = 0; i < parameters.length; i++) { if (visitor.go(walker.toMethodParameter(i))) parameters[i] = visitor.superimpose(parameters[i], TypeBinding.class); } } }
public static void annotateMethodBinding(MethodBinding method, ExternalAnnotationProvider provider, LookupEnvironment environment) { char[] methodSignature = method.genericSignature(); if (methodSignature == null) methodSignature = method.signature(); ITypeAnnotationWalker walker = provider.forMethod(method.selector, methodSignature, environment); if (walker != null && walker != ITypeAnnotationWalker.EMPTY_ANNOTATION_WALKER) { ExternalAnnotationSuperimposer visitor = new ExternalAnnotationSuperimposer(environment); TypeVariableBinding[] typeParams = method.typeVariables; for (short i = 0; i < typeParams.length; i++) { if (visitor.go(walker.toTypeParameter(false, i))) typeParams[i] = visitor.superimpose(typeParams[i], TypeVariableBinding.class); } if (!method.isConstructor()) { if (visitor.go(walker.toMethodReturn())) method.returnType = visitor.superimpose(method.returnType, TypeBinding.class); } TypeBinding[] parameters = method.parameters; for (short i = 0; i < parameters.length; i++) { if (visitor.go(walker.toMethodParameter(i))) parameters[i] = visitor.superimpose(parameters[i], TypeBinding.class); } } }
public static void annotateMethodBinding(MethodBinding method, ExternalAnnotationProvider provider, LookupEnvironment environment) { char[] methodSignature = method.genericSignature(); if (methodSignature == null) methodSignature = method.signature(); ITypeAnnotationWalker walker = provider.forMethod(method.selector, methodSignature, environment); if (walker != null && walker != ITypeAnnotationWalker.EMPTY_ANNOTATION_WALKER) { ExternalAnnotationSuperimposer visitor = new ExternalAnnotationSuperimposer(environment); TypeVariableBinding[] typeParams = method.typeVariables; for (short i = 0; i < typeParams.length; i++) { if (visitor.go(walker.toTypeParameter(false, i))) typeParams[i] = visitor.superimpose(typeParams[i], TypeVariableBinding.class); } if (!method.isConstructor()) { if (visitor.go(walker.toMethodReturn())) method.returnType = visitor.superimpose(method.returnType, TypeBinding.class); } TypeBinding[] parameters = method.parameters; for (short i = 0; i < parameters.length; i++) { if (visitor.go(walker.toMethodParameter(i))) parameters[i] = visitor.superimpose(parameters[i], TypeBinding.class); } } }
returnType = this.environment.getTypeFromSignature(methodDescriptor, index + 1, -1, false, this, missingTypeNames, walker.toMethodReturn()); // index is currently pointing at the ')' returnType = this.environment.getTypeFromTypeSignature(wrapper, typeVars, this, missingTypeNames, walker.toMethodReturn()); if (annotations == null || annotations.length == 0) if (method.isConstructor()) annotations = walker.toMethodReturn().getAnnotationsAtCursor(this.id); // FIXME: When both exist, order could become an issue. result.setAnnotations( createAnnotations(annotations, this.environment, missingTypeNames),
returnType = this.environment.getTypeFromSignature(methodDescriptor, index + 1, -1, false, this, missingTypeNames, walker.toMethodReturn()); // index is currently pointing at the ')' returnType = this.environment.getTypeFromTypeSignature(wrapper, typeVars, this, missingTypeNames, walker.toMethodReturn()); IBinaryAnnotation[] annotations = method.getAnnotations(); if (method.isConstructor()) { IBinaryAnnotation[] tAnnotations = walker.toMethodReturn().getAnnotationsAtCursor(this.id, false); result.setTypeAnnotations(createAnnotations(tAnnotations, this.environment, missingTypeNames));
returnType = this.environment.getTypeFromSignature(methodDescriptor, index + 1, -1, false, this, missingTypeNames, walker.toMethodReturn()); // index is currently pointing at the ')' returnType = this.environment.getTypeFromTypeSignature(wrapper, typeVars, this, missingTypeNames, walker.toMethodReturn()); IBinaryAnnotation[] annotations = method.getAnnotations(); if (method.isConstructor()) { IBinaryAnnotation[] tAnnotations = walker.toMethodReturn().getAnnotationsAtCursor(this.id, false); result.setTypeAnnotations(createAnnotations(tAnnotations, this.environment, missingTypeNames));
ITypeAnnotationWalker returnWalker = externalAnnotationWalker.toMethodReturn(); IBinaryAnnotation[] annotations = returnWalker != ITypeAnnotationWalker.EMPTY_ANNOTATION_WALKER ? returnWalker.getAnnotationsAtCursor(methodBinding.returnType.id)
ITypeAnnotationWalker returnWalker = externalAnnotationWalker.toMethodReturn(); IBinaryAnnotation[] annotations = returnWalker != ITypeAnnotationWalker.EMPTY_ANNOTATION_WALKER ? returnWalker.getAnnotationsAtCursor(methodBinding.returnType.id)
ITypeAnnotationWalker returnWalker = externalAnnotationWalker.toMethodReturn(); IBinaryAnnotation[] annotations = returnWalker != ITypeAnnotationWalker.EMPTY_ANNOTATION_WALKER ? returnWalker.getAnnotationsAtCursor(methodBinding.returnType.id)
ITypeAnnotationWalker returnWalker = externalAnnotationWalker.toMethodReturn(); IBinaryAnnotation[] annotations = returnWalker != ITypeAnnotationWalker.EMPTY_ANNOTATION_WALKER ? returnWalker.getAnnotationsAtCursor(methodBinding.returnType.id, false)
ITypeAnnotationWalker returnWalker = externalAnnotationWalker.toMethodReturn(); IBinaryAnnotation[] annotations = returnWalker != ITypeAnnotationWalker.EMPTY_ANNOTATION_WALKER ? returnWalker.getAnnotationsAtCursor(methodBinding.returnType.id, false)