public final class BodyBuilder extends Object
Constructor and Description |
---|
BodyBuilder()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
BodyBuilder |
add(String format,
Object... args)
Deprecated.
Adds text to the current line, without ending the line.
|
BodyBuilder |
addln(String format,
Object... args)
Deprecated.
Adds text to the current line and ends the line.
|
BodyBuilder |
begin()
Deprecated.
Begins a new block.
|
BodyBuilder |
clear()
Deprecated.
Clears the builder, returning it to its initial, empty state.
|
BodyBuilder |
end()
Deprecated.
Ends the current block.
|
String |
toString()
Deprecated.
Returns the current contents of the buffer.
|
public BodyBuilder()
public BodyBuilder clear()
public BodyBuilder add(String format, Object... args)
format
- string format, as per Formatter
args
- arguments referenced by format specifierspublic BodyBuilder addln(String format, Object... args)
format
- string format, as per Formatter
args
- arguments referenced by format specifierspublic BodyBuilder begin()
public BodyBuilder end()
public String toString()
ClassFab.addConstructor(Class[], Class[], String)
or
ClassFab.addMethod(int, MethodSignature, String)
.
A BodyBuilder can be used again after invoking toString(), typically by invoking clear()
.Copyright © 2003-2012 The Apache Software Foundation.