| java.lang.Object net.sf.saxon.expr.ComputedExpression net.sf.saxon.expr.SimpleMappingExpression
SimpleMappingExpression | final public class SimpleMappingExpression extends ComputedExpression implements MappingFunction(Code) | | A simple mapping expression is an expression A/B where B has a static type that is an atomic type.
For example, * / name().
|
Constructor Summary | |
public | SimpleMappingExpression(Expression start, Expression step, boolean isHybrid) 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 Parameters: isHybrid - if true, indicates that we don't know statically whether the step expression willreturn nodes or atomic values. |
SimpleMappingExpression | public SimpleMappingExpression(Expression start, Expression step, boolean isHybrid)(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 Parameters: isHybrid - if true, indicates that we don't know statically whether the step expression willreturn nodes or atomic values. If false, we know it will return atomic values. |
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?
|
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 - |
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
|
iterateSubExpressions | public Iterator iterateSubExpressions()(Code) | | Get the immediate subexpressions of this expression
|
|
|