1 15 16 package javassist.convert; 17 18 import javassist.bytecode.*; 19 import javassist.CtClass; 20 import javassist.CannotCompileException; 21 22 28 public abstract class Transformer implements Opcode { 29 private Transformer next; 30 31 public Transformer(Transformer t) { 32 next = t; 33 } 34 35 public Transformer getNext() { return next; } 36 37 public void initialize(ConstPool cp, CodeAttribute attr) {} 38 39 public void clean() {} 40 41 public abstract int transform(CtClass clazz, int pos, CodeIterator it, 42 ConstPool cp) throws CannotCompileException, BadBytecode; 43 44 public int extraLocals() { return 0; } 45 } 46 | Popular Tags |