open/closeBraceNoSpace (for ConstantArrayOperator)

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@690 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 8a6f9a9b91
commit 3d4ba9ccf1
  1. 27
      jode/jode/decompiler/TabbedPrintWriter.java

@ -140,6 +140,23 @@ public class TabbedPrintWriter {
} }
} }
/**
* Print a opening brace with the current indentation style.
* Called at the end of the line of the instance that opens the
* brace. It doesn't do a tab stop after opening the brace.
*/
public void openBraceNoSpace() {
if ((Decompiler.outputStyle & Decompiler.BRACE_AT_EOL) != 0)
println("{");
else {
if (!atbol)
println();
if (currentIndent > 0)
tab();
println("{");
}
}
public void closeBraceContinue() { public void closeBraceContinue() {
if ((Decompiler.outputStyle & Decompiler.BRACE_AT_EOL) != 0) if ((Decompiler.outputStyle & Decompiler.BRACE_AT_EOL) != 0)
print("} "); print("} ");
@ -150,6 +167,16 @@ public class TabbedPrintWriter {
} }
} }
public void closeBraceNoSpace() {
if ((Decompiler.outputStyle & Decompiler.BRACE_AT_EOL) != 0)
print("}");
else {
println("}");
if (currentIndent > 0)
untab();
}
}
public void closeBrace() { public void closeBrace() {
if ((Decompiler.outputStyle & Decompiler.BRACE_AT_EOL) != 0) if ((Decompiler.outputStyle & Decompiler.BRACE_AT_EOL) != 0)
println("}"); println("}");

Loading…
Cancel
Save