SandMark version 2.0


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.


Nested Class Summary
(package private)  class EditedClass.AllMethods
           
 
Field Summary
(package private)  ClassFileCollection cfc
           
 de.fub.bytecode.generic.ClassGen cg
           
(package private) static java.util.Hashtable classCache
           
 java.lang.String className
           
 de.fub.bytecode.generic.ConstantPoolGen cp
           
(package private)  java.util.Hashtable methodCache
           
(package private)  java.util.Hashtable methodsCache
           
 
Constructor Summary
EditedClass(ClassFileCollection cfc, java.lang.String className)
           
 
Method Summary
 void close()
           
 void close(boolean changed)
           
static void closeAll()
           
static void closeAll(boolean changed)
           
static void main(java.lang.String[] args)
           
 int methodCount()
           
 java.util.Iterator methods()
           
static EditedClass open(ClassFileCollection cfc, java.lang.String className)
           
 de.fub.bytecode.generic.MethodGen openMethod(MethodID method)
           
 void saveMethod(MethodID method)
           
 void saveMethods()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

EditedClass

public EditedClass(ClassFileCollection cfc,
                   java.lang.String className)
            throws java.io.IOException
Method Detail

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

SandMark version 2.0

Mon Jun 17 12:30:47 MST 2002