@Override public Annotation[] getAnnotations() { return target.getAnnotations(); }
@Override public Annotation[] getAnnotations() { return target.getAnnotations(); }
public List<Annotation> callConstructorGetAnnotations(Constructor<?> m) { return Arrays.asList(m.getAnnotations()); } public List<Annotation> callConstructorGetDeclaredAnnotations(Constructor<?> m) {
public static Set<Constructor<?>> getInjectableConstructors(Class<?> clazz) { Set<Constructor<?>> constructors = U.set(); for (Constructor<?> constr : clazz.getDeclaredConstructors()) { if (Metadata.hasAny(constr.getAnnotations(), ClassMetadata.INJECTION_ANNOTATIONS)) { constructors.add(constr); } } return constructors; }
if (containsAnnotations(constructor.getAnnotations(), requiredAnnotation)) { return true;
JsonCreator jsonCreator = getJsonCreator(ctor.getAnnotations()); if (jsonCreator == null) { continue;
@Override public synchronized Annotation[] getAnnotations() { if (annotationsCache == null) { annotationsCache = constructor.getAnnotations(); } return annotationsCache; }
@Override public synchronized Annotation[] getAnnotations() { if (annotationsCache == null) { annotationsCache = constructor.getAnnotations(); } return annotationsCache; }
public <T extends Annotation> T[] getVisibleAnnotations(Constructor<?> c) { return (T[])c.getAnnotations(); } };
public Annotation[] getAnnotations() { return constructor.getAnnotations(); }
/** * Return the annotations associated with the target method/constructor itself. */ public Annotation[] getMethodAnnotations() { return (this.method != null ? this.method.getAnnotations() : this.constructor.getAnnotations()); }
/** * Return the annotations associated with the target method/constructor itself. */ public Annotation[] getMethodAnnotations() { return (this.method != null ? this.method.getAnnotations() : this.constructor.getAnnotations()); }
/** * Return the annotations associated with the target method/constructor itself. */ public Annotation[] getMethodAnnotations() { return (this.method != null ? this.method.getAnnotations() : this.constructor.getAnnotations()); }
/** * Return the annotations associated with the target method/constructor * itself. */ public Annotation[] getMethodAnnotations() { return this.method != null ? this.method.getAnnotations() : this.constructor.getAnnotations(); }
private boolean isAnnotationPresent(Constructor<?> constructor, Class<? extends Annotation> annotation) { for (Annotation a : constructor.getAnnotations()) { if (annotation.isAssignableFrom(a.getClass())) { return true; } } return false; }
static <T> InjectionPoint<T> of(Constructor<?> c) { return new InjectionPointImpl<>(Key.of(c), c.getDeclaringClass(), c.getDeclaringClass().getSimpleName(), c.getAnnotations(), c.getDeclaringClass()); }
public AnnotatedConstructorImpl(AnnotatedType<T> declaringType, Constructor<T> ctor) { super(createBaseType(declaringType), null, ctor.getAnnotations()); _declaringType = declaringType; _ctor = ctor; introspect(ctor); }
@NotNull @Override public Annotation[] getAnnotations() { return getRawConstructor().getAnnotations(); }
@Override @Ignore public java.lang.annotation.Annotation[] $getJavaAnnotations$() { return Metamodel.getJavaConstructor(constructor).getAnnotations(); }
public static Annotation[] getAnnotations(Constructor<?> clazz) { if (AnnotationDataStore.isConstructorDataRecorded(clazz)) { return AnnotationDataStore.getConstructorAnnotations(clazz); } return clazz.getAnnotations(); }