public class DocumentSorter extends UnaryExpression
operandlocationId, staticPropertiesEVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD| Constructor and Description |
|---|
DocumentSorter(Expression base) |
| Modifier and Type | Method and Description |
|---|---|
int |
computeSpecialProperties()
Get the static properties of this expression (other than its type).
|
protected java.lang.String |
displayOperator(Configuration config)
Give a string representation of the operator for use in diagnostics
|
boolean |
effectiveBooleanValue(XPathContext context)
Get the effective boolean value of the expression.
|
SequenceIterator |
iterate(XPathContext context)
Return an Iterator to iterate over the values of a sequence.
|
Expression |
optimize(Optimizer opt,
StaticContext env,
ItemType contextItemType)
Perform optimisation of an expression and its subexpressions.
|
Expression |
promote(PromotionOffer offer)
Promote this expression if possible
|
Expression |
simplify(StaticContext env)
Simplify an expression
|
computeCardinality, display, equals, getBaseExpression, getItemType, hashCode, iterateSubExpressions, replaceSubExpression, typeCheckadoptChildExpression, checkPermittedContents, computeDependencies, computeStaticProperties, doPromotion, dynamicError, evaluateAsString, evaluateItem, getCardinality, getColumnNumber, getConstructType, getDependencies, getExecutable, getHostLanguage, getImplementationMethod, getInstructionInfo, getIntrinsicDependencies, getLineNumber, getLocationId, getLocationProvider, getParentExpression, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, hasBadParentPointer, markTailFunctionCalls, process, resetStaticProperties, setLocationId, setParentExpression, setParentExpression, suppressValidation, typeErrorpublic DocumentSorter(Expression base)
public Expression simplify(StaticContext env) throws XPathException
UnaryExpressionsimplify in interface Expressionsimplify in class UnaryExpressionenv - the static contextXPathException - if an error is discovered during expression
rewritingpublic Expression optimize(Optimizer opt, StaticContext env, ItemType contextItemType) throws XPathException
UnaryExpressionThis 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.
optimize in interface Expressionoptimize in class UnaryExpressionopt - the optimizer in use. This provides access to supporting functions; it also allows
different optimization strategies to be used in different circumstances.env - the static context of the expressioncontextItemType - 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
Type.ITEM_TYPEStaticError - if an error is discovered during this phase
(typically a type error)XPathExceptionpublic int computeSpecialProperties()
UnaryExpressioncomputeSpecialProperties in class UnaryExpressionpublic Expression promote(PromotionOffer offer) throws XPathException
promote in interface Expressionpromote in class UnaryExpressionoffer - details of the offer, for example the offer to move
expressions that don't depend on the context to an outer level in
the containing expressionXPathException - if any error is detectedpublic SequenceIterator iterate(XPathContext context) throws XPathException
ComputedExpressioniterate in interface Expressioniterate in class ComputedExpressioncontext - supplies the context for evaluationXPathException - if any dynamic error occurs evaluating the
expressionpublic boolean effectiveBooleanValue(XPathContext context) throws XPathException
ComputedExpressioneffectiveBooleanValue in interface ExpressioneffectiveBooleanValue in class ComputedExpressioncontext - The context in which the expression is to be evaluatedXPathException - if any dynamic error occurs evaluating the
expressionprotected java.lang.String displayOperator(Configuration config)
displayOperator in class UnaryExpressionconfig -