Class TreeListBuilder
java.lang.Object
org.apache.maven.doxia.module.twiki.parser.TreeListBuilder
It helps to build
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
A bidirectional tree node -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate TreeListBuilder.TreeComponent
the current element of the treeprivate final TreeListBuilder.TreeComponent
tree rootprivate final FormatedTextParser
parser that create text blocks -
Constructor Summary
ConstructorsConstructorDescriptionTreeListBuilder
(FormatedTextParser formatTextParser) Creates the TreeListBuilder. -
Method Summary
Modifier and TypeMethodDescription(package private) void
feedEntry
(GenericListBlockParser.Type type, int level, String text) recibe un nivel y un texto y armar magicamente (manteniendo estado) el �rbol(package private) ListBlock
getBlock()
private ListBlock
Wrapperprivate List<ListItemBlock>
-
Field Details
-
textParser
parser that create text blocks -
root
tree root -
current
the current element of the tree
-
-
Constructor Details
-
TreeListBuilder
TreeListBuilder(FormatedTextParser formatTextParser) throws IllegalArgumentException Creates the TreeListBuilder.- Parameters:
formatTextParser
- parser that create text blocks- Throws:
IllegalArgumentException
- ifformatTextParser
is null
-
-
Method Details
-
feedEntry
recibe un nivel y un texto y armar magicamente (manteniendo estado) el �rbol- Parameters:
type
- type of listlevel
- indentation level of the itemtext
- text of the item
-
getBlock
ListBlock getBlock()- Returns:
- a Block for the list that we received
-
getList
Wrapper- Parameters:
tc
- tree- Returns:
- list Block for this tree
-
getListItems
- Parameters:
tc
- tree- Returns:
- list Block for this tree
-