package polyglot.ext.jl.ast; import polyglot.ast.*; import polyglot.util.*; import polyglot.types.*; import polyglot.visit.*; import java.util.*; /** * A <code>Block</code> represents a Java block statement -- an immutable * sequence of statements. */ public class Block_c extends AbstractBlock_c implements Block { public Block_c(Position pos, List statements) { super(pos, statements); } /** Write the block to an output file. */ public void prettyPrint(CodeWriter w, PrettyPrinter tr) { w.write("{"); w.allowBreak(4," "); super.prettyPrint(w, tr); w.allowBreak(0, " "); w.write("}"); } }