X-Git-Url: http://git.megacz.com/?p=org.ibex.classgen.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fclassgen%2FClassGen.java;h=99436e24e5b949998f559008e6c09b028fad1967;hp=1300c3a309c80c582a5f65362bc4d757470f1acc;hb=50a344886756b00af0e30d548a7a86822ef7e962;hpb=2b7157f2b687f5500bf45ab2c9175ef1b33ccc48 diff --git a/src/org/ibex/classgen/ClassGen.java b/src/org/ibex/classgen/ClassGen.java index 1300c3a..99436e2 100644 --- a/src/org/ibex/classgen/ClassGen.java +++ b/src/org/ibex/classgen/ClassGen.java @@ -17,14 +17,14 @@ public class ClassGen implements CGConst { final CPGen cp; private final AttrGen attributes; - /** @see #ClassGen(Type.Object,Type.Object,int) */ + /** @see #ClassGen(Type.Object, Type.Object, int) */ public ClassGen(String name, String superName, int flags) { this(Type.fromDescriptor(name).asObject(), Type.fromDescriptor(superName).asObject(), flags); } - /** @see #ClassGen(Type.Object,Type.Object,int,Type.Object[]) */ - public ClassGen(Type.Object thisType,Type.Object superType, int flags) { - this(thisType,superType,flags,null); + /** @see #ClassGen(Type.Object, Type.Object, int, Type.Object[]) */ + public ClassGen(Type.Object thisType, Type.Object superType, int flags) { + this(thisType, superType, flags, null); } /** Creates a new ClassGen object @@ -32,7 +32,7 @@ public class ClassGen implements CGConst { @param superType The superclass of the generated class (commonly Type.OBJECT) @param flags The access flags for this class (ACC_PUBLIC, ACC_FINAL, ACC_SUPER, ACC_INTERFACE, and ACC_ABSTRACT) */ - public ClassGen(Type.Object thisType,Type.Object superType, int flags, Type.Object[] interfaces) { + public ClassGen(Type.Object thisType, Type.Object superType, int flags, Type.Object[] interfaces) { if((flags & ~(ACC_PUBLIC|ACC_FINAL|ACC_SUPER|ACC_INTERFACE|ACC_ABSTRACT)) != 0) throw new IllegalArgumentException("invalid flags"); this.thisType = thisType; @@ -56,7 +56,7 @@ public class ClassGen implements CGConst { @see CGConst */ public final MethodGen addMethod(String name, Type ret, Type[] args, int flags) { - MethodGen mg = new MethodGen(this,name,ret,args,flags); + MethodGen mg = new MethodGen(this, name, ret, args, flags); methods.addElement(mg); return mg; } @@ -72,7 +72,7 @@ public class ClassGen implements CGConst { @see CGConst */ public final FieldGen addField(String name, Type type, int flags) { - FieldGen fg = new FieldGen(this,name,type,flags); + FieldGen fg = new FieldGen(this, name, type, flags); fields.addElement(fg); return fg; } @@ -96,10 +96,10 @@ public class ClassGen implements CGConst { String[] a = thisType.components(); int i; for(i=0;i