java.lang.Object
com.thoughtworks.qdox.library.AbstractClassLibrary
com.thoughtworks.qdox.library.ClassLoaderLibrary
- 所有已实现的接口:
ClassLibrary,Serializable
Important!! Be sure to add a classloader with the bootstrap classes.
Normally you can generate your classLibrary like this:
ClassLibrary classLibrary = new ClassLibrary();
classLibrary.addDefaultLoader();
If you want full control over the classLoaders you might want to create your library like:
ClassLibrary classLibrary = new ClassLibrary( ClassLoader.getSystemClassLoader() )
- 从以下版本开始:
- 2.0
- 作者:
- Joe Walnes, Aslak Hellesøy, Robert Scholte
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidaddClassLoader(ClassLoader classLoader) voidprotected booleancontainsClassReference(String name) This method is used to detect if there's a match with this classname.protected JavaClassresolveJavaClass(String name) The implementation should check it's sources to see if it can build a JavaClass Model If not, just return null; Once found it will be mapped, so there's no need to keep a reference to this object.protected JavaPackageresolveJavaPackage(String name) voidsetDebugLexer(boolean debugLexer) Set totrueto enable debug logging for the lexervoidsetDebugParser(boolean debugParser) Set totrueto enable debug logging for the parservoidsetErrorHandler(ErrorHandler errorHandler) 从类继承的方法 com.thoughtworks.qdox.library.AbstractClassLibrary
getJavaClass, getJavaClass, getJavaClasses, getJavaClasses, getJavaModules, getJavaPackage, getJavaPackages, getJavaPackages, getJavaSources, getJavaSources, getModelBuilder, getModelBuilder, getModelBuilderFactory, getModelWriterFactory, hasClassReference, setModelBuilderFactory, setModelWriterFactory
-
构造器详细资料
-
ClassLoaderLibrary
-
ClassLoaderLibrary
-
-
方法详细资料
-
addClassLoader
-
addDefaultLoader
public void addDefaultLoader() -
resolveJavaClass
从类复制的说明:AbstractClassLibraryThe implementation should check it's sources to see if it can build a JavaClass Model If not, just return null; Once found it will be mapped, so there's no need to keep a reference to this object.- 指定者:
resolveJavaClass在类中AbstractClassLibrary- 参数:
name- the fully qualified name- 返回:
- the resolved JavaClass, otherwise
null
-
resolveJavaPackage
- 指定者:
resolveJavaPackage在类中AbstractClassLibrary
-
containsClassReference
从类复制的说明:AbstractClassLibraryThis method is used to detect if there's a match with this classname. The name could be constructed based on imports and inner class paths.- 指定者:
containsClassReference在类中AbstractClassLibrary- 参数:
name- the fully qualified name of the class- 返回:
- true if this ClassLibrary has a reference to this class.
-
setDebugLexer
public void setDebugLexer(boolean debugLexer) Set totrueto enable debug logging for the lexer- 参数:
debugLexer- the debug logging flag
-
setDebugParser
public void setDebugParser(boolean debugParser) Set totrueto enable debug logging for the parser- 参数:
debugParser- the debug logging flag
-
setErrorHandler
-