net.sf.saxon.expr
public final class SingletonAtomizer extends UnaryExpression
| Constructor Summary | |
|---|---|
| SingletonAtomizer(Expression sequence, RoleLocator role, boolean allowEmpty)
Constructor | |
| Method Summary | |
|---|---|
| int | computeCardinality()
Determine the static cardinality of the expression |
| int | computeSpecialProperties()
Determine the special properties of this expression |
| protected String | displayOperator(NamePool pool)
Give a string representation of the operator for use in diagnostics |
| Item | evaluateItem(XPathContext context)
Evaluate as an Item. |
| ItemType | getItemType(TypeHierarchy th)
Determine the data type of the items returned by the expression, if possible |
| Expression | simplify(StaticContext env)
Simplify an expression |
| Expression | typeCheck(StaticContext env, ItemType contextItemType)
Type-check the expression |
Parameters: sequence the sequence to be atomized allowEmpty true if the result sequence is allowed to be empty.
Returns: NON_CREATIVE.
Returns: the operator, as a string
Parameters: th
Returns: a value such as Type.STRING, Type.BOOLEAN, Type.NUMBER. For this class, the result is always an atomic type, but it might be more specific.