public final class SASectionWithSubsections extends SASection
Constructor and Description |
---|
SASectionWithSubsections(SASectionNumber in_number,
com.io7m.jfunctional.OptionType<String> in_type,
com.io7m.jfunctional.OptionType<SAID> in_id,
SASectionTitle in_title,
com.io7m.jfunctional.OptionType<SSectionContents> in_contents,
SNonEmptyList<SASubsection> in_subsections,
List<SAFootnote> in_footnotes)
Construct a new section with top-level subsections.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
SNonEmptyList<SASubsection> |
getSubsections() |
int |
hashCode() |
<A> A |
sectionAccept(SASectionVisitor<A> v)
Accept a section visitor.
|
<T> T |
targetContentAccept(SAIDTargetContentVisitor<T> v)
Accept an ID target content visitor.
|
getContents, getFootnotes, getID, getNumber, getTitle, getType
public SASectionWithSubsections(SASectionNumber in_number, com.io7m.jfunctional.OptionType<String> in_type, com.io7m.jfunctional.OptionType<SAID> in_id, SASectionTitle in_title, com.io7m.jfunctional.OptionType<SSectionContents> in_contents, SNonEmptyList<SASubsection> in_subsections, List<SAFootnote> in_footnotes)
in_number
- The section numberin_type
- The type attributein_id
- The IDin_title
- The section titlein_contents
- The section table of contentsin_subsections
- The subsectionsin_footnotes
- The footnotespublic SNonEmptyList<SASubsection> getSubsections()
public <A> A sectionAccept(SASectionVisitor<A> v) throws Exception
SASection
sectionAccept
in class SASection
A
- The type of values returned by the visitorv
- The visitorException
- If the visitor raises an Exception
public <T> T targetContentAccept(SAIDTargetContentVisitor<T> v) throws Exception
SAIDTargetContent
Copyright © 2017 <code@io7m.com> http://io7m.com