Package edu.umd.cs.findbugs.classfile
Interface IClassPathBuilder
-
- All Known Implementing Classes:
ClassPathBuilder
public interface IClassPathBuilderBuild a classpath. Takes a list of project codebases and- Scans them for nested and referenced codebases
- Builds a list of application class descriptors
- Adds system codebases
- Author:
- David Hovemeyer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddCodeBase(ICodeBaseLocator locator, boolean isApplication)Add a project codebase.voidbuild(IClassPath classPath, IClassPathBuilderProgress progress)Build the classpath.java.util.List<ClassDescriptor>getAppClassList()Get the list of application classes discovered while scanning the classpath.voidscanNestedArchives(boolean scanNestedArchives)Set whether or not nested archives should be scanned.
-
-
-
Method Detail
-
addCodeBase
void addCodeBase(ICodeBaseLocator locator, boolean isApplication)
Add a project codebase.- Parameters:
locator- locator for project codebaseisApplication- true if the codebase is an application codebase, false otherwise
-
scanNestedArchives
void scanNestedArchives(boolean scanNestedArchives)
Set whether or not nested archives should be scanned. This should be called before the build() method is called.- Parameters:
scanNestedArchives- true if nested archives should be scanned, false otherwise
-
build
void build(IClassPath classPath, IClassPathBuilderProgress progress) throws CheckedAnalysisException, java.io.IOException, java.lang.InterruptedException
Build the classpath.- Parameters:
classPath- IClassPath object to buildprogress- IClassPathBuilderProgress callback- Throws:
ResourceNotFoundExceptionjava.io.IOExceptionjava.lang.InterruptedExceptionCheckedAnalysisException
-
getAppClassList
java.util.List<ClassDescriptor> getAppClassList()
Get the list of application classes discovered while scanning the classpath.- Returns:
- list of application classes
-
-