Package net.sf.saxon.expr
Class ListCastableFunction
java.lang.Object
net.sf.saxon.functions.AbstractFunction
net.sf.saxon.expr.ListConstructorFunction
net.sf.saxon.expr.ListCastableFunction
- All Implemented Interfaces:
Callable,FunctionItem,GroundedValue,Item,Sequence
A function item representing a castability test for a list type
-
Field Summary
Fields inherited from class net.sf.saxon.expr.ListConstructorFunction
allowEmpty, memberType, nsResolver, targetType -
Constructor Summary
ConstructorsConstructorDescriptionListCastableFunction(ListType targetType, NamespaceResolver resolver, boolean allowEmpty) Create the constructor function. -
Method Summary
Modifier and TypeMethodDescriptioncall(XPathContext context, Sequence[] args) Invoke the functionGet the item type of the function itemGet the name of the function, or null if it is anonymousMethods inherited from class net.sf.saxon.expr.ListConstructorFunction
getArity, getDescription, getMemberType, getTargetType, isAllowEmptyMethods inherited from class net.sf.saxon.functions.AbstractFunction
atomize, deepEqual40, deepEquals, effectiveBooleanValue, export, getAnnotations, getOperandRoles, getUnicodeStringValue, isArray, isMap, isTrustedResultType, makeNewContext, simplify, toShortString, typeCheckMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.sf.saxon.om.FunctionItem
getGenre, isSequenceVariadicMethods inherited from interface net.sf.saxon.om.GroundedValue
asIterable, concatenate, containsNode, materializeMethods inherited from interface net.sf.saxon.om.Item
getLength, getStringValue, head, isStreamed, itemAt, iterate, reduce, subsequenceMethods inherited from interface net.sf.saxon.om.Sequence
makeRepeatable
-
Constructor Details
-
ListCastableFunction
public ListCastableFunction(ListType targetType, NamespaceResolver resolver, boolean allowEmpty) throws MissingComponentException Create the constructor function.- Parameters:
targetType- the type to which the function will convert its inputresolver- namespace resolver for use if the target type is namespace-sensitiveallowEmpty- if the operand can be an empty sequence- Throws:
MissingComponentException- if the item type has not been declared
-
-
Method Details
-
getFunctionItemType
Get the item type of the function item- Specified by:
getFunctionItemTypein interfaceFunctionItem- Overrides:
getFunctionItemTypein classListConstructorFunction- Returns:
- the function item's type
-
getFunctionName
Get the name of the function, or null if it is anonymous- Specified by:
getFunctionNamein interfaceFunctionItem- Overrides:
getFunctionNamein classListConstructorFunction- Returns:
- the function name, or null for an anonymous inline function
-
call
Invoke the function- Specified by:
callin interfaceCallable- Overrides:
callin classListConstructorFunction- 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
-