|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hivemind.service.BodyBuilder
public class BodyBuilder
Utility class for assembling the body used with Javassist as a method or catch block.
Constructor Summary | |
---|---|
BodyBuilder()
|
Method Summary | |
---|---|
void |
add(java.lang.String text)
Adds text to the current line, without terminating the line. |
void |
add(java.lang.String pattern,
java.lang.Object arg0)
Convience for add(String, Object[]) |
void |
add(java.lang.String pattern,
java.lang.Object[] arguments)
Adds text to the current line, without terminating the line. |
void |
add(java.lang.String pattern,
java.lang.Object arg0,
java.lang.Object arg1)
Convience for add(String, Object[]) |
void |
add(java.lang.String pattern,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2)
Convience for add(String, Object[]) |
void |
addln(java.lang.String text)
Adds the text to the current line, and terminates the line. |
void |
addln(java.lang.String pattern,
java.lang.Object arg0)
Convience for addln(String, Object[]) |
void |
addln(java.lang.String pattern,
java.lang.Object[] arguments)
Adds text to the current line then terminates the line. |
void |
addln(java.lang.String pattern,
java.lang.Object arg0,
java.lang.Object arg1)
Convience for addln(String, Object[]) . |
void |
addln(java.lang.String pattern,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2)
Convience for addln(String, Object[]) . |
void |
addQuoted(java.lang.String text)
Adds the text to the current line, surrounded by double quotes. |
void |
begin()
Begins a new block. |
void |
clear()
Clears the builder, returning it to its initial, empty state. |
void |
end()
Ends the current block. |
java.lang.String |
toString()
Returns the current contents of the buffer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BodyBuilder()
Method Detail |
---|
public void clear()
public void add(java.lang.String text)
public void add(java.lang.String pattern, java.lang.Object[] arguments)
pattern
- a string pattern, used with
MessageFormat.format(java.lang.String, java.lang.Object[])
arguments
- arguments used witht the format stringpublic void add(java.lang.String pattern, java.lang.Object arg0)
add(String, Object[])
public void add(java.lang.String pattern, java.lang.Object arg0, java.lang.Object arg1)
add(String, Object[])
public void add(java.lang.String pattern, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2)
add(String, Object[])
public void addln(java.lang.String pattern, java.lang.Object[] arguments)
pattern
- a string pattern, used with
MessageFormat.format(java.lang.String, java.lang.Object[])
arguments
- arguments used witht the format stringpublic void addln(java.lang.String pattern, java.lang.Object arg0)
addln(String, Object[])
public void addln(java.lang.String pattern, java.lang.Object arg0, java.lang.Object arg1)
addln(String, Object[])
.
public void addln(java.lang.String pattern, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2)
addln(String, Object[])
.
public void addQuoted(java.lang.String text)
public void addln(java.lang.String text)
public void begin()
public void end()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |