public class StringDescription extends BaseDescription
Description
that is stored as a string.Description.NullDescription
NONE
Constructor and Description |
---|
StringDescription() |
StringDescription(java.lang.Appendable out) |
Modifier and Type | Method and Description |
---|---|
protected void |
append(char c)
Append the char c to the description.
|
protected void |
append(java.lang.String str)
Append the String str to the description.
|
static java.lang.String |
asString(SelfDescribing selfDescribing)
Alias for
toString(SelfDescribing) . |
java.lang.String |
toString()
Returns the description as a string.
|
static java.lang.String |
toString(SelfDescribing selfDescribing)
Return the description of a
SelfDescribing object as a String. |
appendDescriptionOf, appendList, appendText, appendValue, appendValueList, appendValueList
public StringDescription()
public StringDescription(java.lang.Appendable out)
public static java.lang.String toString(SelfDescribing selfDescribing)
SelfDescribing
object as a String.selfDescribing
- The object to be described.public static java.lang.String asString(SelfDescribing selfDescribing)
toString(SelfDescribing)
.protected void append(java.lang.String str)
BaseDescription
BaseDescription.append(char)
.
Override in subclasses to provide an efficient implementation.append
in class BaseDescription
protected void append(char c)
BaseDescription
append
in class BaseDescription
public java.lang.String toString()
toString
in class java.lang.Object