Methods Summary |
---|
public void | close()
writer.close();
|
public int | getJavaLine()
return javaLine;
|
public void | popIndent()
virtual_indent -= TAB_WIDTH;
if (virtual_indent >= 0 && virtual_indent <= SPACES.length())
indent = virtual_indent;
|
public void | print(char c)Prints the given char.
Use println() to print a '\n'.
writer.print(c);
|
public void | print(int i)Prints the given int.
writer.print(i);
|
public void | print(java.lang.String s)Prints the given string.
The string must not contain any '\n', otherwise the line count will be
off.
writer.print(s);
|
public void | printComment(Mark start, Mark stop, char[] chars)Print a standard comment for echo outputed chunk.
if (start != null && stop != null) {
println("// from="+start);
println("// to="+stop);
}
if (chars != null)
for(int i = 0; i < chars.length;) {
printin();
print("// ");
while (chars[i] != '\n" && i < chars.length)
writer.print(chars[i++]);
}
|
public void | printMultiLn(java.lang.String s)Prints the given string.
If the string spans multiple lines, the line count will be adjusted
accordingly.
int index = 0;
// look for hidden newlines inside strings
while ((index=s.indexOf('\n",index)) > -1 ) {
javaLine++;
index++;
}
writer.print(s);
|
public void | printil(java.lang.String s)Prints the current indention, and then the string, and a '\n'.
javaLine++;
writer.print(SPACES.substring(0, indent));
writer.println(s);
|
public void | printin(java.lang.String s)Prints the current indention, followed by the given string
writer.print(SPACES.substring(0, indent));
writer.print(s);
|
public void | printin()Prints the current indention
writer.print(SPACES.substring(0, indent));
|
public void | println(java.lang.String s)Prints the given string followed by '\n'
javaLine++;
writer.println(s);
|
public void | println()Prints a '\n'
javaLine++;
writer.println("");
|
public void | pushIndent()
virtual_indent += TAB_WIDTH;
if (virtual_indent >= 0 && virtual_indent <= SPACES.length())
indent = virtual_indent;
|