Methods Summary |
---|
void | add(java.lang.reflect.Type elem)
if (elem == null) {
throw new RuntimeException("Adding null type is not allowed!");
}
list.add(elem);
|
public java.lang.reflect.Type[] | getResolvedTypes()
if (resolvedTypes == null) {
resolvedTypes = new Type[list.size()];
int i = 0;
for (Type t : list) {
try {
resolvedTypes[i] = ((ImplForType)t).getResolvedType();
} catch (ClassCastException e) {
resolvedTypes[i] = t;
}
i++;
}
list = null;
}
return resolvedTypes;
|
int | length()
return list.size();
|
public java.lang.String | toString()
StringBuilder sb = new StringBuilder();
int i = 0;
for (Type t : list) {
if (i != 0) { sb.append(", "); }
sb.append(t.toString());
}
return sb.toString();
|