public final class CodingStyleTextBuilder
extends java.lang.Object
The text is created by passing a StringBuilder to the various methods. The methods will add the specified new text and any whitespace or other characters dictated by the style options.
Note: This is a work is progress and not all style options are accounted for. Additional option support can be added on a need by need basis.
| Constructor and Description | 
|---|
CodingStyleTextBuilder()
Create a text builder using the default style options. 
 | 
CodingStyleTextBuilder(CodingStyleOptions options)
Create a text builder using the given options. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
add(java.lang.String text)
Append arbitrary text. 
 | 
void | 
addAssignment()
Simply append an equals sign 
 | 
void | 
addCast(java.lang.String typeName)
Add a cast of the given typeName 
 | 
void | 
addMethodArgumentList(java.util.List<java.lang.String> argumentNames)
Append an argument list (including parentheses) contining the comma separated names. 
 | 
void | 
addOperator(java.lang.String operator)
Append arbitrary operator to the text. 
 | 
void | 
addTerminator()
Simply append a semi colon. 
 | 
java.lang.String | 
toString()  | 
public CodingStyleTextBuilder()
public CodingStyleTextBuilder(CodingStyleOptions options)
options - public java.lang.String toString()
toString in class java.lang.Objectpublic void add(java.lang.String text)
text - public void addTerminator()
public void addAssignment()
public void addCast(java.lang.String typeName)
typeName - the name of the casting type.public void addMethodArgumentList(java.util.List<java.lang.String> argumentNames)
argumentNames - public void addOperator(java.lang.String operator)
operator -