net.sf.saxon.expr
public final class PathExpression extends ComputedExpression implements MappingFunction
Constructor Summary | |
---|---|
PathExpression(Expression start, Expression step)
Constructor |
Method Summary | |
---|---|
int | computeCardinality()
Determine the static cardinality of the expression |
int | computeDependencies()
Determine which aspects of the context the expression depends on. |
int | computeSpecialProperties()
Get the static properties of this expression (other than its type). |
void | display(int level, NamePool pool, PrintStream out)
Diagnostic print of expression structure |
boolean | equals(Object other)
Is this expression the same as another expression? |
Expression | getFirstStep()
Get the first step in this expression. |
ItemType | getItemType(TypeHierarchy th)
Determine the data type of the items returned by this exprssion |
Expression | getLastStep()
Get the last step of the path expression |
Expression | getLeadingSteps()
Get a path expression consisting of all steps except the last |
Expression | getRemainingSteps()
Get all steps after the first.
|
Expression | getStartExpression()
Get the start expression (the left-hand operand) |
Expression | getStepExpression()
Get the step expression (the right-hand operand) |
int | hashCode()
get HashCode for comparing two expressions |
boolean | isAbsolute(TypeHierarchy th)
Test whether a path expression is an absolute path - that is, a path whose first step selects a
document node |
SequenceIterator | iterate(XPathContext context)
Iterate the path-expression in a given context |
Iterator | iterateSubExpressions()
Get the immediate subexpressions of this expression |
Object | map(Item item, XPathContext context)
Mapping function, from a node returned by the start iteration, to a sequence
returned by the child. |
Expression | optimize(Optimizer opt, StaticContext env, ItemType contextItemType)
Optimize the expression and perform type analysis |
Expression | promote(PromotionOffer offer)
Promote this expression if possible |
Expression | simplify(StaticContext env)
Simplify an expression |
Expression | typeCheck(StaticContext env, ItemType contextItemType)
Optimize the expression and perform type analysis |
Parameters: start A node-set expression denoting the absolute or relative set of nodes from which the navigation path should start. step The step to be followed from each node in the start expression to yield a new node-set
Parameters: th
Returns: the type of the step
Parameters: context the evaluation context
Returns: the simplified expression