/** * @param result map of classes to annotations * @param baseClass is the superclass or one of the superinterfaces. */ private void fillAnnotationsForOneClass(final HashMap<Class<?>, Annotation> result, final Class<?> baseClass) { addAnnotations(result, AnnotationManager.getAnnotatedClass(baseClass).getAllAnnotations()); }
/** * @param result is the map of classes to annotations to fill * @param annotatedMethod the method to get annotations. Does nothing * if the annotated method is null. */ private void fillAnnotationsForOneMethod(final HashMap<Class<?>, Annotation> result, final AnnotatedMethod annotatedMethod) { if (annotatedMethod == null) { return; } addAnnotations(result, annotatedMethod.getAllAnnotations()); }
/** * @return the cached map of classes to annotations */ private Map<Class<?>, Annotation> getAllAnnotationMap(){ if (classToAnnotationMap == null) { classToAnnotationMap = getAllAnnotationMapCalculated(); } return classToAnnotationMap; }
public Annotation[] getAllAnnotations() { if (annotations == null) { annotations = getAllAnnotationsCalculated(); } return annotations; }
public Annotation[] getAllAnnotations() { if (annotations == null) { annotations = getAllAnnotationsCalculated(); } return annotations; }
private Map<Class<?>, Annotation> getAllAnnotationMap(){ if (classToAnnotationMap == null) { classToAnnotationMap = getAllAnnotationMapCalculated(); } return classToAnnotationMap; }
public Annotation[][] getParameterAnnotations() { if(parameterAnnotations == null) { parameterAnnotations = getParameterAnnotationsCalculated(); } return parameterAnnotations; }
public AnnotatedMethod[] getAnnotatedMethods() { if (annotatedMethods == null) { annotatedMethods = getAnnotatedMethodsCalculated(); } return annotatedMethods; }
public boolean isAnnotationPresent( final Class<? extends Annotation> annotationClass) { return getAnnotation(annotationClass) != null; } }
private Map<Method, AnnotatedMethod> getMethodMap(){ if (methodToAnnotatedMap == null) { methodToAnnotatedMap = getMethodMapCalculated(); } return methodToAnnotatedMap; }
/** * @param result map of classes to annotations * @param baseClass is the superclass or one of the superinterfaces. */ private void fillAnnotationsForOneClass(final HashMap<Class<?>, Annotation> result, final Class<?> baseClass) { addAnnotations(result, AnnotationManager.getAnnotatedClass(baseClass).getAllAnnotations()); }
/** * @param result is the map of classes to annotations to fill * @param annotatedMethod the method to get annotations. Does nothing * if the annotated method is null. */ private void fillAnnotationsForOneMethod(final HashMap<Class<?>, Annotation> result, final AnnotatedMethod annotatedMethod) { if (annotatedMethod == null) { return; } addAnnotations(result, annotatedMethod.getAllAnnotations()); }
/** * @return the cached map of classes to annotations */ private Map<Class<?>, Annotation> getAllAnnotationMap(){ if (classToAnnotationMap == null) { classToAnnotationMap = getAllAnnotationMapCalculated(); } return classToAnnotationMap; }
public Annotation[] getAllAnnotations() { if (annotations == null) { annotations = getAllAnnotationsCalculated(); } return annotations; }
public Annotation[] getAllAnnotations() { if (annotations == null) { annotations = getAllAnnotationsCalculated(); } return annotations; }
private Map<Class<?>, Annotation> getAllAnnotationMap(){ if (classToAnnotationMap == null) { classToAnnotationMap = getAllAnnotationMapCalculated(); } return classToAnnotationMap; }
public Annotation[][] getParameterAnnotations() { if(parameterAnnotations == null) { parameterAnnotations = getParameterAnnotationsCalculated(); } return parameterAnnotations; }
public AnnotatedMethod[] getAnnotatedMethods() { if (annotatedMethods == null) { annotatedMethods = getAnnotatedMethodsCalculated(); } return annotatedMethods; }
/** * @param result map of classes to annotations * @param baseClass is the superclass or one of the superinterfaces. */ private void fillAnnotationsForOneClass(final HashMap<Class<?>, Annotation> result, final Class<?> baseClass) { addAnnotations(result, AnnotationManager.getAnnotatedClass(baseClass).getAllAnnotations()); }
/** * @param result is the map of classes to annotations to fill * @param annotatedMethod the method to get annotations. Does nothing * if the annotated method is null. */ private void fillAnnotationsForOneMethod(final HashMap<Class<?>, Annotation> result, final AnnotatedMethod annotatedMethod) { if (annotatedMethod == null) { return; } addAnnotations(result, annotatedMethod.getAllAnnotations()); }