public class DebugString extends Object implements DebugBuilder
| Constructor and Description |
|---|
DebugString() |
| Modifier and Type | Method and Description |
|---|---|
void |
append(int number,
int width)
Append the specified number within a space (number of spaces) specified
by the width.
|
void |
append(Object object)
Append the specified object by calling it
toString() method. |
void |
append(Object object,
int width)
Append the specified object by calling its
toString()
method, placing it within specified space. |
void |
appendAsHexln(String label,
long value)
Append the specified number, displayed in hexadecimal notation, with the
specified label, then start a new line.
|
void |
appendException(Throwable e)
Append the message and trace of the specified exception.
|
void |
appendln()
Start a new line.
|
void |
appendln(String text)
Append the specified text, then start a new line.
|
void |
appendln(String label,
boolean value)
Append the specified value, displayed as true or false, with the
specified label, then start a new line.
|
void |
appendln(String label,
double value)
Append the specified number with the specified label, then start a new
line.
|
void |
appendln(String label,
long value)
Append the specified number, displayed in hexadecimal notation, with the
specified label, then start a new line.
|
void |
appendln(String label,
Object object)
Append the specified object with the specified label, then start a new
line.
|
void |
appendln(String label,
Object[] object)
Append the elements of the specified array with the specified label.
|
void |
appendPreformatted(String text)
Append the specified text without any formatting.
|
void |
appendPreformatted(String label,
String text)
Append the specified preformatted text with the specified label, then
start a new line.
|
void |
appendTitle(String title)
Append the specified title, then start a new line.
|
void |
blankLine()
Append a blank line only if there are existing lines and the previous
line is not blank.
|
void |
close() |
void |
concat(DebugBuilder debug)
Concatenate the contents of the specified debug builder to the current
builder.
|
void |
endSection() |
void |
indent()
Increase indent used when appending.
|
void |
startSection(String title) |
String |
toString()
Return the
String representation of this debug string. |
void |
unindent()
Decrease indent used when appending.
|
public DebugString()
public void concat(DebugBuilder debug)
DebugBuilderconcat in interface DebugBuilderpublic void append(int number, int width)
append in interface DebugBuilderpublic void append(Object object)
toString() method.append in interface DebugBuilderpublic void append(Object object, int width)
toString()
method, placing it within specified space.append in interface DebugBuilderpublic void appendAsHexln(String label, long value)
appendAsHexln in interface DebugBuilderpublic void appendException(Throwable e)
appendException in interface DebugBuilderpublic void appendln()
appendln in interface DebugBuilderblankLine()public void appendPreformatted(String text)
DebugBuilderappendPreformatted in interface DebugBuilderpublic void appendln(String text)
appendln in interface DebugBuilderpublic void appendln(String label, boolean value)
appendln in interface DebugBuilderpublic void appendln(String label, double value)
appendln in interface DebugBuilderpublic void appendln(String label, long value)
appendln in interface DebugBuilderpublic void appendPreformatted(String label, String text)
DebugBuilderappendPreformatted in interface DebugBuilderpublic void appendln(String label, Object object)
appendln in interface DebugBuilderpublic void appendln(String label, Object[] object)
appendln in interface DebugBuilderpublic void appendTitle(String title)
appendTitle in interface DebugBuilderpublic void startSection(String title)
startSection in interface DebugBuilderpublic void endSection()
endSection in interface DebugBuilderpublic void blankLine()
blankLine in interface DebugBuilderpublic void indent()
indent in interface DebugBuilderpublic void unindent()
unindent in interface DebugBuilderpublic void close()
close in interface DebugBuilderCopyright © 2010–2014 The Apache Software Foundation. All rights reserved.