tweak some comments
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2357 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
This commit is contained in:
parent
4e8ea646df
commit
5e7af75566
|
@ -35,25 +35,14 @@ public class CallGraphTestUtil {
|
|||
|
||||
private static final ClassLoader MY_CLASSLOADER = CallGraphTestUtil.class.getClassLoader();
|
||||
|
||||
// private static final String reflectionFile = Config.SPECJVM_REFLECTION;
|
||||
|
||||
public static AnalysisOptions makeAnalysisOptions(AnalysisScope scope, Iterable<Entrypoint> entrypoints) {
|
||||
AnalysisOptions options = new AnalysisOptions(scope, entrypoints);
|
||||
|
||||
// InputStream rStream =
|
||||
// CallGraphTestUtil.class.getClassLoader().getResourceAsStream(reflectionFile);
|
||||
// ReflectionSpecification R = new XMLReflectionReader(rStream, scope);
|
||||
// options.setReflectionSpec(R);
|
||||
return options;
|
||||
}
|
||||
|
||||
public static String REGRESSION_EXCLUSIONS = "Java60RegressionExclusions.txt";
|
||||
|
||||
// public static AnalysisScope makeJ2SEAnalysisScope(String scopeFile) {
|
||||
// return AnalysisScopeReader.read(scopeFile,
|
||||
// "J2SEClassHierarchyExclusions.txt", MY_CLASSLOADER);
|
||||
// }
|
||||
|
||||
public static AnalysisScope makeJ2SEAnalysisScope(String scopeFile, String exclusionsFile) throws IOException {
|
||||
AnalysisScope scope = AnalysisScopeReader.read(scopeFile, FileProvider.getFile(exclusionsFile), MY_CLASSLOADER);
|
||||
return scope;
|
||||
|
|
|
@ -37,9 +37,8 @@ import com.ibm.wala.viz.DotUtil;
|
|||
import com.ibm.wala.viz.GVUtil;
|
||||
|
||||
/**
|
||||
*
|
||||
* This simple example WALA application builds a call graph and fires off
|
||||
* ghostview to viz a DOT representation.
|
||||
* ghostview to visualize a DOT representation.
|
||||
*
|
||||
* @author sfink
|
||||
*/
|
||||
|
@ -101,7 +100,6 @@ public class GVCallGraph {
|
|||
return GVUtil.launchGV(psFile, gvExe);
|
||||
|
||||
} catch (WalaException e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
return null;
|
||||
}
|
||||
|
@ -157,23 +155,16 @@ public class GVCallGraph {
|
|||
}
|
||||
|
||||
/**
|
||||
* @author sfink
|
||||
* A filter that accepts WALA objects that "belong" to the application loader.
|
||||
*
|
||||
* A filter that accepts domo objects that "belong" to the application loader.
|
||||
*
|
||||
* Currently supported DOMO types include
|
||||
* Currently supported WALA types include
|
||||
* <ul>
|
||||
* <li> CGNode
|
||||
* <li> LocalPointerKey
|
||||
* <li> {@link CGNode}
|
||||
* <li> {@link LocalPointerKey}
|
||||
* </ul>
|
||||
*/
|
||||
private static class ApplicationLoaderFilter implements Filter<CGNode> {
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see com.ibm.capa.util.collections.Filter#accepts(java.lang.Object)
|
||||
*/
|
||||
public boolean accepts(CGNode o) {
|
||||
if (o instanceof CGNode) {
|
||||
CGNode n = (CGNode) o;
|
||||
|
@ -185,6 +176,5 @@ public class GVCallGraph {
|
|||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue