aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/convert/Transformer.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/javassist/convert/Transformer.java')
-rw-r--r--src/main/javassist/convert/Transformer.java13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/main/javassist/convert/Transformer.java b/src/main/javassist/convert/Transformer.java
index d4ea0ecf..1095cf5b 100644
--- a/src/main/javassist/convert/Transformer.java
+++ b/src/main/javassist/convert/Transformer.java
@@ -15,9 +15,14 @@
package javassist.convert;
-import javassist.bytecode.*;
-import javassist.CtClass;
import javassist.CannotCompileException;
+import javassist.CtClass;
+import javassist.bytecode.BadBytecode;
+import javassist.bytecode.CodeAttribute;
+import javassist.bytecode.CodeIterator;
+import javassist.bytecode.ConstPool;
+import javassist.bytecode.MethodInfo;
+import javassist.bytecode.Opcode;
/**
* Transformer and its subclasses are used for executing
@@ -35,6 +40,10 @@ public abstract class Transformer implements Opcode {
public Transformer getNext() { return next; }
public void initialize(ConstPool cp, CodeAttribute attr) {}
+
+ public void initialize(ConstPool cp, CtClass clazz, MethodInfo minfo) throws CannotCompileException {
+ initialize(cp, minfo.getCodeAttribute());
+ }
public void clean() {}