stubs for functions which should not be invoked on Type.Array
authoradam <adam@megacz.com>
Fri, 3 Jun 2005 00:56:07 +0000 (00:56 +0000)
committeradam <adam@megacz.com>
Fri, 3 Jun 2005 00:56:07 +0000 (00:56 +0000)
darcs-hash:20050603005607-5007d-e7fd022de2ffec6c61060bf70798decd8cb8581c.gz

src/org/ibex/classgen/Type.java

index 29d946a..29301d3 100644 (file)
@@ -98,6 +98,8 @@ public class Type {
         protected Array(Type t, int dim) {  super(_initHelper(t, dim)); }
         public Type.Array asArray() { return this; }
         public boolean isArray() { return true; }
         protected Array(Type t, int dim) {  super(_initHelper(t, dim)); }
         public Type.Array asArray() { return this; }
         public boolean isArray() { return true; }
+        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<dim;i++) sb.append("[");
         private static String _initHelper(Type t, int dim) {
             StringBuffer sb = new StringBuffer(t.descriptor.length() + dim);
             for(int i=0;i<dim;i++) sb.append("[");