Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AnalysisScope example #11

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package com.ibm.wala.examples.AnalysisScopeExamples;
jerryxu158 marked this conversation as resolved.
Show resolved Hide resolved

import com.ibm.wala.ipa.callgraph.AnalysisScope;
import com.ibm.wala.ipa.callgraph.AnalysisScope;
import com.ibm.wala.util.config.FileOfClasses;
import com.ibm.wala.util.config.AnalysisScopeReader;

import java.io.IOException;

import com.ibm.wala.util.config.AnalysisScopeReader;

public class AnalysisScopeExamples {
/**
* @param classPath takes in location of a class file through a string format rather than a JSON file
jerryxu158 marked this conversation as resolved.
Show resolved Hide resolved
* @return AnaylsisScope object created by makeJavaBinaryAnalysisScope
* @throws IOException
*/
AnalysisScope makeAnalysisScope(String classPath) throws IOException{
jerryxu158 marked this conversation as resolved.
Show resolved Hide resolved
return AnalysisScopeReader.makeJavaBinaryAnalysisScope(classPath, null);
}
}