net.sf.saxon.functions

Class Error

public class Error extends SystemFunction

Implement XPath function fn:error()
Method Summary
ItemevaluateItem(XPathContext context)
Evaluation of the expression always throws an error
voidevaluatePendingUpdates(XPathContext context, PendingUpdateList pul)
Evaluate an updating expression, adding the results to a Pending Update List.
booleanisVacuousExpression()
Determine whether this is a vacuous expression as defined in the XQuery update specification
ExpressionpreEvaluate(ExpressionVisitor visitor)
preEvaluate: this method suppresses compile-time evaluation by doing nothing

Method Detail

evaluateItem

public Item evaluateItem(XPathContext context)
Evaluation of the expression always throws an error

evaluatePendingUpdates

public void evaluatePendingUpdates(XPathContext context, PendingUpdateList pul)
Evaluate an updating expression, adding the results to a Pending Update List. The default implementation of this method, which is used for non-updating expressions, throws an UnsupportedOperationException

Parameters: context the XPath dynamic evaluation context pul the pending update list to which the results should be written

isVacuousExpression

public boolean isVacuousExpression()
Determine whether this is a vacuous expression as defined in the XQuery update specification

Returns: true if this expression is vacuous

preEvaluate

public Expression preEvaluate(ExpressionVisitor visitor)
preEvaluate: this method suppresses compile-time evaluation by doing nothing

Parameters: visitor an expression visitor