public interface ClassLibrary extends Serializable
Modifier and Type | Method and Description |
---|---|
JavaClass |
getJavaClass(String name)
Get the JavaClass or null if it's not possible
|
JavaClass |
getJavaClass(String name,
boolean createStub)
Try to retrieve the JavaClass by the (binary) name.
|
Collection<JavaClass> |
getJavaClasses()
Return all JavaClasses of the current library.
|
Collection<JavaModule> |
getJavaModules() |
JavaPackage |
getJavaPackage(String name)
Get the JavaPackage or null if it's not possible
|
Collection<JavaPackage> |
getJavaPackages()
Return all JavaPackages of the current library.
|
Collection<JavaSource> |
getJavaSources()
Return all JavaSources of the current library.
|
boolean |
hasClassReference(String name)
Check if this library holds a reference based on the name.
|
boolean hasClassReference(String name)
name
- the (binary) name trying to resolvefalse
JavaClass getJavaClass(String name)
name
- The (binary) name of the JavaClassnull
JavaClass getJavaClass(String name, boolean createStub)
true
make a stub, otherwise return null
name
- the name of the classcreateStub
- force creation of a stub if the class can't be foundnull
depending on the value of createStub.Collection<JavaClass> getJavaClasses()
null
Collection<JavaSource> getJavaSources()
null
JavaPackage getJavaPackage(String name)
name
- The fully qualified name of the JavaPackagenull
Collection<JavaPackage> getJavaPackages()
null
Collection<JavaModule> getJavaModules()
Copyright © 2002–2019. All rights reserved.