| java.lang.Object net.sf.saxon.expr.ComputedExpression net.sf.saxon.expr.UnaryExpression net.sf.saxon.expr.Atomizer
Atomizer | final public class Atomizer extends UnaryExpression (Code) | | An Atomizer is an expression corresponding essentially to the fn:data() function: it
maps a sequence by replacing nodes with their typed values
|
Inner Class :public static class AtomizingFunction implements MappingFunction | |
Constructor Summary | |
public | Atomizer(Expression sequence, Configuration config) Constructor
Parameters: sequence - the sequence to be atomized Parameters: config - the Configuration. |
Atomizer | public Atomizer(Expression sequence, Configuration config)(Code) | | Constructor
Parameters: sequence - the sequence to be atomized Parameters: config - the Configuration. Used only for optimization, may be null. Atomization is faster ifit is known in advance that all nodes will be untyped. |
computeCardinality | public int computeCardinality()(Code) | | Determine the static cardinality of the expression
|
displayOperator | protected String displayOperator(NamePool pool)(Code) | | Give a string representation of the operator for use in diagnostics
the operator, as a string |
evaluateItem | public Item evaluateItem(XPathContext context) throws XPathException(Code) | | Evaluate as an Item. This should only be called if the Atomizer has cardinality zero-or-one,
which will only be the case if the underlying expression has cardinality zero-or-one.
|
getAtomizedItemType | final public static ItemType getAtomizedItemType(Expression operand, boolean alwaysUntyped, TypeHierarchy th)(Code) | | Compute the type that will result from atomizing the result of a given expression
Parameters: operand - the given expression Parameters: alwaysUntyped - true if it is known that nodes will always be untyped the item type of the result of evaluating the operand expression, after atomization |
getItemType | public ItemType getItemType(TypeHierarchy th)(Code) | | Determine the data type of the items returned by the expression, if possible
a value such as Type.STRING, Type.BOOLEAN, Type.NUMBER. For this class, theresult is always an atomic type, but it might be more specific. Parameters: th - |
|
|