JavaAnnotatedElement
, JavaModel
, java.io.Serializable
DefaultJavaPackage
public interface JavaPackage extends JavaModel, JavaAnnotatedElement
Modifier and Type | Method | Description |
---|---|---|
JavaClass |
getClassByName(java.lang.String name) |
Try to get any class of this package by name.
|
java.util.Collection<JavaClass> |
getClasses() |
Returns all the classes found for the package.
|
ClassLibrary |
getJavaClassLibrary() |
The
ClassLibrary of this package. |
java.lang.String |
getName() |
Equivalent of
Package.getName() |
JavaPackage |
getParentPackage() |
The parent of this package
For instance: the package of
java.lang.reflect is java.lang |
java.util.Collection<JavaPackage> |
getSubPackages() |
For instance: one of the children of
java.lang would be java.lang.reflect |
java.lang.String |
toString() |
Equivalent of
Package.toString() |
getAnnotations, getComment, getNamedParameter, getTagByName, getTags, getTagsByName
getCodeBlock, getLineNumber
java.util.Collection<JavaClass> getClasses()
null
JavaClass getClassByName(java.lang.String name)
name
- the (fully qualified) name of the classnull
JavaPackage getParentPackage()
java.lang.reflect
is java.lang
null
java.util.Collection<JavaPackage> getSubPackages()
java.lang
would be java.lang.reflect
null
java.lang.String getName()
Package.getName()
null
ClassLibrary getJavaClassLibrary()
ClassLibrary
of this package.null
java.lang.String toString()
Package.toString()
toString
in class java.lang.Object
Copyright © 2002–2018. All rights reserved.