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 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
public void addCodeBase(ICodeBaseLocator locator, boolean isApplication)
Description copied from interface:IClassPathBuilderAdd a project codebase.- Specified by:
addCodeBasein 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:IClassPathBuilderSet whether or not nested archives should be scanned. This should be called before the build() method is called.- Specified by:
scanNestedArchivesin 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:IClassPathBuilderBuild the classpath.- Specified by:
buildin interfaceIClassPathBuilder- Parameters:
classPath- IClassPath object to buildprogress- IClassPathBuilderProgress callback- Throws:
ResourceNotFoundExceptionjava.io.IOExceptionjava.lang.InterruptedExceptionCheckedAnalysisException
-
getAppClassList
public java.util.List<ClassDescriptor> getAppClassList()
Description copied from interface:IClassPathBuilderGet the list of application classes discovered while scanning the classpath.- Specified by:
getAppClassListin interfaceIClassPathBuilder- Returns:
- list of application classes
-
-