@Immutable public final class SVerbatim extends Object implements SFootnoteContent, SListItemContent, SParagraphContent, SFormalItemContent, STableCellContent
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
<A> A |
footnoteContentAccept(SFootnoteContentVisitor<A> v)
Accept a footnote content visitor.
|
<A> A |
formalItemContentAccept(SFormalItemContentVisitor<A> v)
Accept a formal item content visitor.
|
String |
getText() |
com.io7m.jfunctional.OptionType<String> |
getType() |
int |
hashCode() |
<A> A |
listItemContentAccept(SListItemContentVisitor<A> v)
Accept a list item content visitor.
|
<A> A |
paragraphContentAccept(SParagraphContentVisitor<A> v)
Accept a paragraph content visitor.
|
<A> A |
tableCellContentAccept(STableCellContentVisitor<A> v)
Accept a table cell content visitor.
|
static SVerbatim |
verbatim(String text)
Construct a new verbatim element with the given text.
|
static SVerbatim |
verbatimTyped(String text,
String type)
Construct a new verbatim element with the given text and type attribute.
|
public static SVerbatim verbatim(String text)
text
- The textpublic static SVerbatim verbatimTyped(String text, String type)
text
- The texttype
- The type attributepublic <A> A footnoteContentAccept(SFootnoteContentVisitor<A> v) throws Exception
SFootnoteContent
footnoteContentAccept
in interface SFootnoteContent
A
- The type of values returned by the visitorv
- The visitorException
- If the visitor raises and Exception
public <A> A formalItemContentAccept(SFormalItemContentVisitor<A> v) throws Exception
SFormalItemContent
formalItemContentAccept
in interface SFormalItemContent
A
- The type of values returned by the visitorv
- The visitorException
- If the visitor raises and Exception
public String getText()
public com.io7m.jfunctional.OptionType<String> getType()
public <A> A listItemContentAccept(SListItemContentVisitor<A> v) throws Exception
SListItemContent
listItemContentAccept
in interface SListItemContent
A
- The type of values returned by the visitorv
- The visitorException
- If the visitor raises and Exception
public <A> A paragraphContentAccept(SParagraphContentVisitor<A> v) throws Exception
SParagraphContent
paragraphContentAccept
in interface SParagraphContent
A
- The type of values returned by the visitorv
- The visitorException
- If the visitor raises and Exception
public <A> A tableCellContentAccept(STableCellContentVisitor<A> v) throws Exception
STableCellContent
tableCellContentAccept
in interface STableCellContent
A
- The type of values returned by the visitorv
- The visitorException
- If the visitor raises and Exception
Copyright © 2017 <code@io7m.com> http://io7m.com