Package net.sf.saxon.expr
Class PathMap.PathMapNodeSet
java.lang.Object
java.util.AbstractCollection
java.util.AbstractSet
java.util.HashSet
net.sf.saxon.expr.PathMap.PathMapNodeSet
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable
,Collection
,Set
- Enclosing class:
PathMap
A (mutable) set of nodes in the path map
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreate an initially-empty set of path map nodesPathMapNodeSet
(PathMap.PathMapNode singleton) Create a set of path map nodes that initially contains a single node -
Method Summary
Modifier and TypeMethodDescriptionvoid
Indicate that all the descendants of the nodes in this nodeset are requiredvoid
addNodeSet
(PathMap.PathMapNodeSet nodes) Combine two node sets into onecreateArc
(AxisExpression step) Create an arc from each node in this node set to a corresponding newly-created target nodevoid
Set the atomized property on all nodes in this nodesetvoid
Indicate that all the nodes have unknown dependenciesMethods inherited from class java.util.HashSet
add, clear, clone, contains, isEmpty, iterator, newHashSet, remove, size, spliterator, toArray, toArray
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Constructor Details
-
PathMapNodeSet
public PathMapNodeSet()Create an initially-empty set of path map nodes -
PathMapNodeSet
Create a set of path map nodes that initially contains a single node- Parameters:
singleton
- the single node to act as the initial content
-
-
Method Details
-
createArc
Create an arc from each node in this node set to a corresponding newly-created target node- Parameters:
step
- the AxisExpression defining the transition- Returns:
- the set of new target nodes
-
addNodeSet
Combine two node sets into one- Parameters:
nodes
- the set of nodes to be added to this set
-
setAtomized
public void setAtomized()Set the atomized property on all nodes in this nodeset -
addDescendants
public void addDescendants()Indicate that all the descendants of the nodes in this nodeset are required -
setHasUnknownDependencies
public void setHasUnknownDependencies()Indicate that all the nodes have unknown dependencies
-