| Modifier and Type | Field and Description |
|---|---|
| private AnnotationInfoList | annotationInfo
|
| private Set | annotationInfoSet
Unique |
| private Set | children
The child packages of this package. |
| private Map | memberClassNameToClassInfo
Set of classes in the package. |
| private String | name
Name of the package. |
| private PackageInfo | parent
The parent package of this package. |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | addAnnotations(final AnnotationInfoList
the package annotations packageAnnotations)Add annotations found in a package descriptor classfile. |
| pack-priv void | addClassInfo(final ClassInfo
the classInfo)ClassInfo object to add to the package.Merge a |
| public int | compareTo(final PackageInfo
the object to be compared. o)Implements java. Compares this object with the specified object for order. |
| public boolean | equals(final Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public AnnotationInfo | Returns: AnAnnotationInfo object representing the annotation on this package, or null if the package
does not have the annotation.The annotation. annotation)Get a the annotation on this package, or null if the package does not have the annotation. |
| public AnnotationInfo | Returns: AnAnnotationInfo object representing the named annotation on this package, or null if the
package does not have the named annotation.The annotation name. annotationName)Get a the named annotation on this package, or null if the package does not have the named annotation. |
| public AnnotationInfoList | Returns: the annotations on thepackage-info.class file.Get any annotations on the |
| public PackageInfoList | Returns: the child packages, or the empty list if none.The child packages of this package, or the empty list if none. |
| public ClassInfo | Returns: theClassInfo object for the named class in this package, or null if the class was not found
in this package.the class name className)Get the |
| public ClassInfoList | Returns: theClassInfo objects for all classes that are members of this package.Get the |
| public ClassInfoList | Returns: the theClassInfo objects for all classes that are members of this package or a sub-package.Get the |
| public String | Returns: the nameImplements io. The package name ("" for the root package). |
| pack-priv static PackageInfo | Returns: thePackageInfo for the named package.the package name packageName, final Map<String, PackageInfo> a map from package name to package info packageNameToPackageInfo, final ScanSpec the ScanSpec. scanSpec)Get the |
| public PackageInfo | Returns: the parent package, or null if this is the root package.The parent package of this package, or null if this is the root package. |
| pack-priv static String | Returns: the parent package, or the package of the named class, or null if packageOrClassName is the root package ("").The package or class name. packageOrClassName)Get the name of the parent package of a parent, or the package of the named class. |
| public boolean | Returns: true if this package has the annotation.The annotation. annotation)Check if the package has the annotation. |
| public boolean | Returns: true if this package has the named annotation.The name of an annotation. annotationName)Check if the package has the named annotation. |
| public int | |
| private void | obtainClassInfoRecursive(final Set<ClassInfo>
the reachable class info reachableClassInfo)Get the |
| public String |
| annotationInfo | back to summary |
|---|---|
| private AnnotationInfoList annotationInfo
| |
| annotationInfoSet | back to summary |
|---|---|
| private Set<AnnotationInfo> annotationInfoSet Unique | |
| children | back to summary |
|---|---|
| private Set<PackageInfo> children The child packages of this package. | |
| memberClassNameToClassInfo | back to summary |
|---|---|
| private Map<String, ClassInfo> memberClassNameToClassInfo Set of classes in the package. | |
| name | back to summary |
|---|---|
| private String name Name of the package. | |
| parent | back to summary |
|---|---|
| private PackageInfo parent The parent package of this package. | |
| PackageInfo | back to summary |
|---|---|
| pack-priv PackageInfo() Deerialization constructor. | |
| PackageInfo | back to summary |
|---|---|
| pack-priv PackageInfo(final String packageName) Construct a PackageInfo object.
| |
| addAnnotations | back to summary |
|---|---|
| pack-priv void addAnnotations(final AnnotationInfoList packageAnnotations) Add annotations found in a package descriptor classfile.
| |
| addClassInfo | back to summary |
|---|---|
| pack-priv void addClassInfo(final ClassInfo classInfo) Merge a | |
| compareTo | back to summary |
|---|---|
| public int compareTo(final PackageInfo o) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getAnnotationInfo | back to summary |
|---|---|
| public AnnotationInfo getAnnotationInfo(final Class<? extends Annotation> annotation) Get a the annotation on this package, or null if the package does not have the annotation.
| |
| getAnnotationInfo | back to summary |
|---|---|
| public AnnotationInfo getAnnotationInfo(final String annotationName) Get a the named annotation on this package, or null if the package does not have the named annotation.
| |
| getAnnotationInfo | back to summary |
|---|---|
| public AnnotationInfoList getAnnotationInfo() Get any annotations on the
| |
| getChildren | back to summary |
|---|---|
| public PackageInfoList getChildren() The child packages of this package, or the empty list if none.
| |
| getClassInfo | back to summary |
|---|---|
| public ClassInfo getClassInfo(final String className) Get the | |
| getClassInfo | back to summary |
|---|---|
| public ClassInfoList getClassInfo() Get the
| |
| getClassInfoRecursive | back to summary |
|---|---|
| public ClassInfoList getClassInfoRecursive() Get the
| |
| getName | back to summary |
|---|---|
| public String getName() Implements io. The package name ("" for the root package). | |
| getOrCreatePackage | back to summary |
|---|---|
| pack-priv static PackageInfo getOrCreatePackage(final String packageName, final Map<String, PackageInfo> packageNameToPackageInfo, final ScanSpec scanSpec) Get the
| |
| getParent | back to summary |
|---|---|
| public PackageInfo getParent() The parent package of this package, or null if this is the root package.
| |
| getParentPackageName | back to summary |
|---|---|
| pack-priv static String getParentPackageName(final String packageOrClassName) Get the name of the parent package of a parent, or the package of the named class. | |
| hasAnnotation | back to summary |
|---|---|
| public boolean hasAnnotation(final Class<? extends Annotation> annotation) Check if the package has the annotation.
| |
| hasAnnotation | back to summary |
|---|---|
| public boolean hasAnnotation(final String annotationName) Check if the package has the named annotation.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| obtainClassInfoRecursive | back to summary |
|---|---|
| private void obtainClassInfoRecursive(final Set<ClassInfo> reachableClassInfo) Get the | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |