java.lang.Object
com.thoughtworks.qdox.library.JavaClassContext
- 所有已实现的接口:
Serializable
JavaClassContext gives you a mechanism to get a
JavaClass.
If a class couldn't be found in the cache, the class will be pulled from the classLibrary, the builder will create the corresponding JavaClass and put it in the cache.- 作者:
- Robert Scholte
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidStore thisJavaClassbased on its fully qualified namevoidadd(JavaPackage jPackage) A null-safe implementation to store aJavaPackagein this contextvoidadd(JavaSource source) Store aJavaSourcein this contextgetClassByName(String name) Retrieve theJavaClassbased on thename.Return all stored JavaClassesgetPackageByName(String name) Retrieve theJavaPackagebased on thename.Return all stored JavaPackagesReturn all stored JavaSourcesremoveClassByName(String name) Remove and return theJavaClassbased on thename.removePackageByName(String name) Remove and return theJavaPackagebased on thename.
-
构造器详细资料
-
JavaClassContext
public JavaClassContext()
-
-
方法详细资料
-
getClassByName
Retrieve theJavaClassbased on thename.- 参数:
name- the fully qualified name of the class- 返回:
- the stored JavaClass, otherwise
null
-
removeClassByName
Remove and return theJavaClassbased on thename.- 参数:
name- the fully qualified name of the class- 返回:
- the removed JavaClass, otherwise
null
-
getClasses
Return all stored JavaClasses- 返回:
- a list of JavaClasses, never
null
-
add
Store thisJavaClassbased on its fully qualified name- 参数:
javaClass- the JavaClass to add
-
getPackageByName
Retrieve theJavaPackagebased on thename.- 参数:
name- the fully qualified name of the package- 返回:
- the stored JavaPackage, otherwise
null
-
removePackageByName
Remove and return theJavaPackagebased on thename.- 参数:
name- the fully qualified name of the class- 返回:
- the removed JavaPackage, otherwise
null
-
add
A null-safe implementation to store aJavaPackagein this context- 参数:
jPackage- the JavaPackage to add
-
getPackages
Return all stored JavaPackages- 返回:
- a list of JavaPackages, never
null
-
add
Store aJavaSourcein this context- 参数:
source- the JavaSource to add
-
getSources
Return all stored JavaSources- 返回:
- a list of JavaSources, never
null
-