Package org.basex.query.value.seq.tree
Class TreeSeqBuilder
java.lang.Object
org.basex.query.value.seq.tree.TreeSeqBuilder
- Author:
- BaseX Team 2005-21, BSD License, Leo Woerteler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds an item to the end of the array.add(Value value, QueryContext qc) Appends the items of the given value to this builder.Adds an item to the start of the array.static SeqConcatenates two items.iterator()Creates a sequence containing the current elements of this builder.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
TreeSeqBuilder
public TreeSeqBuilder()
-
-
Method Details
-
concat
Concatenates two items.- Parameters:
item1- first itemitem2- second item- Returns:
- the value
-
addFront
Adds an item to the start of the array.- Parameters:
item- item to add- Returns:
- reference to this builder for convenience
-
add
Adds an item to the end of the array.- Parameters:
item- item to add- Returns:
- reference to this builder for convenience
-
add
Appends the items of the given value to this builder.- Parameters:
value- value to appendqc- query context- Returns:
- this builder for convenience
-
seq
Creates a sequence containing the current elements of this builder.- Parameters:
type- type of all items in this sequence, can benull- Returns:
- resulting sequence
-
toString
-
iterator
-