/** * {@inheritDoc} */ @SuppressFBWarnings(value = "BC_UNCONFIRMED_CAST", justification = "The implicit field type casting is not understood by Findbugs") public AnnotationList getDeclaredAnnotations() { Annotation[][] annotation = parameterAnnotationSource.getParameterAnnotations(); MethodDescription.InDefinedShape declaringMethod = getDeclaringMethod(); if (annotation.length != declaringMethod.getParameters().size() && declaringMethod.getDeclaringType().isInnerClass()) { return index == 0 ? new AnnotationList.Empty() : new AnnotationList.ForLoadedAnnotations(annotation[index - 1]); } else { return new AnnotationList.ForLoadedAnnotations(annotation[index]); } } }
/** * {@inheritDoc} */ public AnnotationList getDeclaredAnnotations() { MethodDescription.InDefinedShape declaringMethod = getDeclaringMethod(); Annotation[][] parameterAnnotation = parameterAnnotationSource.getParameterAnnotations(); if (parameterAnnotation.length != declaringMethod.getParameters().size() && declaringMethod.getDeclaringType().isInnerClass()) { return index == 0 ? new AnnotationList.Empty() : new AnnotationList.ForLoadedAnnotations(parameterAnnotation[index - 1]); } else { return new AnnotationList.ForLoadedAnnotations(parameterAnnotation[index]); } } }
/** * Represents a list of annotation tokens in form of a list of lazy type annotations. Any annotation with * a type that cannot be loaded from the type pool is ignored and not included in the list. If the provided * {@code tokens} are {@code null}, an empty list is returned. * * @param typePool The type pool to be used for looking up linked types. * @param tokens The tokens to represent in the list. * @return A list of the loadable annotations. */ protected static AnnotationList asListOfNullable(TypePool typePool, List<? extends AnnotationToken> tokens) { return tokens == null ? new AnnotationList.Empty() : asList(typePool, tokens); }
/** * Creates a list of empty annotation lists of the given dimension. * * @param length The length of the list. * @return A list of empty annotation lists of the given length. */ public static List<AnnotationList> asList(int length) { List<AnnotationList> result = new ArrayList<AnnotationList>(length); for (int i = 0; i < length; i++) { result.add(new AnnotationList.Empty()); } return result; }
/** * {@inheritDoc} */ public AnnotationList getDeclaredAnnotations() { return new AnnotationList.Empty(); }
/** * {@inheritDoc} */ public AnnotationList getDeclaredAnnotations() { return new AnnotationList.Empty(); }
/** * {@inheritDoc} */ public AnnotationList getDeclaredAnnotations() { return new AnnotationList.Empty(); } }
/** * {@inheritDoc} */ public AnnotationList getDeclaredAnnotations() { return new AnnotationList.Empty(); }
/** * {@inheritDoc} */ public AnnotationList getDeclaredAnnotations() { return new AnnotationList.Empty(); } }
/** * {@inheritDoc} */ public AnnotationList getDeclaredAnnotations() { return new AnnotationList.Empty(); }
/** * {@inheritDoc} */ public AnnotationList getDeclaredAnnotations() { return new AnnotationList.Empty(); } }
/** * {@inheritDoc} */ public AnnotationList getDeclaredAnnotations() { return new AnnotationList.Empty(); } }
/** * {@inheritDoc} */ public AnnotationList getDeclaredAnnotations() { return new AnnotationList.Empty(); } }
/** * {@inheritDoc} */ public AnnotationList getDeclaredAnnotations() { return new AnnotationList.Empty(); } }
/** * {@inheritDoc} */ public AnnotationList getDeclaredAnnotations() { Resolution resolution = typePool.describe(name + "." + PackageDescription.PACKAGE_CLASS_NAME); return resolution.isResolved() ? resolution.resolve().getDeclaredAnnotations() : new AnnotationList.Empty(); }
/** * {@inheritDoc} */ public AnnotationList getDeclaredAnnotations() { return new AnnotationList.Empty(); }
/** * {@inheritDoc} */ public AnnotationList getDeclaredAnnotations() { return new AnnotationList.Empty(); }
/** * {@inheritDoc} */ public AnnotationList getInheritedAnnotations() { return new AnnotationList.Empty(); }
/** * {@inheritDoc} */ public AnnotationList asList() { return new AnnotationList.Empty(); }
/** * {@inheritDoc} */ public AnnotationList getDeclaredAnnotations() { return new AnnotationList.Empty(); }