The args from invocation responses will be unwrapped for us automatically.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4570 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2007-02-12 21:50:24 +00:00
parent 69ea4f349f
commit 54d23f0247
@@ -219,21 +219,17 @@ public class GenUtil
public static String unboxASArgument (Class<?> clazz, String name)
{
if (clazz == Boolean.TYPE) {
return "(" + name + " as langBoolean).value";
} else if (clazz == Byte.TYPE) {
return "(" + name + " as Byte).value";
} else if (clazz == Character.TYPE) {
return "(" + name + " as Character).value";
} else if (clazz == Short.TYPE) {
return "(" + name + " as Short).value";
} else if (clazz == Integer.TYPE) {
return "(" + name + " as Integer).value";
return "(" + name + " as Boolean)";
} else if (clazz == Byte.TYPE ||
clazz == Character.TYPE ||
clazz == Short.TYPE ||
clazz == Integer.TYPE) {
return "(" + name + " as int)";
} else if (clazz == Long.TYPE) {
return "(" + name + " as Long)";
} else if (clazz == Float.TYPE) {
return "(" + name + " as Float).value";
} else if (clazz == Double.TYPE) {
return "(" + name + " as Double).value";
} else if (clazz == Float.TYPE ||
clazz == Double.TYPE) {
return "(" + name + " as Number)";
} else {
return "(" + name + " as " + simpleASName(clazz) + ")";
}