1 2 package org.quilt.reg; 3 4 import org.quilt.cl.*; 5 6 13 public abstract class QuiltRegistry extends Registry { 14 15 16 protected ClassXformer cxf[]; 17 18 19 protected MethodXformer mxf[]; 20 21 22 protected GraphXformer gxf[]; 23 24 25 protected QuiltClassLoader qcl_; 26 27 public QuiltRegistry ( QuiltClassLoader qcl ) { 28 super(); 29 if (qcl == null) { 30 throw new IllegalArgumentException ("null QuiltClassLoader"); 31 } 32 qcl_ = qcl; 33 } 34 35 40 public final void setTransformers () { 41 if (cxf != null) { 42 for (int i = 0; i < cxf.length; i++) { 43 qcl_.addClassXformer(cxf[i]); 44 } 45 } 46 if (mxf != null) { 47 for (int i = 0; i < mxf.length; i++) { 48 qcl_.addMethodXformer(mxf[i]); 49 } 50 } 51 if (gxf != null) { 52 for (int i = 0; i < gxf.length; i++) { 53 qcl_.addGraphXformer(gxf[i]); 54 } 55 } 56 } 57 58 abstract public void reset(); 59 60 61 abstract public String getReport (); 62 63 } 64 | Popular Tags |