projects
/
org.ibex.classgen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
1416902
)
stubs for functions which should not be invoked on Type.Array
author
adam
<adam@megacz.com>
Fri, 3 Jun 2005 00:56:07 +0000
(
00:56
+0000)
committer
adam
<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
patch
|
blob
|
history
diff --git
a/src/org/ibex/classgen/Type.java
b/src/org/ibex/classgen/Type.java
index
29d946a
..
29301d3
100644
(file)
--- a/
src/org/ibex/classgen/Type.java
+++ b/
src/org/ibex/classgen/Type.java
@@
-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("[");