/** * {@inheritDoc} */ public S load() throws ClassNotFoundException { return AnnotationDescription.AnnotationInvocationHandler.of(annotationType.getClassLoader(), annotationType, annotationValues); }
/** * {@inheritDoc} */ public S load() throws ClassNotFoundException { return annotationType == annotation.annotationType() ? annotation : AnnotationInvocationHandler.of(annotationType.getClassLoader(), annotationType, asValue(annotation)); }
/** * {@inheritDoc} */ public S load() throws ClassNotFoundException { return AnnotationInvocationHandler.of(annotationType.getClassLoader(), annotationType, values); }
/** * {@inheritDoc} */ @SuppressWarnings("unchecked") public Loaded<Annotation> load(ClassLoader classLoader) throws ClassNotFoundException { Class<?> type = Class.forName(annotationToken.getBinaryName(), false, classLoader); if (type.isAnnotation()) { return new ForAnnotationDescription.Loaded<Annotation>(AnnotationDescription.AnnotationInvocationHandler.of(classLoader, (Class<? extends Annotation>) type, annotationToken.getValues())); } else { return new ForAnnotationDescription.IncompatibleRuntimeType(type); } }