@Override public boolean hasAnnotation(String type) { boolean hasAnnotation = false; FieldSource<O> field = getField(); if (field != null) { hasAnnotation = field.hasAnnotation(type); } if (!hasAnnotation) { MethodSource<O> accessor = getAccessor(); if (accessor != null) { hasAnnotation = accessor.hasAnnotation(type); } } if (!hasAnnotation) { MethodSource<O> mutator = getMutator(); if (mutator != null) { hasAnnotation = mutator.hasAnnotation(type); } } return hasAnnotation; } }
@Override public boolean hasAnnotation(Class<? extends java.lang.annotation.Annotation> type) { boolean hasAnnotation = false; FieldSource<O> field = getField(); if (field != null) { hasAnnotation = field.hasAnnotation(type); } if (!hasAnnotation) { MethodSource<O> accessor = getAccessor(); if (accessor != null) { hasAnnotation = accessor.hasAnnotation(type); } } if (!hasAnnotation) { MethodSource<O> mutator = getMutator(); if (mutator != null) { hasAnnotation = mutator.hasAnnotation(type); } } return hasAnnotation; }
@Override public boolean hasAnnotation(Class<? extends java.lang.annotation.Annotation> type) { boolean hasAnnotation = false; FieldSource<O> field = getField(); if (field != null) { hasAnnotation = field.hasAnnotation(type); } if (!hasAnnotation) { MethodSource<O> accessor = getAccessor(); if (accessor != null) { hasAnnotation = accessor.hasAnnotation(type); } } if (!hasAnnotation) { MethodSource<O> mutator = getMutator(); if (mutator != null) { hasAnnotation = mutator.hasAnnotation(type); } } return hasAnnotation; }
@Override public boolean hasAnnotation(String type) { boolean hasAnnotation = false; FieldSource<O> field = getField(); if (field != null) { hasAnnotation = field.hasAnnotation(type); } if (!hasAnnotation) { MethodSource<O> accessor = getAccessor(); if (accessor != null) { hasAnnotation = accessor.hasAnnotation(type); } } if (!hasAnnotation) { MethodSource<O> mutator = getMutator(); if (mutator != null) { hasAnnotation = mutator.hasAnnotation(type); } } return hasAnnotation; } }
if (method.hasAnnotation(OneToOne.class))