Class ClassPathBuilder
- java.lang.Object
-
- edu.umd.cs.findbugs.classfile.impl.ClassPathBuilder
-
- All Implemented Interfaces:
IClassPathBuilder
public class ClassPathBuilder extends java.lang.Object implements IClassPathBuilder
Implementation of IClassPathBuilder.- Author:
- David Hovemeyer
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCodeBase(ICodeBaseLocator locator, boolean isApplication)
Add a project codebase.void
build(IClassPath classPath, IClassPathBuilderProgress progress)
Build the classpath.java.util.List<ClassDescriptor>
getAppClassList()
Get the list of application classes discovered while scanning the classpath.void
scanNestedArchives(boolean scanNestedArchives)
Set whether or not nested archives should be scanned.
-
-
-
Method Detail
-
addCodeBase
public void addCodeBase(ICodeBaseLocator locator, boolean isApplication)
Description copied from interface:IClassPathBuilder
Add a project codebase.- Specified by:
addCodeBase
in interfaceIClassPathBuilder
- Parameters:
locator
- locator for project codebaseisApplication
- true if the codebase is an application codebase, false otherwise
-
scanNestedArchives
public void scanNestedArchives(boolean scanNestedArchives)
Description copied from interface:IClassPathBuilder
Set whether or not nested archives should be scanned. This should be called before the build() method is called.- Specified by:
scanNestedArchives
in interfaceIClassPathBuilder
- Parameters:
scanNestedArchives
- true if nested archives should be scanned, false otherwise
-
build
public void build(IClassPath classPath, IClassPathBuilderProgress progress) throws CheckedAnalysisException, java.io.IOException, java.lang.InterruptedException
Description copied from interface:IClassPathBuilder
Build the classpath.- Specified by:
build
in interfaceIClassPathBuilder
- Parameters:
classPath
- IClassPath object to buildprogress
- IClassPathBuilderProgress callback- Throws:
ResourceNotFoundException
java.io.IOException
java.lang.InterruptedException
CheckedAnalysisException
-
getAppClassList
public java.util.List<ClassDescriptor> getAppClassList()
Description copied from interface:IClassPathBuilder
Get the list of application classes discovered while scanning the classpath.- Specified by:
getAppClassList
in interfaceIClassPathBuilder
- Returns:
- list of application classes
-
-