class TreeListBuilder
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) class |
TreeListBuilder.TreeComponent
A bidirectional tree node
|
Modifier and Type | Field and Description |
---|---|
private TreeListBuilder.TreeComponent |
current
the current element of the tree
|
private TreeListBuilder.TreeComponent |
root
tree root
|
private FormatedTextParser |
textParser
parser that create text blocks
|
Constructor and Description |
---|
TreeListBuilder(FormatedTextParser formatTextParser)
Creates the TreeListBuilder.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
feedEntry(GenericListBlockParser.Type type,
int level,
java.lang.String text)
recibe un nivel y un texto y armar magicamente (manteniendo estado)
el �rbol
|
(package private) ListBlock |
getBlock() |
private ListBlock |
getList(TreeListBuilder.TreeComponent tc)
Wrapper
|
private java.util.List<ListItemBlock> |
getListItems(TreeListBuilder.TreeComponent tc) |
private final FormatedTextParser textParser
private final TreeListBuilder.TreeComponent root
private TreeListBuilder.TreeComponent current
TreeListBuilder(FormatedTextParser formatTextParser) throws java.lang.IllegalArgumentException
formatTextParser
- parser that create text blocksjava.lang.IllegalArgumentException
- if formatTextParser
is nullvoid feedEntry(GenericListBlockParser.Type type, int level, java.lang.String text)
type
- type of listlevel
- indentation level of the itemtext
- text of the itemListBlock getBlock()
private ListBlock getList(TreeListBuilder.TreeComponent tc)
tc
- treeprivate java.util.List<ListItemBlock> getListItems(TreeListBuilder.TreeComponent tc)
tc
- tree