X-Git-Url: http://git.megacz.com/?p=org.ibex.classgen.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fclassgen%2FType.java;h=5eba76d09adecdfed6181719f5f9d4864a3fbd3d;hp=95d939458ea6671c90501e96f4a1ba770d9b3e79;hb=131193c8a763d354ae9a8818ffc8059d0e5dfcaf;hpb=80f8c407ea8a178bdef7dd351d2ece8719d85147 diff --git a/src/org/ibex/classgen/Type.java b/src/org/ibex/classgen/Type.java index 95d9394..5eba76d 100644 --- a/src/org/ibex/classgen/Type.java +++ b/src/org/ibex/classgen/Type.java @@ -44,6 +44,7 @@ public class Type { public boolean equals(java.lang.Object o) { return this==o; } public Type.Array makeArray() { return (Type.Array)instance("["+descriptor); } + public Type.Array makeArray(int i) { return i==0 ? this : makeArray().makeArray(i-1); } public Type.Ref asRef() { throw new RuntimeException("attempted to use "+this+" as a Type.Ref, which it is not"); } public Type.Class asClass() { throw new RuntimeException("attempted to use "+this+" as a Type.Class, which it is not"); }