Class XPackage

All Implemented Interfaces:
AnnotatedElement

public class XPackage extends XAnnotatedElement<Package>
Defines an annotated package.
Author:
Aleksei Valikov
  • Field Details

    • VOID

      public static final XPackage VOID
      VOID package. Signals that package could not be found.
  • Constructor Details

    • XPackage

      public XPackage(Package targetPackage, XAnnotation<?>[] xannotations, XClass[] xclasses)
      Constructs an annotated package.
      Parameters:
      targetPackage - target package.
      xannotations - package annotations, may be null.
  • Method Details

    • getPackage

      public Package getPackage()
      Returns the target package.
      Returns:
      Target package.
    • getClasses

      public XClass[] getClasses()
      Returns annotated classes of the package.
      Returns:
      Annotated classes of the package.