projects
/
org.ibex.classgen.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
stubs for functions which should not be invoked on Type.Array
[org.ibex.classgen.git]
/
src
/
org
/
ibex
/
classgen
/
Type.java
diff --git
a/src/org/ibex/classgen/Type.java
b/src/org/ibex/classgen/Type.java
index
01276db
..
29301d3
100644
(file)
--- 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 {
}
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; }
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<dim;i++) sb.append("[");
sb.append(t.descriptor);
StringBuffer sb = new StringBuffer(t.descriptor.length() + dim);
for(int i=0;i<dim;i++) sb.append("[");
sb.append(t.descriptor);