public class AtomicConstructorFunctionItem extends AbstractFunctionItem
Constructor and Description |
---|
AtomicConstructorFunctionItem(AtomicType targetType,
NamespaceResolver resolver)
Create the constructor function.
|
Modifier and Type | Method and Description |
---|---|
Sequence |
call(XPathContext context,
Sequence[] args)
Invoke the function
|
int |
getArity()
Get the arity of the function
|
FunctionItemType |
getFunctionItemType(TypeHierarchy th)
Get the item type of the function item
|
StructuredQName |
getFunctionName()
Get the name of the function, or null if it is anonymous
|
deepEquals, effectiveBooleanValue, explain, getStringValue, getStringValueCS, getTypedValue, optimize, simplify, typeCheck
getLength, head, itemAt, iterate, reduce, subsequence
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLength, itemAt, reduce, subsequence
public AtomicConstructorFunctionItem(AtomicType targetType, NamespaceResolver resolver)
targetType
- the type to which the function will convert its inputresolver
- namespace resolver for use if the target type is namespace-sensitivepublic FunctionItemType getFunctionItemType(TypeHierarchy th)
th
- the type hierarchy cachepublic StructuredQName getFunctionName()
public int getArity()
public Sequence call(XPathContext context, Sequence[] args) throws XPathException
context
- the XPath dynamic evaluation contextargs
- the actual arguments to be suppliedXPathException
- if a dynamic error occurs within the functionCopyright (c) 2004-2013 Saxonica Limited. All rights reserved.