/* */ package net.sf.cglib.transform;
/* */
/* */ import net.sf.cglib.asm.Attribute;
/* */ import net.sf.cglib.asm.ClassVisitor;
/* */ import net.sf.cglib.asm.CodeVisitor;
/* */
/* */ public class ClassTransformerChain extends AbstractClassTransformer
/* */ {
/* */ private ClassTransformer[] chain;
/* */
/* */ public ClassTransformerChain(ClassTransformer[] chain)
/* */ {
/* 24 */ this.chain = ((ClassTransformer[])chain.clone());
/* */ }
/* */
/* */ public void setTarget(ClassVisitor v) {
/* 28 */ super.setTarget(this.chain[0]);
/* 29 */ ClassVisitor next = v;
/* 30 */ for (int i = this.chain.length - 1; i >= 0; i--) {
/* 31 */ this.chain[i].setTarget(next);
/* 32 */ next = this.chain[i];
/* */ }
/* */ }
/* */
/* */ public CodeVisitor visitMethod(int access, String name, String desc, String[] exceptions, Attribute attrs)
/* */ {
/* 41 */ return this.cv.visitMethod(access, name, desc, exceptions, attrs);
/* */ }
/* */
/* */ public String toString() {
/* 45 */ StringBuffer sb = new StringBuffer();
/* 46 */ sb.append("ClassTransformerChain{");
/* 47 */ for (int i = 0; i < this.chain.length; i++) {
/* 48 */ if (i > 0) {
/* 49 */ sb.append(", ");
/* */ }
/* 51 */ sb.append(this.chain[i].toString());
/* */ }
/* 53 */ sb.append("}");
/* 54 */ return sb.toString();
/* */ }
/* */ }
/* Location: /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/thirdparty-all.jar
* Qualified Name: net.sf.cglib.transform.ClassTransformerChain
* JD-Core Version: 0.6.0
*/