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, isAllowEmpty
atomize, deepEquals, effectiveBooleanValue, export, getAnnotations, getOperandRoles, getStringValue, getStringValueCS, isArray, isMap, isTrustedResultType, makeNewContext, simplify, typeCheck
getLength, head, isStreamed, itemAt, iterate, reduce, subsequence
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLength, head, itemAt, reduce, subsequence
public 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-sensitiveMissingComponentException
public FunctionItemType getFunctionItemType()
getFunctionItemType
in interface Function
getFunctionItemType
in class ListConstructorFunction
public StructuredQName getFunctionName()
getFunctionName
in interface Function
getFunctionName
in class ListConstructorFunction
public BooleanValue call(XPathContext context, Sequence[] args) throws XPathException
call
in interface Callable
call
in interface Function
call
in class ListConstructorFunction
context
- 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.