jasco.runtime.transform
Class JAsCoClassTransformer

java.lang.Object
  extended by jasco.runtime.transform.JAsCoClassTransformer

public class JAsCoClassTransformer
extends java.lang.Object


Constructor Summary
JAsCoClassTransformer(javassist.CtClass clz)
           
 
Method Summary
protected  java.util.Vector debug()
           
protected  void debug(java.util.Vector debugTEST)
           
protected  void debug(java.util.Vector v1, java.util.Vector v2)
           
 java.util.Vector getAdaptedMethods()
           
 byte[] getResultingByteCode()
           
 byte[] insertTrapsAtRuntime(java.util.Vector excludedmethods, java.util.Set matchingmethods, java.lang.ClassLoader loader)
          when loader is null, static init is generated that inits all jasco methods directly, otherwise the loader is used
 boolean preTransform()
           
 byte[] removeTrapsAtRuntimeByConcreteMethods(java.util.Vector themethods)
           
 byte[] removeTrapsAtRuntimeByName(java.util.Vector themethods)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAsCoClassTransformer

public JAsCoClassTransformer(javassist.CtClass clz)
Method Detail

preTransform

public boolean preTransform()
                     throws java.lang.Exception
Throws:
java.lang.Exception

insertTrapsAtRuntime

public byte[] insertTrapsAtRuntime(java.util.Vector excludedmethods,
                                   java.util.Set matchingmethods,
                                   java.lang.ClassLoader loader)
                            throws java.lang.Exception
when loader is null, static init is generated that inits all jasco methods directly, otherwise the loader is used

Parameters:
excludedmethods -
loader -
Returns:
Throws:
java.lang.Exception

debug

protected void debug(java.util.Vector debugTEST)

debug

protected java.util.Vector debug()

debug

protected void debug(java.util.Vector v1,
                     java.util.Vector v2)

getResultingByteCode

public byte[] getResultingByteCode()
                            throws java.lang.Exception
Throws:
java.lang.Exception

getAdaptedMethods

public java.util.Vector getAdaptedMethods()

removeTrapsAtRuntimeByName

public byte[] removeTrapsAtRuntimeByName(java.util.Vector themethods)
                                  throws java.lang.Exception
Throws:
java.lang.Exception

removeTrapsAtRuntimeByConcreteMethods

public byte[] removeTrapsAtRuntimeByConcreteMethods(java.util.Vector themethods)
                                             throws java.lang.Exception
Throws:
java.lang.Exception