net.sf.saxon.expr
public class ErrorExpression extends Expression
| Constructor Summary | |
|---|---|
| ErrorExpression(XPathException exception)
Constructor | |
| Method Summary | |
|---|---|
| int | computeCardinality()
Determine the static cardinality |
| Expression | copy()
Copy an expression. |
| Item | evaluateItem(XPathContext context)
Evaluate the expression. |
| void | explain(ExpressionPresenter destination)
Diagnostic print of expression structure. |
| XPathException | getException()
Get the wrapped exception |
| ItemType | getItemType(TypeHierarchy th)
Determine the data type of the expression, if possible |
| SequenceIterator | iterate(XPathContext context)
Iterate over the expression. |
| Expression | optimize(ExpressionVisitor visitor, ItemType contextItemType) |
| Expression | typeCheck(ExpressionVisitor visitor, ItemType contextItemType)
Type-check the expression. |
Parameters: exception the error found when parsing this expression
Returns: the copy of the original expression
Parameters: th the type hierarchy cache
Returns: Type.ITEM (meaning not known in advance)