public interface JPackage extends HasAnnotations
| Modifier and Type | Method and Description |
|---|---|
JClassType |
findType(java.lang.String typeName)
Finds a type in this package.
|
JClassType |
findType(java.lang.String[] typeName)
Deprecated.
use
findType(String) |
java.lang.String |
getName()
Returns the name of the package.
|
JClassType |
getType(java.lang.String typeName)
Finds a type in this package.
|
JClassType[] |
getTypes()
Returns all top-level types in this package.
|
boolean |
isDefault()
Returns
true only for the default package. |
getAnnotation, getAnnotations, getDeclaredAnnotations, isAnnotationPresentJClassType findType(java.lang.String typeName)
typeName - the name of the type; use the . separator to
find a nested typenull if the type does not exist in this
package@Deprecated JClassType findType(java.lang.String[] typeName)
findType(String)typeName - the name of the type; use additional array elements to find
a nested typenull if the type does not exist in this
packagejava.lang.String getName()
JClassType getType(java.lang.String typeName) throws NotFoundException
typeName - the name of the type; use the . separated to
search for a nested typenull if the type does not exist in this
packageNotFoundExceptionJClassType[] getTypes()
boolean isDefault()
true only for the default package.