Class ClassSearcher


  • public class ClassSearcher
    extends 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 Detail

      • ClassSearcher

        public ClassSearcher()