public class LiteralText extends BaseText
Text.Serializer, Text.StyledVisitor<T>, Text.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, getSiblings, getStyle, hashCode, setStyle, shallowCopyclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic LiteralText(String string)
public String getRawString()
public String asString()
public LiteralText copy()
Text