public final void print(Consumer paramConsumer) { if ((paramConsumer instanceof OutPort)) { print((OutPort) paramConsumer); return; } if ((paramConsumer instanceof PrintWriter)) { paramConsumer = new OutPort((PrintWriter) paramConsumer); print(paramConsumer); paramConsumer.close(); return; } CharArrayOutPort localCharArrayOutPort = new CharArrayOutPort(); print(localCharArrayOutPort); localCharArrayOutPort.close(); localCharArrayOutPort.writeTo(paramConsumer); }
public void print(OutPort outport) { outport.startLogicalBlock("(Exit", false, ")"); outport.writeSpaceFill(); if (block == null || block.label == null) { outport.print("<unknown>"); } else { outport.print(block.label.getName()); } if (result != null) { outport.writeSpaceLinear(); result.print(outport); } outport.endLogicalBlock(")"); }
public void print(OutPort out) { out.startLogicalBlock("(Apply", ")", 2); if (isTailCall()) out.print(" [tailcall]"); if (type != null && type != Type.pointer_type) { out.print(" => "); out.print(type); } out.writeSpaceFill(); printLineColumn(out); func.print(out); for (int i = 0; i < args.length; ++i) { out.writeSpaceLinear(); args[i].print(out); } out.endLogicalBlock(")"); }