public static final class MarkupElement.Builder extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MarkupElement.Builder.ListBuilder |
Modifier and Type | Method and Description |
---|---|
MarkupElement.Builder |
addSpan(int start,
int end,
Set<SpanElement.SpanStyle> styles)
Add a span element.
|
MarkupElement.Builder.ListBuilder |
beginList()
Begin a list.
|
MarkupElement |
build()
Build a Message Markup element.
|
MarkupElement.Builder |
setBlockQuote(int start,
int end)
Mark a section of a message as block quote.
|
MarkupElement.Builder |
setCode(int start,
int end)
Mark a section of a message as inline code.
|
MarkupElement.Builder |
setCodeBlock(int start,
int end)
Mark a section of a message as a code block.
|
MarkupElement.Builder |
setDeleted(int start,
int end)
Mark a section of a message as deleted.
|
MarkupElement.Builder |
setEmphasis(int start,
int end)
Mark a section of a message as emphasized.
|
public MarkupElement.Builder setDeleted(int start, int end)
start
- start indexend
- end indexpublic MarkupElement.Builder setEmphasis(int start, int end)
start
- start indexend
- end indexpublic MarkupElement.Builder setCode(int start, int end)
start
- start indexend
- end indexpublic MarkupElement.Builder addSpan(int start, int end, Set<SpanElement.SpanStyle> styles)
start
- start indexend
- end indexstyles
- list of text styles for that spanpublic MarkupElement.Builder setBlockQuote(int start, int end)
start
- start indexend
- end indexpublic MarkupElement.Builder setCodeBlock(int start, int end)
start
- start indexend
- end indexpublic MarkupElement.Builder.ListBuilder beginList()
public MarkupElement build()