net.sf.saxon.expr
public final class SingletonAtomizer extends UnaryExpression
Constructor Summary | |
---|---|
SingletonAtomizer(Expression sequence, RoleLocator role, boolean allowEmpty)
Constructor |
Method Summary | |
---|---|
PathMap.PathMapNodeSet | addToPathMap(PathMap pathMap, PathMap.PathMapNodeSet pathMapNodeSet) |
int | computeCardinality()
Determine the static cardinality of the expression |
int | computeSpecialProperties()
Determine the special properties of this expression |
Expression | copy()
Copy an expression. |
protected String | displayExpressionName()
Give a string representation of the expression name 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 |
RoleLocator | getRole()
Get the RoleLocator (used to construct error messages) |
Expression | optimize(ExpressionVisitor visitor, ItemType contextItemType) |
Expression | simplify(ExpressionVisitor visitor)
Simplify an expression |
Expression | typeCheck(ExpressionVisitor visitor, ItemType contextItemType)
Type-check the expression |
Parameters: sequence the sequence to be atomized role contains information about where the expression appears, for use in any error message allowEmpty true if the result sequence is allowed to be empty.
Returns: NON_CREATIVE.
Returns: the copy of the original expression
Returns: the expression name, as a string
Parameters: th the type hierarchy cache
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.
Returns: the role locator
Parameters: visitor an expression visitor