public class LiteralText extends BaseText
Text.Serializer
StringVisitable.StyledVisitor<T>, StringVisitable.Visitor<T>
Modifier and Type | Field and Description |
---|---|
static Text |
EMPTY |
private String |
string |
TERMINATE_VISIT
Constructor and Description |
---|
LiteralText(String string) |
Modifier and Type | Method and Description |
---|---|
String |
asString()
Returns the string representation of this text itself, excluding siblings.
|
LiteralText |
copy()
Copies the text itself, excluding the styles or siblings.
|
boolean |
equals(Object obj) |
String |
getRawString() |
String |
toString() |
append, asOrderedText, getSiblings, getStyle, hashCode, setStyle, shallowCopy
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
append, fillStyle, formatted, formatted, styled
asTruncatedString, getString, of, visit, visit, visitSelf, visitSelf
concat, concat, plain, styled
public LiteralText(String string)
public String getRawString()
public String asString()
public LiteralText copy()
Text