public class ListCastableFunction extends ListConstructorFunction
allowEmpty, memberType, nsResolver, targetType| Constructor and Description |
|---|
ListCastableFunction(ListType targetType,
NamespaceResolver resolver,
boolean allowEmpty)
Create the constructor function.
|
| Modifier and Type | Method and Description |
|---|---|
BooleanValue |
call(XPathContext context,
Sequence[] args)
Invoke the function
|
FunctionItemType |
getFunctionItemType()
Get the item type of the function item
|
StructuredQName |
getFunctionName()
Get the name of the function, or null if it is anonymous
|
getArity, getDescription, getMemberType, getTargetType, isAllowEmptyatomize, deepEquals, effectiveBooleanValue, export, getAnnotations, getOperandRoles, getStringValue, getStringValueCS, isArray, isMap, isTrustedResultType, makeNewContext, simplify, typeCheckgetLength, head, isStreamed, itemAt, iterate, reduce, subsequenceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLength, head, itemAt, reduce, subsequencepublic ListCastableFunction(ListType targetType, NamespaceResolver resolver, boolean allowEmpty) throws MissingComponentException
targetType - the type to which the function will convert its inputresolver - namespace resolver for use if the target type is namespace-sensitiveMissingComponentExceptionpublic FunctionItemType getFunctionItemType()
getFunctionItemType in interface FunctiongetFunctionItemType in class ListConstructorFunctionpublic StructuredQName getFunctionName()
getFunctionName in interface FunctiongetFunctionName in class ListConstructorFunctionpublic BooleanValue call(XPathContext context, Sequence[] args) throws XPathException
call in interface Callablecall in interface Functioncall in class ListConstructorFunctioncontext - the XPath dynamic evaluation contextargs - the actual arguments to be suppliedXPathException - if a dynamic error occurs within the functionCopyright (c) 2004-2018 Saxonica Limited. All rights reserved.