-
方法概要
Try to get any class of this package by name.
Returns all the classes found for the package.
The parent of this package
For instance: the package of java.lang.reflect is java.lang
For instance: one of the children of java.lang would be java.lang.reflect
-
方法详细资料
-
getClasses
Returns all the classes found for the package.
- 返回:
- all the classes found for the package, never
null
-
getClassByName
Try to get any class of this package by name.
The name can be both the fully qualified name or just the name of the class.
- 参数:
name - the (fully qualified) name of the class
- 返回:
- the matching class, otherwise
null
- 从以下版本开始:
- 2.0
-
getParentPackage
The parent of this package
For instance: the package of java.lang.reflect is java.lang
- 返回:
- the parent package, otherwise
null
-
getSubPackages
For instance: one of the children of java.lang would be java.lang.reflect
- 返回:
- all the children of this package , never
null
-
getName
- 返回:
- the name, should never be
null
-
getJavaClassLibrary
- 返回:
- the classLibrary, should never be
null
-
toString
- 覆盖:
toString 在类中 Object
- 返回:
- the string representation of the package.