@Override final Annotation[][] getParameterAnnotations() { return constructor.getParameterAnnotations(); }
public Annotation[][] getParameterAnnotations() { Annotation[][] result = _paramAnnotations; if (result == null) { result = _ctor.getParameterAnnotations(); _paramAnnotations = result; } return result; } }
public Annotation[][] getParameterAnnotations() { Annotation[][] result = _paramAnnotations; if (result == null) { result = _ctor.getParameterAnnotations(); _paramAnnotations = result; } return result; } }
/** * {@inheritDoc} */ public Annotation[][] getParameterAnnotations() { return constructor.getParameterAnnotations(); } }
@Override final Annotation[][] getParameterAnnotations() { return constructor.getParameterAnnotations(); }
@Override final Annotation[][] getParameterAnnotations() { return constructor.getParameterAnnotations(); }
public Annotation[][] findParameterAnnotations(Constructor<?> constructor) { return constructor.getParameterAnnotations(); } };
private static Set<Annotation> parameterAnnotations(Member member) { Set<Annotation> result = Sets.newHashSet(); Annotation[][] annotations = member instanceof Method ? ((Method) member).getParameterAnnotations() : member instanceof Constructor ? ((Constructor) member).getParameterAnnotations() : null; for (Annotation[] annotation : annotations) Collections.addAll(result, annotation); return result; }
/** * {@inheritDoc} */ @CachedReturnPlugin.Enhance("parameterAnnotations") public Annotation[][] getParameterAnnotations() { return constructor.getParameterAnnotations(); } }
public List<List<Annotation>> callConstructorGetParameterAnnotations(Constructor<?> m) { Annotation[][] array = m.getParameterAnnotations(); List<List<Annotation>> result = new ArrayList<List<Annotation>>(array.length); for (int i = 0; i < array.length; i++) { result.add(Arrays.asList(array[i])); } return result; }
private static Set<Annotation> parameterAnnotations(Member member) { Set<Annotation> result = Sets.newHashSet(); Annotation[][] annotations = member instanceof Method ? ((Method) member).getParameterAnnotations() : member instanceof Constructor ? ((Constructor) member).getParameterAnnotations() : null; for (Annotation[] annotation : annotations) Collections.addAll(result, annotation); return result; }
public static List<ParameterSignature> signatures(Constructor<?> constructor) { return signatures(constructor.getParameterTypes(), constructor .getParameterAnnotations()); }
/** * Extracts constructor parameters. * * @param constructor any valid constructor. * @return extracted constructor parameters. */ public static Parameter[] getConstructorParameters(final Constructor constructor) { if (constructor == null) { return new Parameter[]{}; } return getParameters(constructor.getParameterTypes(), constructor.getParameterAnnotations()); }
@Override public String[] findOptionalValues(Constructor method) { return optionalValues(method.getParameterAnnotations()); }
public static List<ParameterSignature> signatures(Constructor<?> constructor) { return signatures(constructor.getParameterTypes(), constructor .getParameterAnnotations()); }
InjectionPoint(TypeLiteral<?> declaringType, Constructor<?> constructor) { this.member = constructor; this.declaringType = declaringType; this.optional = false; this.dependencies = forMember(constructor, declaringType, constructor.getParameterAnnotations()); }
public List<String> getParameterAnnotationNames(Member method, int parameterIndex) { Annotation[][] annotations = method instanceof Method ? ((Method) method).getParameterAnnotations() : method instanceof Constructor ? ((Constructor) method).getParameterAnnotations() : null; return getAnnotationNames(annotations != null ? annotations[parameterIndex] : null); }
@Override public String[] getParameterNames(Constructor<?> ctor) { if (ctor.getParameterCount() == 0) { return new String[0]; } return doGetParameterNames(ctor.getParameterAnnotations()); }
protected AnnotatedConstructor constructDefaultConstructor(ClassUtil.Ctor ctor, ClassUtil.Ctor mixin) { if (_intr == null) { // when annotation processing is disabled return new AnnotatedConstructor(_typeContext, ctor.getConstructor(), _emptyAnnotationMap(), NO_ANNOTATION_MAPS); } return new AnnotatedConstructor(_typeContext, ctor.getConstructor(), collectAnnotations(ctor, mixin), collectAnnotations(ctor.getConstructor().getParameterAnnotations(), (mixin == null) ? null : mixin.getConstructor().getParameterAnnotations())); }
protected AnnotatedConstructor constructDefaultConstructor(ClassUtil.Ctor ctor, ClassUtil.Ctor mixin) { if (_intr == null) { // when annotation processing is disabled return new AnnotatedConstructor(_typeContext, ctor.getConstructor(), _emptyAnnotationMap(), NO_ANNOTATION_MAPS); } return new AnnotatedConstructor(_typeContext, ctor.getConstructor(), collectAnnotations(ctor, mixin), collectAnnotations(ctor.getConstructor().getParameterAnnotations(), (mixin == null) ? null : mixin.getConstructor().getParameterAnnotations())); }