Class PackageInfo

    • Method Detail

      • getName

        public String getName()
        The package name ("" for the root package).
      • getAnnotationInfo

        public AnnotationInfo getAnnotationInfo​(String annotationName)
        Get a the named annotation on this package, or null if the package does not have the named annotation.
        Parameters:
        annotationName - The annotation name.
        Returns:
        An AnnotationInfo object representing the named annotation on this package, or null if the package does not have the named annotation.
      • getAnnotationInfo

        public AnnotationInfoList getAnnotationInfo()
        Get any annotations on the package-info.class file.
      • hasAnnotation

        public boolean hasAnnotation​(String annotationName)
        Parameters:
        annotationName - The name of an annotation.
        Returns:
        true if this package has the named annotation.
      • getParent

        public PackageInfo getParent()
        The parent package of this package, or null if this is the root package.
      • getChildren

        public List<PackageInfo> getChildren()
        The child packages of this package, or the empty list if none.
      • getClassInfo

        public ClassInfo getClassInfo​(String className)
        Get the ClassInfo object for the named class in this package, or null if the class was not found in this module.
      • getClassInfo

        public ClassInfoList getClassInfo()
        Get the ClassInfo objects for all classes that are members of this package.
      • getClassInfoRecursive

        public ClassInfoList getClassInfoRecursive()
        Get the ClassInfo objects for all classes that are members of this package or a sub-package.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object