public class SectionBlock extends AbstractFatherBlock
| Modifier and Type | Field and Description |
|---|---|
private int |
level |
private java.lang.String |
title |
| Constructor and Description |
|---|
SectionBlock(java.lang.String title,
int level,
Block[] blocks)
Creates the SectionBlock.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
after(Sink sink)
method called after traversing the childs
|
(package private) void |
before(Sink sink)
method called before traversing the childs
|
int |
getLevel()
Returns the level.
|
java.lang.String |
getTitle()
Returns the title.
|
private void |
invokeVoidVoid(Sink sink,
java.lang.String name)
Let you call sink's methods that returns
null and have
no parameters. |
private void |
sectionEnd(Sink sink)
call to sink.section
|
private void |
sectionStart(Sink sink)
call to sink.section
|
private void |
sectionTitle_(Sink sink) |
private void |
sectionTitle(Sink sink) |
java.lang.String |
toString() |
equals, getBlocks, hashCode, traversepublic SectionBlock(java.lang.String title,
int level,
Block[] blocks)
nulltitle - the section title.level - the section level: 0 < level < 6blocks - child blocksfinal void before(Sink sink)
before in class AbstractFatherBlocksink - a sink to fillfinal void after(Sink sink)
after in class AbstractFatherBlocksink - a sink to fillprivate void sectionStart(Sink sink)
sink - sinkprivate void sectionEnd(Sink sink)
sink - sinkprivate void invokeVoidVoid(Sink sink, java.lang.String name)
null and have
no parameters.sink - the Sinkname - the name of the method to callpublic final int getLevel()
int with the level.public final java.lang.String getTitle()
String with the title.public final java.lang.String toString()
toString in class java.lang.Objectprivate void sectionTitle(Sink sink)
sink - private void sectionTitle_(Sink sink)
sink -