public interface JavaPackage extends JavaModel, JavaAnnotatedElement
| Modifier and Type | Method and Description |
|---|---|
JavaClass |
getClassByName(String name)
Try to get any class of this package by name.
|
Collection<JavaClass> |
getClasses()
Returns all the classes found for the package.
|
ClassLibrary |
getJavaClassLibrary()
The
ClassLibrary of this package. |
String |
getName()
Equivalent of
Package.getName() |
JavaPackage |
getParentPackage()
The parent of this package
For instance: the package of
java.lang.reflect is java.lang |
Collection<JavaPackage> |
getSubPackages()
For instance: one of the children of
java.lang would be java.lang.reflect |
String |
toString()
Equivalent of
Package.toString() |
getAnnotations, getComment, getNamedParameter, getTagByName, getTags, getTagsByNamegetCodeBlock, getLineNumberCollection<JavaClass> getClasses()
nullJavaClass getClassByName(String name)
name - the (fully qualified) name of the classnullJavaPackage getParentPackage()
java.lang.reflect is java.langnullCollection<JavaPackage> getSubPackages()
java.lang would be java.lang.reflectnullString getName()
Package.getName()nullClassLibrary getJavaClassLibrary()
ClassLibrary of this package.nullString toString()
Package.toString()Copyright © 2002–2025. All rights reserved.