public interface AnalysisEngine
| Modifier and Type | Method and Description |
|---|---|
AnalysisOptions |
getDefaultOptions(java.lang.Iterable<Entrypoint> entrypoints)
Get the default analysis options appropriate for this engine
|
void |
setClosedWorld(boolean b)
Specify whether the engine should or should not employ "closed-world" analysis.
|
void |
setJ2SELibraries(java.util.jar.JarFile[] libs)
Specify the jar files that represent the standard J2SE libraries
|
void |
setJ2SELibraries(Module[] libs)
Specify the mdoules that represent the standard J2SE libraries
|
void |
setModuleFiles(java.util.Collection<? extends Module> moduleFiles)
Specify the list of modules that should be analyzed.
|
void setModuleFiles(java.util.Collection<? extends Module> moduleFiles)
moduleFiles - A non-null Collection of module files: (EARFile, WARFile,
ApplicationClientFile, EJBJarFile).void setJ2SELibraries(java.util.jar.JarFile[] libs)
libs - an array of jar files; usually rt.jar for vanilla JDK core.jar, server.jar, and
xml.jar for some WAS runtimesvoid setJ2SELibraries(Module[] libs)
libs - an array of Modules; usually rt.jar for vanilla JDK core.jar, server.jar, and
xml.jar for some WAS runtimesvoid setClosedWorld(boolean b)
In a closed-world analysis, the engine considers only application client main methods and servlet entrypoints to the application.
In an open-world analysis, the engine additionally considers all EJB local and remote interface methods as entrypoints.
By default, this property is false; the default analysis is open-world
b - whether to use closed-world analysisAnalysisOptions getDefaultOptions(java.lang.Iterable<Entrypoint> entrypoints)