java.io.Serializable
AbstractClassLibrary
, ClassLoaderLibrary
, ClassNameLibrary
, SourceFolderLibrary
, SourceLibrary
public interface ClassLibrary
extends java.io.Serializable
Modifier and Type | Method | Description |
---|---|---|
JavaClass |
getJavaClass(java.lang.String name) |
Get the JavaClass or null if it's not possible
|
JavaClass |
getJavaClass(java.lang.String name,
boolean createStub) |
Try to retrieve the JavaClass by the (binary) name.
|
java.util.Collection<JavaClass> |
getJavaClasses() |
Return all JavaClasses of the current library.
|
java.util.Collection<JavaModule> |
getJavaModules() |
|
JavaPackage |
getJavaPackage(java.lang.String name) |
Get the JavaPackage or null if it's not possible
|
java.util.Collection<JavaPackage> |
getJavaPackages() |
Return all JavaPackages of the current library.
|
java.util.Collection<JavaSource> |
getJavaSources() |
Return all JavaSources of the current library.
|
boolean |
hasClassReference(java.lang.String name) |
Check if this library holds a reference based on the name.
|
boolean hasClassReference(java.lang.String name)
name
- the (binary) name trying to resolvefalse
JavaClass getJavaClass(java.lang.String name)
name
- The (binary) name of the JavaClassnull
JavaClass getJavaClass(java.lang.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.java.util.Collection<JavaClass> getJavaClasses()
null
java.util.Collection<JavaSource> getJavaSources()
null
JavaPackage getJavaPackage(java.lang.String name)
name
- The fully qualified name of the JavaPackagenull
java.util.Collection<JavaPackage> getJavaPackages()
null
java.util.Collection<JavaModule> getJavaModules()
Copyright © 2002–2018. All rights reserved.