com.ibm.wala.shrikeBT.shrikeCT.tools
Class ClassSearcher

java.lang.Object
  extended by com.ibm.wala.shrikeBT.shrikeCT.tools.ClassSearcher

public class ClassSearcher
extends java.lang.Object

This is a demo class. Class files are taken as input arguments (or if there are none, from standard input). We search those class files for all references to the Java library classes "SoftReference" or "WeakReference". This is just a demo to show how to write a simple tool like this. Here we're using the OfflineInstrumenter class to manage loading a set of class files and JARs for analysis; we don't actually modify any code. In Unix, I run it like this: java -cp ~/dev/shrike/shrike com.ibm.wala.shrikeBT.shrikeCT.tools.ClassSearcher test.jar -o output.jar


Constructor Summary
ClassSearcher()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassSearcher

public ClassSearcher()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception