Package net.sf.saxon.functions
Class FunctionAvailable
java.lang.Object
net.sf.saxon.functions.AbstractFunction
net.sf.saxon.functions.SystemFunction
net.sf.saxon.functions.FunctionAvailable
- All Implemented Interfaces:
- Callable,- FunctionItem,- GroundedValue,- Item,- Sequence
This class implements the XSLT function-available functions.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncall(XPathContext context, Sequence[] arguments) Evaluate the expressionmakeFunctionCall(Expression... arguments) Make an expression that either calls this function, or that is equivalent to a call on this functionmakeOptimizedFunctionCall(ExpressionVisitor visitor, ContextItemStaticInfo contextInfo, Expression... arguments) Allow the function to create an optimized call based on the values of the actual argumentsMethods inherited from class net.sf.saxon.functions.SystemFunctiondependsOnContextItem, dynamicCall, equals, export, exportAdditionalArguments, exportAttributes, fixArguments, getArity, getCardinality, getContextNode, getDescription, getDetails, getElaborator, getErrorCodeForTypeErrors, getFunctionItemType, getFunctionName, getIntegerBounds, getNetCost, getOperandRoles, getRequiredType, getResultItemType, getResultItemType, getRetainedStaticContext, getSpecialProperties, getStaticBaseUriString, getStreamerName, getUniStringArg, hashCode, importAttributes, isSequenceVariadic, isTrustedResultType, makeCall, makeFunction, makeFunction40, resultIfEmpty, setArity, setDetails, setRetainedStaticContext, supplyTypeInformation, toShortString, toString, typeCheckCallerMethods inherited from class net.sf.saxon.functions.AbstractFunctionatomize, deepEqual40, deepEquals, effectiveBooleanValue, getAnnotations, getUnicodeStringValue, isArray, isMap, makeNewContext, simplify, typeCheckMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.sf.saxon.om.FunctionItemgetGenreMethods inherited from interface net.sf.saxon.om.GroundedValueasIterable, concatenate, containsNode, materializeMethods inherited from interface net.sf.saxon.om.ItemgetLength, getStringValue, head, isStreamed, itemAt, iterate, reduce, subsequenceMethods inherited from interface net.sf.saxon.om.SequencemakeRepeatable
- 
Constructor Details- 
FunctionAvailablepublic FunctionAvailable()
 
- 
- 
Method Details- 
makeFunctionCallDescription copied from class:SystemFunctionMake an expression that either calls this function, or that is equivalent to a call on this function- Overrides:
- makeFunctionCallin class- SystemFunction
- Parameters:
- arguments- the supplied arguments to the function call
- Returns:
- either a function call on this function, or an expression that delivers the same result
 
- 
makeOptimizedFunctionCallpublic Expression makeOptimizedFunctionCall(ExpressionVisitor visitor, ContextItemStaticInfo contextInfo, Expression... arguments) throws XPathException Allow the function to create an optimized call based on the values of the actual arguments- Overrides:
- makeOptimizedFunctionCallin class- SystemFunction
- Parameters:
- visitor- the expression visitor
- contextInfo- information about the context item
- arguments- the supplied arguments to the function call
- Returns:
- either a function call on this function, or an expression that delivers the same result, or null indicating that no optimization has taken place
- Throws:
- XPathException- if an error is detected
 
- 
callEvaluate the expression- Parameters:
- context- the dynamic evaluation context
- arguments- the values of the arguments, supplied as SequenceIterators
- Returns:
- the result of the evaluation, in the form of a SequenceIterator
- Throws:
- XPathException- if a dynamic error occurs during the evaluation of the expression
 
 
-