public <T extends Annotation> T resolveTypedClassAnnotation(Class<T> annotation) { if (advisor != null) return advisor.resolveTypedAnnotation(annotation); return null; }
/** * Returns an object representing the meta data of type {@code annotation}, if * present. * * @param annotation the type of meta data/annotation queried * @return the meta data/annotation of type {@code annotation} */ public Object resolveAnnotation(Class<? extends Annotation> annotation) { return resolveTypedAnnotation(annotation); }
/** * Returns an object representing the method {@code m} annotation of type * {@code annotation}, if {@code m} has such annotation. * * @param m the method whose annotation is being queried * @param annotation the type of the queried annotation * @return the meta data/annotation of type {@code annotation} that apply to * {@code m} */ public Object resolveAnnotation(Method m, Class<? extends Annotation> annotation) { return resolveTypedAnnotation(0, m, annotation); }
/** * Returns an object representing the method {@code m} annotation of type * {@code annotation}, if {@code m} has such annotation. * * @param m the method whose annotation is being queried * @param annotation the type of the queried annotation * @return the meta data/annotation of type {@code annotation} that apply to * {@code m} */ public <T extends Annotation> T resolveTypedAnnotation(Method m, Class<T> annotation) { return resolveTypedAnnotation(0, m, annotation); }
public Object resolveAnnotation(Field f, Class<? extends Annotation> annotation) { return resolveTypedAnnotation(f, annotation); }
public Object resolveAnnotation(Constructor<?> c, Class<? extends Annotation> annotation) { return resolveTypedAnnotation(c, annotation); }
/** * Returns an object representing the method {@code m} annotation of type * {@code annotation}, if {@code m} has such annotation. * * @param hash the hashcode of {@code m} * @param m the method whose annotation is being queried * @param annotation the type of the queried annotation * @return the meta data/annotation of type {@code annotation} that apply to * {@code m} */ public Object resolveAnnotation(long hash, Method m, Class<? extends Annotation> annotation) { return resolveTypedAnnotation(hash, m, annotation); }
/** * Returns an object representing the method {@code m} annotation whose type is * one of the elements in {@code annotationChoices}, if {@code m} has such * annotation. * * @param m the method whose annotation is being queried * @param annotationChoices the queried annotation must have one of the types * contained in this array * @return the meta data/annotation that apply to {@code m} whose type is in * {@code annotationChoices} */ public Object resolveAnnotation(Method m, Class<?>[] annotationChoices) { for (Class<?> ann : annotationChoices) { Object val = resolveTypedAnnotation(m, (Class<? extends Annotation>)ann); if (val != null) return val; } return null; }
/** * Returns an object representing the method {@code m} annotation whose type is * one of the elements in {@code annotationChoices}, if {@code m} has such * annotation. * * @param m the method whose annotation is being queried * @param annotationChoices the queried annotation must have one of the types * contained in this array * @return the meta data/annotation that apply to {@code m} whose type is in * {@code annotationChoices} */ public <T extends Annotation> T resolveTypedAnnotation(Method m, Class<T>[] annotationChoices) { for (Class<T> ann : annotationChoices) { T val = resolveTypedAnnotation(m, ann); if (val != null) return val; } return null; }
public <T extends Annotation> T resolveClassAnnotation(Class<T> annotation) { Advisor advisor = getAdvisor(); if (advisor != null) { return advisor.resolveTypedAnnotation(annotation); } return null; }
public <T extends Annotation> T resolveTypedAnnotation(Class<T> annotation) { T val = super.resolveTypedAnnotation(annotation); if (val != null) return val; if (getAdvisor() != null) { val = getAdvisor().resolveTypedAnnotation(constructor, annotation); if (val != null) return val; } return null; } /**
public <T extends Annotation> T resolveAnnotation(Class<T> annotation) { T val = super.resolveAnnotation(annotation); if (val != null) return val; if (getAdvisor() != null) { val = getAdvisor().resolveTypedAnnotation(advisedField, annotation); if (val != null) return val; } return null; }
public <T extends Annotation> T resolveAnnotation(Class<T> annotation) { T val = super.resolveAnnotation(annotation); if (val != null) return val; if (getAdvisor() != null) { val = getAdvisor().resolveTypedAnnotation(constructor, annotation); if (val != null) return val; } return null; }
public <T extends Annotation> T resolveTypedAnnotation(Class<T> annotation) { T val = super.resolveTypedAnnotation(annotation); if (val != null) return val; if (getAdvisor() != null) { val = getAdvisor().resolveTypedAnnotation(field, annotation); if (val != null) return val; } return null; }
public <T extends Annotation> T resolveAnnotation(Class<T> annotation) { T val = super.resolveAnnotation(annotation); if (val != null) return val; if (getAdvisor() != null) { val = getAdvisor().resolveTypedAnnotation(constructor, annotation); if (val != null) return val; } return null; } }
public <T extends Annotation> T resolveTypedAnnotation(Class<T> annotation) { T val = super.resolveTypedAnnotation(annotation); if (val != null) return val; if (getAdvisor() != null) { val = getAdvisor().resolveTypedAnnotation(constructor, annotation); if (val != null) return val; } return null; }
public <T extends Annotation> T resolveAnnotation(Class<T> annotation) { T val = super.resolveAnnotation(annotation); if (val != null) { return val; } Advisor advisor = getAdvisor(); if (advisor != null) { return getAdvisor().resolveTypedAnnotation(hash, advisedMethod, annotation); } return null; } }
public <T extends Annotation> T resolveTypedAnnotation(Class<T>[] annotations) { T val = super.resolveTypedAnnotation(annotations); if (val != null) return val; if (getAdvisor() != null) { val = getAdvisor().resolveTypedAnnotation(getMethod(), annotations); if (val != null) return val; } return null; }
public <T extends Annotation> T resolveTypedAnnotation(Class<T> annotation) { T val = super.resolveTypedAnnotation(annotation); if (val != null) return val; if (getAdvisor() != null) { val = getAdvisor().resolveTypedAnnotation(getMethodHash(), getMethod(), annotation); if (val != null) return val; } return null; }