Package org.jvnet.basicjaxb_annox.model
Class XClass
- All Implemented Interfaces:
AnnotatedElement
Defines an annotated class.
- Author:
- Aleksei Valikov
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionXClass(Class<?> targetClass, XAnnotation<?>[] xannotations, XField[] xfields, XConstructor[] xconstructors, XMethod[] xmethods) Constructs an annotated class. -
Method Summary
Methods inherited from class org.jvnet.basicjaxb_annox.model.XAnnotatedElement
getAnnotatedElement, getAnnotation, getDeclaredAnnotations, isAnnotationPresentMethods inherited from class org.jvnet.basicjaxb_annox.model.XAnnotated
equals, getAnnotations, getXAnnotations, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.reflect.AnnotatedElement
getAnnotations, getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByType
-
Field Details
-
EMPTY_ARRAY
Empty array of classes. -
VOID
XClass for Void.
-
-
Constructor Details
-
XClass
public XClass(Class<?> targetClass, XAnnotation<?>[] xannotations, XField[] xfields, XConstructor[] xconstructors, XMethod[] xmethods) Constructs an annotated class.- Parameters:
targetClass- target class.xannotations- class annotations.xfields- annotated fields.xconstructors- annotated constructors.xmethods- annotated methods.
-
-
Method Details
-
getTargetClass
Returns the target class.- Returns:
- Target class.
-
getMembers
Returns annotated members of the class.- Returns:
- Annotated members of the class.
-
getConstructors
Returns annotated constructors of the class.- Returns:
- Annotated constructors of the class.
-
getFields
Returns annotated fields of the class.- Returns:
- Annotated fields of the class.
-
getMethods
Returns annotated methods of the class.- Returns:
- Annotated methods of the class.
-