public interface JPackage extends HasAnnotations
Modifier and Type | Method and Description |
---|---|
JClassType |
findType(String typeName)
Finds a type in this package.
|
JClassType |
findType(String[] typeName)
Deprecated.
use
findType(String) |
String |
getName()
Returns the name of the package.
|
JClassType |
getType(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, isAnnotationPresent
JClassType findType(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(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
packageString getName()
JClassType getType(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
packageNotFoundException
JClassType[] getTypes()
boolean isDefault()
true
only for the default package.Copyright © 2018. All rights reserved.