|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jsefa.common.annotation.AnnotatedFieldsProvider
public final class AnnotatedFieldsProvider
Provider for anotated fields.
Method Summary | |
---|---|
static List<Field> |
getAnnotatedFields(Class<?> objectType,
Class<? extends Annotation>... annotationClasses)
Returns all fields of the given object type or one of its ancestors which are annotated with at least one of the given annotation classes. |
static List<Field> |
getSortedAnnotatedFields(Class<?> objectType,
Class<? extends Annotation>... annotationClasses)
Returns a list of fields which are annotated in the given objectType with one of the given
annotation classes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static List<Field> getSortedAnnotatedFields(Class<?> objectType, Class<? extends Annotation>... annotationClasses)
objectType
with one of the given
annotation classes. The fields are sorted according to their respective position values with the following
semantics:
If the position of a field A is less than the position of a field B, than field A comes (not necessarily
directly) before field B.
All fields with the default position value (-1) will come after all fields with explicit positions.
objectType
- the object typeannotationClasses
- the annotation classes
public static List<Field> getAnnotatedFields(Class<?> objectType, Class<? extends Annotation>... annotationClasses)
objectType
- the object typeannotationClasses
- the annotation classes
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |