public class AnalysisScopeReader extends Object
AnalysisScope
from a text file.Modifier and Type | Field and Description |
---|---|
protected static String |
BASIC_FILE |
Constructor and Description |
---|
AnalysisScopeReader() |
Modifier and Type | Method and Description |
---|---|
static void |
addClassPathToScope(String classPath,
AnalysisScope scope,
ClassLoaderReference loader) |
static AnalysisScope |
makeJavaBinaryAnalysisScope(String classPath,
File exclusionsFile) |
static AnalysisScope |
makePrimordialScope(File exclusionsFile) |
static void |
processScopeDefLine(AnalysisScope scope,
ClassLoader javaLoader,
String line) |
static AnalysisScope |
read(AnalysisScope scope,
String scopeFileName,
File exclusionsFile,
ClassLoader javaLoader,
FileProvider fp) |
protected static AnalysisScope |
read(AnalysisScope scope,
URI scopeFileURI,
File exclusionsFile,
ClassLoader javaLoader,
FileProvider fp) |
static AnalysisScope |
readJavaScope(String scopeFileName,
File exclusionsFile,
ClassLoader javaLoader)
read in an analysis scope for a Java application from a text file
|
protected static final String BASIC_FILE
public static AnalysisScope readJavaScope(String scopeFileName, File exclusionsFile, ClassLoader javaLoader) throws IOException
scopeFileName
- the text file specifying the scopeexclusionsFile
- a file specifying code to be excluded from the scope; can be null
javaLoader
- the class loader used to read in files referenced in the scope file, via ClassLoader.getResource(String)
IOException
public static AnalysisScope read(AnalysisScope scope, String scopeFileName, File exclusionsFile, ClassLoader javaLoader, FileProvider fp) throws IOException
IOException
protected static AnalysisScope read(AnalysisScope scope, URI scopeFileURI, File exclusionsFile, ClassLoader javaLoader, FileProvider fp) throws IOException
IOException
public static void processScopeDefLine(AnalysisScope scope, ClassLoader javaLoader, String line) throws IOException
IOException
public static AnalysisScope makePrimordialScope(File exclusionsFile) throws IOException
exclusionsFile
- file holding class hierarchy exclusions. may be nullIOException
IllegalStateException
- if there are problmes reading wala propertiespublic static AnalysisScope makeJavaBinaryAnalysisScope(String classPath, File exclusionsFile) throws IOException
classPath
- class path to analyze, delimited by File.pathSeparator
exclusionsFile
- file holding class hierarchy exclusions. may be nullIOException
IllegalStateException
- if there are problems reading wala propertiespublic static void addClassPathToScope(String classPath, AnalysisScope scope, ClassLoaderReference loader)