Package net.sf.saxon.expr
Class PathMap.PathMapNode
java.lang.Object
net.sf.saxon.expr.PathMap.PathMapNode
- Direct Known Subclasses:
PathMap.PathMapRoot
- Enclosing class:
- PathMap
A node in the path map. A node holds a set of arcs, each representing a link to another
node in the path map.
-
Method Summary
Modifier and TypeMethodDescriptioncreateArc
(AxisExpression step) Create a new arcvoid
createArc
(AxisExpression step, PathMap.PathMapNode target) Create a new arc to an existing targetgetArcs()
Get the arcs emanating from this node in the PathMapboolean
Ask whether the path has unknown dependencies, typically because a node reached by the path is supplied as an argument to a user-defined functionboolean
Ask whether the typed value (or string value) of the node reached by this path will be required.boolean
Ask whether the node represents a value that is returnable as the result of the supplied expression, rather than merely a node that is visited en routevoid
Indicate that the typed value or string value of the node reached by this path will be used.void
Indicate that the path has unknown dependencies, typically because a node reached by the path is supplied as an argument to a user-defined functionvoid
setReturnable
(boolean returnable) Indicate that the node represents a value that is returnable as the result of the supplied expression, rather than merely a node that is visited en route
-
Method Details
-
createArc
Create a new arc- Parameters:
step
- the AxisExpression representing this step- Returns:
- the newly-constructed target of the new arc
-
createArc
Create a new arc to an existing target- Parameters:
step
- the AxisExpression representing this steptarget
- the target node of the new arc
-
getArcs
Get the arcs emanating from this node in the PathMap- Returns:
- the arcs, each representing an AxisStep. The order of arcs in the array is undefined.
-
setReturnable
public void setReturnable(boolean returnable) Indicate that the node represents a value that is returnable as the result of the supplied expression, rather than merely a node that is visited en route- Parameters:
returnable
- true if the node represents a final result of the expression
-
isReturnable
public boolean isReturnable()Ask whether the node represents a value that is returnable as the result of the supplied expression, rather than merely a node that is visited en route- Returns:
- true if the node represents a final result of the expression
-
setAtomized
public void setAtomized()Indicate that the typed value or string value of the node reached by this path will be used. -
isAtomized
public boolean isAtomized()Ask whether the typed value (or string value) of the node reached by this path will be required.- Returns:
- true if the typed value or string value of the node is required
-
setHasUnknownDependencies
public void setHasUnknownDependencies()Indicate that the path has unknown dependencies, typically because a node reached by the path is supplied as an argument to a user-defined function -
hasUnknownDependencies
public boolean hasUnknownDependencies()Ask whether the path has unknown dependencies, typically because a node reached by the path is supplied as an argument to a user-defined function- Returns:
- true if the path has unknown dependencies
-