Code example for Field

Methods: isAnnotationPresent

0
    public AnnotatedPropertyCriteria(Class<? extends Annotation> annotationClass) {
        this.annotationClass = annotationClass;
    } 
 
    public boolean fieldMatches(Field f) {
        return f.isAnnotationPresent(annotationClass);
    } 
 
    public boolean methodMatches(Method m) {
        return m.isAnnotationPresent(annotationClass);
    } 
 
}