Package org.jvnet.jaxb.annox.model
Class XClass
- java.lang.Object
-
- org.jvnet.jaxb.annox.model.XAnnotated
-
- org.jvnet.jaxb.annox.model.XAnnotatedElement<Class<?>>
-
- org.jvnet.jaxb.annox.model.XClass
-
- All Implemented Interfaces:
AnnotatedElement
public class XClass extends XAnnotatedElement<Class<?>>
Defines an annotated class.- Author:
- Aleksei Valikov
-
-
Field Summary
Fields Modifier and Type Field Description static XClass[]EMPTY_ARRAYEmpty array of classes.static XClassVOIDXClass for Void.
-
Constructor Summary
Constructors Constructor Description XClass(Class<?> targetClass, XAnnotation<?>[] xannotations, XField[] xfields, XConstructor[] xconstructors, XMethod[] xmethods)Constructs an annotated class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XConstructor[]getConstructors()Returns annotated constructors of the class.XField[]getFields()Returns annotated fields of the class.XMember<?>[]getMembers()Returns annotated members of the class.XMethod[]getMethods()Returns annotated methods of the class.Class<?>getTargetClass()Returns the target class.-
Methods inherited from class org.jvnet.jaxb.annox.model.XAnnotatedElement
getAnnotatedElement, getAnnotation, getDeclaredAnnotations, isAnnotationPresent
-
Methods inherited from class org.jvnet.jaxb.annox.model.XAnnotated
equals, getAnnotations, getXAnnotations, hashCode, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.reflect.AnnotatedElement
getAnnotations, getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByType
-
-
-
-
Constructor Detail
-
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 Detail
-
getTargetClass
public Class<?> getTargetClass()
Returns the target class.- Returns:
- Target class.
-
getMembers
public XMember<?>[] getMembers()
Returns annotated members of the class.- Returns:
- Annotated members of the class.
-
getConstructors
public XConstructor[] getConstructors()
Returns annotated constructors of the class.- Returns:
- Annotated constructors of the class.
-
getFields
public XField[] getFields()
Returns annotated fields of the class.- Returns:
- Annotated fields of the class.
-
getMethods
public XMethod[] getMethods()
Returns annotated methods of the class.- Returns:
- Annotated methods of the class.
-
-