extends Node
Create a new, empty list.
list = new java.util.ArrayList(); Node nodesCreate a new list from a Nodeset or List.
Returns: A new List containing all the nodes in nodes
list = new java.util.ArrayList(); addAll(nodes);Add an entry to the list.
Returns: The List that the function was invoked on.
Add an entry to the list at the given, 0-indexed position.
Returns: The List that the function was invoked on.
Add several entries to the list at once.
Parameter nodes: 0 or more nodes in a Nodeset or List
Returns: The List that the function was invoked on.
Get all entries in the list as a nodeset
deprecated use List.values() instead
Same as: $this.values()
Clear the list by removing all list items.
Returns: this list, cleared.
Get an item from the list.
Returns: The value stored in the list at this position, or an empty nodeset if none.
Get the last item in the list.
Returns: The last item in the list, or an empty nodeset if none.
Get a Nodeset containing all Nodes in this List.
Same as: $this.values()
Remove an entry from the list.
Returns: The value stored in the list at this position, or an empty nodeset if none.
determine the number of items in the list
Get all entries in the list as a nodeset