@Immutable public final class SSectionWithSubsections extends SSection
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
SNonEmptyList<SSubsection> |
getSubsections() |
int |
hashCode() |
static SSectionWithSubsections |
section(SSectionTitle in_title,
SNonEmptyList<SSubsection> in_content)
Create a section with the given title and content.
|
<S> S |
sectionAccept(SSectionVisitor<S> v)
Accept a section visitor.
|
static SSectionWithSubsections |
sectionID(SID id,
SSectionTitle in_title,
SNonEmptyList<SSubsection> in_content)
Create a section with the given id, title, and content.
|
static SSectionWithSubsections |
sectionTyped(String type,
SSectionTitle in_title,
SNonEmptyList<SSubsection> in_content)
Create a section with the given type, title, and content.
|
static SSectionWithSubsections |
sectionTypedID(String type,
SID id,
SSectionTitle in_title,
SNonEmptyList<SSubsection> in_content)
Create a section with the given type, id, title, and content.
|
static SSectionWithSubsections |
sectionWithContents(SSectionTitle in_title,
SNonEmptyList<SSubsection> in_content)
Create a section with the given title, content, and with a table of
contents.
|
static SSectionWithSubsections |
sectionWithContentsID(SID id,
SSectionTitle in_title,
SNonEmptyList<SSubsection> in_content)
Create a section with the given id, title, content, and with a table of
contents.
|
static SSectionWithSubsections |
sectionWithContentsTyped(String type,
SSectionTitle in_title,
SNonEmptyList<SSubsection> in_content)
Create a section with the given type, title, content, and with a table of
contents.
|
static SSectionWithSubsections |
sectionWithContentsTypedID(String type,
SID id,
SSectionTitle in_title,
SNonEmptyList<SSubsection> in_content)
Create a section with the given type, id, title, content, and with a
table of contents.
|
getContents, getID, getTitle, getType
public static SSectionWithSubsections section(SSectionTitle in_title, SNonEmptyList<SSubsection> in_content)
in_title
- The titlein_content
- The contentpublic static SSectionWithSubsections sectionID(SID id, SSectionTitle in_title, SNonEmptyList<SSubsection> in_content)
id
- The IDin_title
- The titlein_content
- The contentpublic static SSectionWithSubsections sectionTyped(String type, SSectionTitle in_title, SNonEmptyList<SSubsection> in_content)
type
- The typein_title
- The titlein_content
- The contentpublic static SSectionWithSubsections sectionTypedID(String type, SID id, SSectionTitle in_title, SNonEmptyList<SSubsection> in_content)
type
- The typeid
- The IDin_title
- The titlein_content
- The contentpublic static SSectionWithSubsections sectionWithContents(SSectionTitle in_title, SNonEmptyList<SSubsection> in_content)
in_title
- The titlein_content
- The contentpublic static SSectionWithSubsections sectionWithContentsID(SID id, SSectionTitle in_title, SNonEmptyList<SSubsection> in_content)
id
- The IDin_title
- The titlein_content
- The contentpublic static SSectionWithSubsections sectionWithContentsTyped(String type, SSectionTitle in_title, SNonEmptyList<SSubsection> in_content)
type
- The typein_title
- The titlein_content
- The contentpublic static SSectionWithSubsections sectionWithContentsTypedID(String type, SID id, SSectionTitle in_title, SNonEmptyList<SSubsection> in_content)
type
- The typeid
- The IDin_title
- The titlein_content
- The contentpublic SNonEmptyList<SSubsection> getSubsections()
public <S> S sectionAccept(SSectionVisitor<S> v) throws Exception
SSection
sectionAccept
in class SSection
S
- The type of transformed SSection
sv
- The visitorException
- If the visitor raises an Exception
Copyright © 2017 <code@io7m.com> http://io7m.com