private List < Property > getDeclaredProperties ( ObjectifyFactory fact , Class < ? > clazz ) { List < Property > good = new ArrayList <> ( ) ; for ( Field field : clazz . getDeclaredFields ( ) ) if ( isOfInterest ( field ) ) good . add ( new FieldProperty ( fact , clazz , field ) ) ; for ( Method method : clazz . getDeclaredMethods ( ) ) if ( isOfInterest ( method ) ) good . add ( new MethodProperty ( method ) ) ; return good ; }
Get all the persistable fields and methods declared on a class . Ignores superclasses .