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
atomize, deepEquals, effectiveBooleanValue, export, getOperandRoles, getStringValue, getStringValueCS, isArray, isMap, optimize, simplify, typeCheck
getLength, head, 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-2014 Saxonica Limited. All rights reserved.