net.sf.saxon.expr
public final class CastableExpression extends UnaryExpression
| Field Summary | |
|---|---|
| boolean | allowEmpty |
| AtomicType | targetType |
| Constructor Summary | |
|---|---|
| CastableExpression(Expression source, AtomicType target, boolean allowEmpty) | |
| Method Summary | |
|---|---|
| int | computeCardinality() |
| 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 |
| boolean | effectiveBooleanValue(XPathContext context) |
| boolean | equals(Object other)
Is this expression the same as another expression? |
| Item | evaluateItem(XPathContext context)
Evaluate the expression |
| ItemType | getItemType(TypeHierarchy th)
Determine the data type of the result of the Castable expression |
| Expression | optimize(Optimizer opt, StaticContext env, ItemType contextItemType)
Type-check the expression |
| Expression | simplify(StaticContext env)
Simplify the expression |
| Expression | typeCheck(StaticContext env, ItemType contextItemType)
Type-check the expression |
Returns: NON_CREATIVE.
Returns: the operator, as a string
Parameters: th
Returns: the simplified expression