Provides the Tree
family interfaces and implementing classes.
-
class
Tree
represented as a recursive data structure, done "bare-handed",
with implementations of primary methods.
class
Layered implementations of secondary methods for Tree
.
Removes and returns the subtree at position pos
in this
.
Creates and returns an empty Sequence<Tree<T>>
of the dynamic
type needed in assemble
and disassemble
.
void
Adds the tree st
at position pos
in this
; the
declaration notwithstanding, the dynamic type of st
must
be the same as the dynamic type of this
.
void
final void
final void
void
Assembles in this
a tree with root label root
and
subtrees children
; the declaration notwithstanding, the
dynamic type of each entry of children
must be the same as
the dynamic type of this
and the dynamic type of
children
must be the same as that returned by
newSequenceOfTree
.
Disassembles this
into its root label, which is returned as the
value of the function, and subtrees in children
; the declaration
notwithstanding, the dynamic type of children
must be the
same as that returned by newSequenceOfTree
.