Skip to content

Commit

Permalink
changed param names, renamed class
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryxu158 committed Nov 5, 2021
1 parent 4c2c8b4 commit 62d2d6d
Showing 1 changed file with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@
import java.io.IOException;
import com.ibm.wala.util.config.AnalysisScopeReader;

//for more information, please check out https://github.com/wala/WALA/wiki/Analysis-Scope
/**
* This file is an example of 2 ways to create an analysis scope.
* for more information on analysis scopes, please check out https://github.com/wala/WALA/wiki/Analysis-Scope
*
*/


public class analysisscope {
public class AnalysisScopeExample {
/**
* @param classPath paths of jars to include in analysis scope, formatted as a Java classpath
* @return AnaylsisScope object created by makeJavaBinaryAnalysisScope
Expand All @@ -24,13 +28,13 @@ AnalysisScope makeAnalysisScope(String classPath) throws IOException {

/**
*
* @param classPath Location of a scope file in string form
* @param exceptionFile location of an exception file
* @param scopeFilePath Location of a scope file in string form
* @param exceptionFilePath location of an exception file
* @return return an analysis scope object
* @throws IOException
*/
AnalysisScope makeAnalysisScope(String classPath, String exceptionFile) throws IOException{
File exception = new File(exceptionFile);
return AnalysisScopeReader.readJavaScope(classPath, exception, null);
AnalysisScope makeAnalysisScope(String scopeFilePath, String exceptionFilePath) throws IOException{
File exception = new File(exceptionFilePath);
return AnalysisScopeReader.readJavaScope(scopeFilePath, exception, AnalysisScopeExample.class.getClassLoader());
}
}

0 comments on commit 62d2d6d

Please sign in to comment.