From: adam Date: Fri, 3 Jun 2005 06:03:59 +0000 (+0000) Subject: removed ClassFile.sourceFile; use attributes.get() instead X-Git-Url: http://git.megacz.com/?p=org.ibex.classgen.git;a=commitdiff_plain;h=ca1b3654e5d2e7bf09933b565fb118571ca61258 removed ClassFile.sourceFile; use attributes.get() instead darcs-hash:20050603060359-5007d-970d3717d07bcee02b294a3962fcc375dc238c34.gz --- diff --git a/src/org/ibex/classgen/ClassFile.java b/src/org/ibex/classgen/ClassFile.java index 29b8d7f..788c0cb 100644 --- a/src/org/ibex/classgen/ClassFile.java +++ b/src/org/ibex/classgen/ClassFile.java @@ -12,7 +12,6 @@ public class ClassFile implements CGConst { private short major; final int flags; - private String sourceFile; private final Vector fields = new Vector(); private final Vector methods = new Vector(); @@ -46,6 +45,7 @@ public class ClassFile implements CGConst { for(int i=0; iname of class c with the type t */ public final Type type; private Field(String name, Type t) { super(name); this.type = t; } public String getDescriptor() { return name; } @@ -134,12 +140,4 @@ public class Type { } } - - public static class Array extends Type.Ref { - protected Array(Type t) { super("[" + t.getDescriptor(), t.toString() + "[]"); } - public Type.Array asArray() { return this; } - public boolean isArray() { return true; } - public int dimension() { return getDescriptor().lastIndexOf('['); } - } - }