@Immutable public final class SASectionWithSubsections extends SASection
| Constructor and Description |
|---|
SASectionWithSubsections(SASectionNumber in_number,
com.io7m.jaux.functional.Option<String> in_type,
com.io7m.jaux.functional.Option<SAID> in_id,
SASectionTitle in_title,
com.io7m.jaux.functional.Option<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, getTypepublic SASectionWithSubsections(@Nonnull SASectionNumber in_number, @Nonnull com.io7m.jaux.functional.Option<String> in_type, @Nonnull com.io7m.jaux.functional.Option<SAID> in_id, @Nonnull SASectionTitle in_title, @Nonnull com.io7m.jaux.functional.Option<SSectionContents> in_contents, @Nonnull SNonEmptyList<SASubsection> in_subsections, @Nonnull List<SAFootnote> in_footnotes) throws com.io7m.jaux.Constraints.ConstraintError
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 footnotescom.io7m.jaux.Constraints.ConstraintError - If any parameter is null@Nonnull public SNonEmptyList<SASubsection> getSubsections()
public <A> A sectionAccept(@Nonnull SASectionVisitor<A> v) throws com.io7m.jaux.Constraints.ConstraintError, Exception
SASectionsectionAccept in class SASectionA - The type of values returned by the visitorv - The visitorcom.io7m.jaux.Constraints.ConstraintError - If the visitor raises Constraints.ConstraintErrorException - If the visitor raises an Exceptionpublic <T> T targetContentAccept(@Nonnull SAIDTargetContentVisitor<T> v) throws com.io7m.jaux.Constraints.ConstraintError, Exception
SAIDTargetContentCopyright © 2014 <code@io7m.com> http://io7m.com