Class XClass

    • 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.