Class Tree.Builder
java.lang.Object
org.eclipse.net4j.util.collection.Tree.Builder
- All Implemented Interfaces:
Comparable<Tree.Builder>
- Enclosing class:
- Tree
- Author:
- Eike Stepper
-
Method Summary
Modifier and TypeMethodDescriptionaddAttributes
(Map<String, String> attributes) addChild
(Consumer<Tree.Builder> childInitializer) addChild
(Tree.Builder child) addChildren
(Tree.Builder... children) allChildren
(String name) void
allChildren
(String name, Consumer<Tree.Builder> consumer) void
allChildren
(Consumer<Tree.Builder> consumer) build()
child
(int index) children()
void
children
(String name, Consumer<Tree.Builder> consumer) void
children
(Consumer<Tree.Builder> consumer) int
int
int
indexOfChild
(Tree.Builder child) name()
parent()
properties
(String childName) properties
(String childName, String nameAttribute, String valueAttribute) removeChild
(Tree.Builder child) removeChildren
(Tree.Builder... children) setAttribute
(String name, String value) setAttributes
(Map<String, String> attributes) setParent
(Tree.Builder parent) toString()
unsetAttribute
(String name) unsetAttributes
(Set<String> names) <DATA> DATA
visit
(BiFunction<Tree.Builder, DATA, DATA> visitor, DATA data)
-
Method Details
-
name
-
setName
-
attributes
-
attribute
-
setAttribute
-
setAttributes
-
addAttributes
-
unsetAttribute
-
unsetAttributes
-
unsetAttributes
-
parent
-
setParent
-
children
-
children
-
children
-
children
-
allChildren
-
allChildren
-
allChildren
-
allChildren
-
child
-
child
-
addChild
-
addChild
-
addChild
-
addChildren
-
removeChild
-
removeChildren
-
indexInParent
public int indexInParent() -
indexOfChild
-
properties
-
properties
-
properties
-
visit
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Tree.Builder>
-
toString
-
build
-