Class ClassFactory
- java.lang.Object
-
- edu.umd.cs.findbugs.classfile.impl.ClassFactory
-
- All Implemented Interfaces:
IClassFactory
public class ClassFactory extends java.lang.Object implements IClassFactory
Factory to create codebase/classpath/classfile objects.
-
-
Field Summary
Fields Modifier and Type Field Description private static IClassFactory
theInstance
-
Constructor Summary
Constructors Modifier Constructor Description private
ClassFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IAnalysisCache
createAnalysisCache(IClassPath classPath, BugReporter errorLogger)
IClassPath
createClassPath()
IClassPathBuilder
createClassPathBuilder(IErrorLogger errorLogger)
private static IScannableCodeBase
createEmptyCodeBase(FilesystemCodeBaseLocator codeBaseLocator, java.io.File file)
(package private) static IScannableCodeBase
createFilesystemCodeBase(FilesystemCodeBaseLocator codeBaseLocator)
ICodeBaseLocator
createFilesystemCodeBaseLocator(java.lang.String pathName)
ICodeBaseLocator
createNestedArchiveCodeBaseLocator(ICodeBase parentCodeBase, java.lang.String path)
(package private) static IScannableCodeBase
createNestedZipFileCodeBase(NestedZipFileCodeBaseLocator codeBaseLocator)
static IClassFactory
instance()
-
-
-
Field Detail
-
theInstance
private static IClassFactory theInstance
-
-
Method Detail
-
instance
public static IClassFactory instance()
-
createClassPath
public IClassPath createClassPath()
- Specified by:
createClassPath
in interfaceIClassFactory
-
createClassPathBuilder
public IClassPathBuilder createClassPathBuilder(IErrorLogger errorLogger)
- Specified by:
createClassPathBuilder
in interfaceIClassFactory
-
createFilesystemCodeBaseLocator
public ICodeBaseLocator createFilesystemCodeBaseLocator(java.lang.String pathName)
- Specified by:
createFilesystemCodeBaseLocator
in interfaceIClassFactory
-
createNestedArchiveCodeBaseLocator
public ICodeBaseLocator createNestedArchiveCodeBaseLocator(ICodeBase parentCodeBase, java.lang.String path)
- Specified by:
createNestedArchiveCodeBaseLocator
in interfaceIClassFactory
-
createFilesystemCodeBase
static IScannableCodeBase createFilesystemCodeBase(FilesystemCodeBaseLocator codeBaseLocator) throws java.io.IOException
- Throws:
java.io.IOException
-
createEmptyCodeBase
private static IScannableCodeBase createEmptyCodeBase(FilesystemCodeBaseLocator codeBaseLocator, java.io.File file)
-
createNestedZipFileCodeBase
static IScannableCodeBase createNestedZipFileCodeBase(NestedZipFileCodeBaseLocator codeBaseLocator) throws ResourceNotFoundException, java.io.IOException
- Throws:
ResourceNotFoundException
java.io.IOException
-
createAnalysisCache
public IAnalysisCache createAnalysisCache(IClassPath classPath, BugReporter errorLogger)
- Specified by:
createAnalysisCache
in interfaceIClassFactory
-
-