net.sf.saxon.functions
Class Reverse
- EvaluableItem, InstructionInfoProvider, SequenceIterable, Serializable, SourceLocator
Implement XPath function fn:reverse()
addContextDocumentArgument, addDocToPathMap, checkArguments, computeCardinality, computeSpecialProperties, copy, getDetails, getErrorCodeForTypeErrors, getItemType, getRequiredType, makeSystemFunction, optimize, setDetails, useContextItemAsDefault |
addExternalFunctionCallToPathMap, checkArgumentCount, checkArguments, equals, explain, getArguments, getDisplayName, getFunctionName, getNumberOfArguments, hashCode, iterateSubExpressions, optimize, preEvaluate, promote, replaceSubExpression, setArguments, setFunctionName, simplify, simplifyArguments, toString, typeCheck |
addToPathMap, adoptChildExpression, checkPermittedContents, computeCardinality, computeDependencies, computeSpecialProperties, computeStaticProperties, copy, display, doPromotion, dynamicError, effectiveBooleanValue, evaluateAsString, evaluateItem, explain, explain, findParentOf, getCardinality, getColumnNumber, getConstructType, getContainer, getDependencies, getExecutable, getHostLanguage, getImplementationMethod, getInstructionInfo, getIntrinsicDependencies, getItemType, getLineNumber, getLocationId, getLocationProvider, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, hasLoopingSubexpression, implementsStaticTypeCheck, iterate, iterateEvents, iterateSubExpressions, markTailFunctionCalls, optimize, process, promote, replaceSubExpression, resetLocalStaticProperties, setContainer, setFiltered, setFlattened, setLocationId, simplify, staticTypeCheck, suppressValidation, toString, typeCheck, typeError |
computeSpecialProperties
public int computeSpecialProperties()
Determine the special properties of this expression. The general rule
is that a system function call is non-creative if its return type is
atomic, or if all its arguments are non-creative. This is overridden
for the generate-id() function, which is considered creative if
its operand is creative (because the result depends on the
identity of the operand)
- computeSpecialProperties in interface SystemFunction
effectiveBooleanValue
public boolean effectiveBooleanValue(XPathContext context)
throws XPathException Get the effective boolean value of the expression. This returns false if the value
is the empty sequence, a zero-length string, a number equal to zero, or the boolean
false. Otherwise it returns true.
- effectiveBooleanValue in interface Expression
context - The context in which the expression is to be evaluated
- the effective boolean value
XPathException - if any dynamic error occurs evaluating the
expression
iterate
public SequenceIterator iterate(XPathContext context)
throws XPathException Return an Iterator to iterate over the values of a sequence. The value of every
expression can be regarded as a sequence, so this method is supported for all
expressions. This default implementation handles iteration for expressions that
return singleton values: for non-singleton expressions, the subclass must
provide its own implementation.
- iterate in interface SequenceIterable
- iterate in interface Expression
context - supplies the context for evaluation
- a SequenceIterator that can be used to iterate over the result
of the expression
XPathException - if any dynamic error occurs evaluating the
expression