jasco.runtime.transform
Class JAsCoClassTransformer
java.lang.Object
jasco.runtime.transform.JAsCoClassTransformer
public class JAsCoClassTransformer
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JAsCoClassTransformer
public JAsCoClassTransformer(javassist.CtClass clz)
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