java.lang.Object
com.thoughtworks.qdox.type.TypeResolver
A per JavaClass resolver of types
- 从以下版本开始:
- 2.0
- 作者:
- Robert Scholte
-
方法概要
修饰符和类型方法说明static TypeResolverbyClassName(String binaryName, ClassLibrary classLibrary, Collection<String> imports) static TypeResolverbyPackageName(String binaryName, ClassLibrary classLibrary, Collection<String> imports) Type resolver in case there's no declaring class, e.g. using extends, implements and annotations on a toplevel classgetJavaClass(String binaryName) resolveJavaClass(String typeName) resolveType(String typeName)
-
方法详细资料
-
byPackageName
public static TypeResolver byPackageName(String binaryName, ClassLibrary classLibrary, Collection<String> imports) Type resolver in case there's no declaring class, e.g. using extends, implements and annotations on a toplevel class- 参数:
binaryName- the binary name of the packageclassLibrary- the class libraryimports- the imports, can benull- 返回:
- the typeResolver
-
byClassName
public static TypeResolver byClassName(String binaryName, ClassLibrary classLibrary, Collection<String> imports) - 参数:
binaryName- the class in which context a type is used.classLibrary- the class libraryimports- the imports, can benull- 返回:
- the typeResolver
-
resolveJavaClass
-
getJavaClass
-
resolveType
-