Method Summary |
|
public void | add(String pattern, Object argument) Adds statement generated by replacing parameters of given pattern with given argument to
this JSourceCode. |
public void | add(String pattern, Object argument1, Object argument2) Adds statement generated by replacing parameters of given pattern with given arguments to
this JSourceCode. |
public void | add(String pattern, Object[] arguments) Adds statements generated by replacing parameters of given pattern with given arguments to
this JSourceCode. |
public void | add(String statement) Adds the given statement to this JSourceCode. |
public void | addIndented(String statement) Adds the given statement to this JSourceCode. |
public void | append(String segment) Appends the given String to the last line in this JSourceCode. |
public void | clear() Clears all the code statements from this JSourceCode. |
public void | copyInto(JSourceCode jsc) Copies the contents of this JSourceCode into the given JSourceCode. |
public void | indent() Increases the current indent level by 1. |
public boolean | isEmpty() Returns true if this JSourceCode is empty (ie. |
public void | print(JSourceWriter jsw) Prints this JSourceCode to the given JSourceWriter. |
public int | size() Returns the number of source code lines (aka JCodeStatements) set so far. |
public String | toString() |
public void | unindent() Decreases the indent level by 1. |