public class AnalysisScopeReader
extends java.lang.Object
AnalysisScope from a text file.| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
BASIC_FILE |
| Constructor and Description |
|---|
AnalysisScopeReader() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addClassPathToScope(java.lang.String classPath,
AnalysisScope scope,
ClassLoaderReference loader) |
static AnalysisScope |
makeJavaBinaryAnalysisScope(java.lang.String classPath,
java.io.File exclusionsFile) |
static AnalysisScope |
makePrimordialScope(java.io.File exclusionsFile) |
static void |
processScopeDefLine(AnalysisScope scope,
java.lang.ClassLoader javaLoader,
java.lang.String line) |
static AnalysisScope |
read(AnalysisScope scope,
java.lang.String scopeFileName,
java.io.File exclusionsFile,
java.lang.ClassLoader javaLoader) |
protected static AnalysisScope |
read(AnalysisScope scope,
java.net.URI scopeFileURI,
java.io.File exclusionsFile,
java.lang.ClassLoader javaLoader) |
static AnalysisScope |
readJavaScope(java.lang.String scopeFileName,
java.io.File exclusionsFile,
java.lang.ClassLoader javaLoader)
read in an analysis scope for a Java application from a text file
|
protected static final java.lang.String BASIC_FILE
public static AnalysisScope readJavaScope(java.lang.String scopeFileName, java.io.File exclusionsFile, java.lang.ClassLoader javaLoader) throws java.io.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)java.io.IOExceptionpublic static AnalysisScope read(AnalysisScope scope, java.lang.String scopeFileName, java.io.File exclusionsFile, java.lang.ClassLoader javaLoader) throws java.io.IOException
java.io.IOExceptionprotected static AnalysisScope read(AnalysisScope scope, java.net.URI scopeFileURI, java.io.File exclusionsFile, java.lang.ClassLoader javaLoader) throws java.io.IOException
java.io.IOExceptionpublic static void processScopeDefLine(AnalysisScope scope, java.lang.ClassLoader javaLoader, java.lang.String line) throws java.io.IOException
java.io.IOExceptionpublic static AnalysisScope makePrimordialScope(java.io.File exclusionsFile) throws java.io.IOException
exclusionsFile - file holding class hierarchy exclusions. may be nulljava.lang.IllegalStateException - if there are problmes reading wala propertiesjava.io.IOExceptionpublic static AnalysisScope makeJavaBinaryAnalysisScope(java.lang.String classPath, java.io.File exclusionsFile) throws java.io.IOException
classPath - class path to analyze, delimited by File.pathSeparatorexclusionsFile - file holding class hierarchy exclusions. may be nulljava.lang.IllegalStateException - if there are problems reading wala propertiesjava.io.IOExceptionpublic static void addClassPathToScope(java.lang.String classPath,
AnalysisScope scope,
ClassLoaderReference loader)