- 所有超级接口:
Serializable
- 所有已知实现类:
AbstractClassLibrary,ClassLoaderLibrary,ClassNameLibrary,SourceFolderLibrary,SourceLibrary
Main methods of a ClassLibrary, which can be used by every Model
- 从以下版本开始:
- 2.0
- 作者:
- Robert Scholte
-
方法概要
修饰符和类型方法说明getJavaClass(String name) Get the JavaClass or null if it's not possiblegetJavaClass(String name, boolean createStub) Try to retrieve the JavaClass by the (binary) name.Return all JavaClasses of the current library.getJavaPackage(String name) Get the JavaPackage or null if it's not possibleReturn all JavaPackages of the current library.Return all JavaSources of the current library.booleanhasClassReference(String name) Check if this library holds a reference based on the name.
-
方法详细资料
-
hasClassReference
Check if this library holds a reference based on the name.- 参数:
name- the (binary) name trying to resolve- 返回:
- true if the classLibrary has a reference, otherwise
false
-
getJavaClass
Get the JavaClass or null if it's not possible- 参数:
name- The (binary) name of the JavaClass- 返回:
- the JavaClass, otherwise
null
-
getJavaClass
Try to retrieve the JavaClass by the (binary) name. If the JavaClss doesn't exist and createStub istruemake a stub, otherwise returnnull- 参数:
name- the name of the classcreateStub- force creation of a stub if the class can't be found- 返回:
- the JavaClass, might be
nulldepending on the value of createStub.
-
getJavaClasses
Collection<JavaClass> getJavaClasses()Return all JavaClasses of the current library. It's up to the library to decide if also collects JavaClasses from it's ancestors- 返回:
- all JavaClasses as a List, never
null
-
getJavaSources
Collection<JavaSource> getJavaSources()Return all JavaSources of the current library. It's up to the library to decide if also collects JavaSources from it's ancestors- 返回:
- all JavaSources as a List, never
null
-
getJavaPackage
Get the JavaPackage or null if it's not possible- 参数:
name- The fully qualified name of the JavaPackage- 返回:
- The package, otherwise
null
-
getJavaPackages
Collection<JavaPackage> getJavaPackages()Return all JavaPackages of the current library. It's up to the library to decide if also collects JavaPackages from it's ancestors- 返回:
- all JavaPackages as a List, never
null
-
getJavaModules
Collection<JavaModule> getJavaModules()
-