JavaAnnotatedElement
, JavaModel
, Serializable
DefaultJavaPackage
public interface JavaPackage extends JavaModel, JavaAnnotatedElement
Modifier and Type | Method | 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, getTagsByName
getCodeBlock, getLineNumber
Collection<JavaClass> getClasses()
null
JavaClass getClassByName(String name)
name
- the (fully qualified) name of the classnull
JavaPackage getParentPackage()
java.lang.reflect
is java.lang
null
Collection<JavaPackage> getSubPackages()
java.lang
would be java.lang.reflect
null
String getName()
Package.getName()
null
ClassLibrary getJavaClassLibrary()
ClassLibrary
of this package.null
String toString()
Package.toString()
Copyright © 2002–2018. All rights reserved.