sandmark.util
Class EditedClass
java.lang.Object
|
+--sandmark.util.EditedClass
- public class EditedClass
- extends java.lang.Object
Used by ReplaceCall to keep track of open class files
and methods.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
classCache
static java.util.Hashtable classCache
cg
public de.fub.bytecode.generic.ClassGen cg
cp
public de.fub.bytecode.generic.ConstantPoolGen cp
methodCache
java.util.Hashtable methodCache
methodsCache
java.util.Hashtable methodsCache
cfc
ClassFileCollection cfc
className
public java.lang.String className
EditedClass
public EditedClass(ClassFileCollection cfc,
java.lang.String className)
throws java.io.IOException
- Edit the class
className
.
- Parameters:
cfc
- the class file collectionclassName
- the fully qualified name (x.y.z) of the class we want to edit
open
public static EditedClass open(ClassFileCollection cfc,
java.lang.String className)
throws java.io.IOException
java.io.IOException
close
public void close(boolean changed)
throws java.io.IOException
java.io.IOException
close
public void close()
throws java.io.IOException
java.io.IOException
closeAll
public static void closeAll(boolean changed)
throws java.io.IOException
java.io.IOException
closeAll
public static void closeAll()
throws java.io.IOException
java.io.IOException
openMethod
public de.fub.bytecode.generic.MethodGen openMethod(MethodID method)
saveMethod
public void saveMethod(MethodID method)
methodCount
public int methodCount()
saveMethods
public void saveMethods()
methods
public java.util.Iterator methods()
main
public static void main(java.lang.String[] args)
throws java.io.IOException
java.io.IOException