Package net.sf.saxon.functions.registry
Class SefFunction
- java.lang.Object
-
- net.sf.saxon.functions.AbstractFunction
-
- net.sf.saxon.functions.SystemFunction
-
- net.sf.saxon.functions.registry.SefFunction
-
- All Implemented Interfaces:
Callable,Function,GroundedValue,Item,Sequence
- Direct Known Subclasses:
XPath40FunctionSet.HighestOrLowest
public class SefFunction extends SystemFunction
Represents a system function whose implementation is written in XSLT, and which is implemented here by loading the pre-compiled code from a system SEF file.
-
-
Field Summary
Fields Modifier and Type Field Description protected SymbolicName.FfunctionAliasprotected StylesheetPackagepack
-
Constructor Summary
Constructors Constructor Description SefFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Sequencecall(XPathContext context, Sequence[] args)Invoke the functionprotected SequencecallFunction(XPathContext context, SymbolicName.F name, Sequence[] args)ExpressionmakeFunctionCall(Expression... arguments)Make an expression that either calls this function, or that is equivalent to a call on this functionvoidsetDetails(BuiltInFunctionSet.Entry entry)Set the details of this type of function-
Methods inherited from class net.sf.saxon.functions.SystemFunction
dependsOnContextItem, dynamicCall, equals, export, exportAdditionalArguments, exportAttributes, fixArguments, getArity, getCardinality, getCompilerName, getContextNode, getDescription, getDetails, getErrorCodeForTypeErrors, getFunctionItemType, getFunctionName, getIntegerBounds, getNetCost, getOperandRoles, getRequiredType, getResultItemType, getResultItemType, getRetainedStaticContext, getSpecialProperties, getStaticBaseUriString, getStreamerName, getUniStringArg, hashCode, importAttributes, isSequenceVariadic, isTrustedResultType, makeCall, makeFunction, makeOptimizedFunctionCall, resultIfEmpty, setArity, setRetainedStaticContext, supplyTypeInformation, toShortString, toString, typeCheckCaller
-
Methods inherited from class net.sf.saxon.functions.AbstractFunction
atomize, deepEquals, effectiveBooleanValue, getAnnotations, getSerialNumber, getUnicodeStringValue, isArray, isMap, makeNewContext, simplify, typeCheck
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.sf.saxon.om.GroundedValue
asIterable, concatenate, containsNode, materialize
-
Methods inherited from interface net.sf.saxon.om.Item
getLength, getStringValue, head, isStreamed, itemAt, iterate, reduce, subsequence
-
Methods inherited from interface net.sf.saxon.om.Sequence
makeRepeatable
-
-
-
-
Field Detail
-
functionAlias
protected SymbolicName.F functionAlias
-
pack
protected StylesheetPackage pack
-
-
Method Detail
-
setDetails
public void setDetails(BuiltInFunctionSet.Entry entry)
Set the details of this type of function- Overrides:
setDetailsin classSystemFunction- Parameters:
entry- information giving details of the function signature and other function properties
-
makeFunctionCall
public Expression makeFunctionCall(Expression... arguments)
Make an expression that either calls this function, or that is equivalent to a call on this function- Overrides:
makeFunctionCallin classSystemFunction- 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
-
callFunction
protected Sequence callFunction(XPathContext context, SymbolicName.F name, Sequence[] args) throws XPathException
- Throws:
XPathException
-
call
public Sequence call(XPathContext context, Sequence[] args) throws XPathException
Invoke the function- Parameters:
context- the XPath dynamic evaluation contextargs- the actual arguments to be supplied- Returns:
- the result of invoking the function
- Throws:
XPathException- if a dynamic error occurs within the function
-
-