| java.lang.Object net.sf.saxon.expr.ComputedExpression net.sf.saxon.expr.PathExpression
PathExpression | final public class PathExpression extends ComputedExpression implements MappingFunction(Code) | | An expression that establishes a set of nodes by following relationships between nodes
in the document. Specifically, it consists of a start expression which defines a set of
nodes, and a Step which defines a relationship to be followed from those nodes to create
a new set of nodes.
|
PathExpression | public PathExpression(Expression start, Expression step)(Code) | | Constructor
Parameters: start - A node-set expression denoting the absolute or relative set of nodes from which thenavigation path should start. Parameters: step - The step to be followed from each node in the start expression to yield a newnode-set |
computeCardinality | public int computeCardinality()(Code) | | Determine the static cardinality of the expression
|
computeDependencies | public int computeDependencies()(Code) | | Determine which aspects of the context the expression depends on. The result is
a bitwise-or'ed value composed from constants such as XPathContext.VARIABLES and
XPathContext.CURRENT_NODE
|
computeSpecialProperties | public int computeSpecialProperties()(Code) | | Get the static properties of this expression (other than its type). The result is
bit-signficant. These properties are used for optimizations. In general, if
property bit is set, it is true, but if it is unset, the value is unknown.
|
equals | public boolean equals(Object other)(Code) | | Is this expression the same as another expression?
|
getFirstStep | public Expression getFirstStep()(Code) | | Get the first step in this expression. A path expression A/B/C is represented as (A/B)/C, but
the first step is A
|
getItemType | final public ItemType getItemType(TypeHierarchy th)(Code) | | Determine the data type of the items returned by this exprssion
the type of the step Parameters: th - |
getLastStep | public Expression getLastStep()(Code) | | Get the last step of the path expression
|
getLeadingSteps | public Expression getLeadingSteps()(Code) | | Get a path expression consisting of all steps except the last
|
getRemainingSteps | public Expression getRemainingSteps()(Code) | | Get all steps after the first.
This is complicated by the fact that A/B/C is represented as ((A/B)/C; we are required
to return B/C
|
getStartExpression | public Expression getStartExpression()(Code) | | Get the start expression (the left-hand operand)
|
getStepExpression | public Expression getStepExpression()(Code) | | Get the step expression (the right-hand operand)
|
hashCode | public int hashCode()(Code) | | get HashCode for comparing two expressions
|
isAbsolute | public boolean isAbsolute(TypeHierarchy th)(Code) | | Test whether a path expression is an absolute path - that is, a path whose first step selects a
document node
|
iterateSubExpressions | public Iterator iterateSubExpressions()(Code) | | Get the immediate subexpressions of this expression
|
|
|