|
|
@ -97,9 +97,12 @@ public class ConstantArrayOperator extends NoArgOperator { |
|
|
|
public void dumpExpression(TabbedPrintWriter writer, |
|
|
|
public void dumpExpression(TabbedPrintWriter writer, |
|
|
|
Expression[] operands) |
|
|
|
Expression[] operands) |
|
|
|
throws java.io.IOException { |
|
|
|
throws java.io.IOException { |
|
|
|
|
|
|
|
if (!isInitializer) { |
|
|
|
writer.print("new "); |
|
|
|
writer.print("new "); |
|
|
|
writer.printType(type); |
|
|
|
writer.printType(type); |
|
|
|
writer.println(" {"); |
|
|
|
writer.print(" "); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
writer.println("{"); |
|
|
|
writer.tab(); |
|
|
|
writer.tab(); |
|
|
|
for (int i=0; i< values.length; i++) { |
|
|
|
for (int i=0; i< values.length; i++) { |
|
|
|
if (i>0) { |
|
|
|
if (i>0) { |
|
|
@ -108,7 +111,10 @@ public class ConstantArrayOperator extends NoArgOperator { |
|
|
|
else |
|
|
|
else |
|
|
|
writer.print(", "); |
|
|
|
writer.print(", "); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (values[i] != null) |
|
|
|
values[i].dumpExpression(writer, 0); |
|
|
|
values[i].dumpExpression(writer, 0); |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
empty.dumpExpression(writer, 0); |
|
|
|
} |
|
|
|
} |
|
|
|
writer.println(); |
|
|
|
writer.println(); |
|
|
|
writer.untab(); |
|
|
|
writer.untab(); |
|
|
|