public static boolean isAnnotationPresent(AnnotatedElement elmt, Class<? extends Annotation> annotationClass) { return getAnnotation(elmt, annotationClass) != null; }
public static boolean isAnnotationPresent(AnnotatedElement elmt, Class<? extends Annotation> annotationClass) { return getAnnotation(elmt, annotationClass) != null; }
public static boolean isAnnotationPresent(AnnotatedElement elmt, Class<? extends Annotation> annotationClass) { return getAnnotation(elmt, annotationClass) != null; }
public static boolean isAnnotationPresent(AnnotatedElement elmt, Class<? extends Annotation> annotationClass) { return getAnnotation(elmt, annotationClass) != null; }
@Override public <T extends Annotation> T getAnnotation(Class<T> annotationClass, boolean recursive) { T annotation = null; if (getter != null) { annotation = getter.getAnnotation(annotationClass); if (annotation == null && recursive) { DeclaredAnnotation<T> declaredAnnotation = TypeUtil.getAnnotation(getter, annotationClass); if (declaredAnnotation != null) annotation = declaredAnnotation.annotation; } } if (annotation == null && setter != null) { annotation = setter.getAnnotation(annotationClass); if (annotation == null && recursive) { DeclaredAnnotation<T> declaredAnnotation = TypeUtil.getAnnotation(setter, annotationClass); if (declaredAnnotation != null) annotation = declaredAnnotation.annotation; } } return annotation; }
@Override public <T extends Annotation> T getAnnotation(Class<T> annotationClass, boolean recursive) { T annotation = null; if (getter != null) { annotation = getter.getAnnotation(annotationClass); if (annotation == null && recursive) { DeclaredAnnotation<T> declaredAnnotation = TypeUtil.getAnnotation(getter, annotationClass); if (declaredAnnotation != null) annotation = declaredAnnotation.annotation; } } if (annotation == null && setter != null) { annotation = setter.getAnnotation(annotationClass); if (annotation == null && recursive) { DeclaredAnnotation<T> declaredAnnotation = TypeUtil.getAnnotation(setter, annotationClass); if (declaredAnnotation != null) annotation = declaredAnnotation.annotation; } } return annotation; }
@Override public <T extends Annotation> T getAnnotation(Class<T> annotationClass, boolean recursive) { T annotation = null; if (getter != null) { annotation = getter.getAnnotation(annotationClass); if (annotation == null && recursive) { DeclaredAnnotation<T> declaredAnnotation = TypeUtil.getAnnotation(getter, annotationClass); if (declaredAnnotation != null) annotation = declaredAnnotation.annotation; } } if (annotation == null && setter != null) { annotation = setter.getAnnotation(annotationClass); if (annotation == null && recursive) { DeclaredAnnotation<T> declaredAnnotation = TypeUtil.getAnnotation(setter, annotationClass); if (declaredAnnotation != null) annotation = declaredAnnotation.annotation; } } return annotation; }
@Override public <T extends Annotation> T getAnnotation(Class<T> annotationClass, boolean recursive) { T annotation = null; if (getter != null) { annotation = getter.getAnnotation(annotationClass); if (annotation == null && recursive) { DeclaredAnnotation<T> declaredAnnotation = TypeUtil.getAnnotation(getter, annotationClass); if (declaredAnnotation != null) annotation = declaredAnnotation.annotation; } } if (annotation == null && setter != null) { annotation = setter.getAnnotation(annotationClass); if (annotation == null && recursive) { DeclaredAnnotation<T> declaredAnnotation = TypeUtil.getAnnotation(setter, annotationClass); if (declaredAnnotation != null) annotation = declaredAnnotation.annotation; } } return annotation; }
@Override public <T extends Annotation> T getAnnotation(Class<T> annotationClass, boolean recursive) { T annotation = null; if (field != null) { annotation = field.getAnnotation(annotationClass); if (annotation == null && recursive) { DeclaredAnnotation<T> declaredAnnotation = TypeUtil.getAnnotation(field, annotationClass); if (declaredAnnotation != null) annotation = declaredAnnotation.annotation; } } if (getter != null) { annotation = getter.getAnnotation(annotationClass); if (annotation == null && recursive) { DeclaredAnnotation<T> declaredAnnotation = TypeUtil.getAnnotation(getter, annotationClass); if (declaredAnnotation != null) annotation = declaredAnnotation.annotation; } } if (annotation == null && setter != null) { annotation = setter.getAnnotation(annotationClass); if (annotation == null && recursive) { DeclaredAnnotation<T> declaredAnnotation = TypeUtil.getAnnotation(setter, annotationClass); if (declaredAnnotation != null) annotation = declaredAnnotation.annotation; } } return null; }
if (getter != null && !allFieldNames.contains(property.getName())) { DeclaredAnnotation<Include> annotation = TypeUtil.getAnnotation(getter, Include.class); if (annotation == null || (annotation.declaringClass != c && !annotation.declaringClass.isInterface())) continue;
if (getter != null && !allFieldNames.contains(property.getName())) { DeclaredAnnotation<Include> annotation = TypeUtil.getAnnotation(getter, Include.class); if (annotation == null || (annotation.declaringClass != c && !annotation.declaringClass.isInterface())) continue;
if (getter != null && !allFieldNames.contains(property.getName())) { DeclaredAnnotation<Include> annotation = TypeUtil.getAnnotation(getter, Include.class); if (annotation == null || (annotation.declaringClass != c && !annotation.declaringClass.isInterface())) continue;
if (getter != null && !allFieldNames.contains(property.getName())) { DeclaredAnnotation<Include> annotation = TypeUtil.getAnnotation(getter, Include.class); if (annotation == null || (annotation.declaringClass != c && !annotation.declaringClass.isInterface())) continue;