|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openxava.util.Classes
public class Classes
Utility class to work with classes.
| Constructor Summary | |
|---|---|
Classes()
|
|
| Method Summary | |
|---|---|
static java.util.Collection<java.lang.reflect.Field> |
getFieldsAnnotatedWith(java.lang.Class theClass,
java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
All fields from all superclasess and including private, protected and public. |
static java.util.Collection<java.lang.reflect.Method> |
getMethodsAnnotatedWith(java.lang.Class theClass,
java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
Returns the collection of methods with the given annotation |
static boolean |
hasMethod(java.lang.Class theClass,
java.lang.String method)
If the class contains the exact method without argumetns. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Classes()
| Method Detail |
|---|
public static boolean hasMethod(java.lang.Class theClass,
java.lang.String method)
public static java.util.Collection<java.lang.reflect.Field> getFieldsAnnotatedWith(java.lang.Class theClass,
java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
theClass -
public static java.util.Collection<java.lang.reflect.Method> getMethodsAnnotatedWith(java.lang.Class theClass,
java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
theClass - Class object to be examinedannotation - Annotation type to be search for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||