org.jvnet.annox.model
Class XClass

java.lang.Object
  extended by org.jvnet.annox.model.XAnnotated
      extended by org.jvnet.annox.model.XAnnotatedElement<Class<?>>
          extended by org.jvnet.annox.model.XClass
All Implemented Interfaces:
AnnotatedElement

public class XClass
extends XAnnotatedElement<Class<?>>

Defines an annotated class.

Author:
Aleksei Valikov

Field Summary
static XClass[] EMPTY_ARRAY
          Empty array of classes.
static XClass VOID
          XClass for Void.
 
Constructor Summary
XClass(Class<?> targetClass, XAnnotation[] xannotations, XField[] xfields, XConstructor[] xconstructors, XMethod[] xmethods)
          Constructs an annotated class.
 
Method Summary
 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.annox.model.XAnnotatedElement
getAnnotatedElement, getAnnotation, getDeclaredAnnotations, isAnnotationPresent
 
Methods inherited from class org.jvnet.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
 

Field Detail

EMPTY_ARRAY

public static final XClass[] EMPTY_ARRAY
Empty array of classes.


VOID

public static final XClass VOID
XClass for Void.

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.


Copyright © 2006-2012 Highsource. All Rights Reserved.