X-Git-Url: http://git.megacz.com/?p=org.ibex.classgen.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fclassgen%2FType.java;h=29301d38b5dddea89e09e6927b8b3279e555c3a1;hp=01276db32a83df0df39cae021b31a648b3db1beb;hb=57f8032e5579f575ef526b02957fc937f6efbb62;hpb=50a344886756b00af0e30d548a7a86822ef7e962 diff --git a/src/org/ibex/classgen/Type.java b/src/org/ibex/classgen/Type.java index 01276db..29301d3 100644 --- a/src/org/ibex/classgen/Type.java +++ b/src/org/ibex/classgen/Type.java @@ -95,10 +95,12 @@ public class Type { } public static class Array extends Object { - protected Array(Type t, int dim) { super(arrayify(t, dim)); } + protected Array(Type t, int dim) { super(_initHelper(t, dim)); } public Type.Array asArray() { return this; } public boolean isArray() { return true; } - private static String arrayify(Type t, int dim) { + String internalForm() { throw new Error("Type.Array does not have an internalForm()"); } + String[] components() { throw new Error("Type.Array does not have components()"); } + private static String _initHelper(Type t, int dim) { StringBuffer sb = new StringBuffer(t.descriptor.length() + dim); for(int i=0;i