net.sf.saxon.expr
public final class SimpleMappingExpression extends ComputedExpression implements MappingFunction
Constructor Summary | |
---|---|
SimpleMappingExpression(Expression start, Expression step, boolean isHybrid)
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? |
ItemType | getItemType(TypeHierarchy th)
Determine the data type of the items returned by this exprssion |
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 |
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) |
Expression | promote(PromotionOffer offer)
Promote this expression if possible |
Expression | simplify(StaticContext env)
Simplify an expression |
Expression | typeCheck(StaticContext env, ItemType contextItemType)
Type-check the expression |
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 isHybrid if true, indicates that we don't know statically whether the step expression will return nodes or atomic values. If false, we know it will return atomic values.
Parameters: th
Returns: the type of the step
Parameters: context the evaluation context
Returns: the simplified expression