net.sf.saxon.expr
public class QuantifiedExpression extends Assignation
Method Summary | |
---|---|
void | checkForUpdatingSubexpressions()
Check to ensure that this expression does not contain any updating subexpressions.
|
int | computeCardinality()
Determine the static cardinality |
int | computeSpecialProperties()
Determine the special properties of this expression |
Expression | copy()
Copy an expression. |
boolean | effectiveBooleanValue(XPathContext context)
Get the result as a boolean |
Item | evaluateItem(XPathContext context)
Evaluate the expression to return a singleton value |
void | explain(ExpressionPresenter out)
Diagnostic print of expression structure. |
ItemType | getItemType(TypeHierarchy th)
Determine the data type of the items returned by the expression |
int | getOperator()
Get the operator, either SOME or |
boolean | hasLoopingSubexpression(Expression child)
Given an expression that is an immediate child of this expression, test whether
the evaluation of the parent expression causes the child expression to be
evaluated repeatedly |
boolean | isUpdatingExpression()
Determine whether this is an updating expression as defined in the XQuery update specification |
Expression | optimize(ExpressionVisitor visitor, ItemType contextItemType)
Perform optimisation of an expression and its subexpressions.
|
void | setOperator(int operator)
Set the operator, either SOME or |
String | toString()
The toString() method for an expression attempts to give a representation of the expression
in an XPath-like form, but there is no guarantee that the syntax will actually be true XPath.
|
Expression | typeCheck(ExpressionVisitor visitor, ItemType contextItemType)
Type-check the expression |
Throws: net.sf.saxon.trans.XPathException if the expression has a non-permitted updateing subexpression
Returns: NON_CREATIVE.
Returns: the copy of the original expression
Parameters: th the type hierarchy cache
Returns: Type.BOOLEAN
Parameters: child the immediate subexpression
Returns: true if the child expression is evaluated repeatedly
Returns: true if this is an updating expression
This method is called after all references to functions and variables have been resolved to the declaration of the function or variable, and after all type checking has been done.
Parameters: visitor an expression visitor contextItemType the static type of "." at the point where this expression is invoked. The parameter is set to null if it is known statically that the context item will be undefined. If the type of the context item is not known statically, the argument is set to ITEM_TYPE
Returns: the original expression, rewritten if appropriate to optimize execution
Throws: XPathException if an error is discovered during this phase (typically a type error)
Returns: a representation of the expression as a string