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 nulljavaLoader - the class loader used to read in files referenced in the scope file, via ClassLoader.getResource(String)IOExceptionpublic static AnalysisScope read(AnalysisScope scope, String scopeFileName, File exclusionsFile, ClassLoader javaLoader, FileProvider fp) throws IOException
IOExceptionprotected static AnalysisScope read(AnalysisScope scope, URI scopeFileURI, File exclusionsFile, ClassLoader javaLoader, FileProvider fp) throws IOException
IOExceptionpublic static void processScopeDefLine(AnalysisScope scope, ClassLoader javaLoader, String line) throws IOException
IOExceptionpublic static AnalysisScope makePrimordialScope(File exclusionsFile) throws IOException
exclusionsFile - file holding class hierarchy exclusions. may be nullIOExceptionIllegalStateException - if there are problmes reading wala propertiespublic static AnalysisScope makeJavaBinaryAnalysisScope(String classPath, File exclusionsFile) throws IOException
classPath - class path to analyze, delimited by File.pathSeparatorexclusionsFile - file holding class hierarchy exclusions. may be nullIOExceptionIllegalStateException - if there are problems reading wala propertiespublic static void addClassPathToScope(String classPath, AnalysisScope scope, ClassLoaderReference loader)
Copyright © 2015. All rights reserved.