2829303132333435363738
"int size = size();", "if (a.length < size)", " a = new " + elemType.standalone + "[size];", "if (size == 0) {", " if (a.length > 0)", " a[0] = " + elemType.formatValue("0") + ";", " return a;", "}", "int resultIndex = 0;" ); }
45464748495051525354
@Override public void end() { PrimitiveType elemType = (PrimitiveType) cxt.viewOption(); gen.lines( "if (a.length > resultIndex)", " a[resultIndex] = " + elemType.formatValue("0") + ";" ); gen.ret("a"); } }