public class AtomicConstructorFunction extends AbstractFunction
Constructor and Description |
---|
AtomicConstructorFunction(AtomicType targetType,
NamespaceResolver resolver)
Create the constructor function.
|
Modifier and Type | Method and Description |
---|---|
ZeroOrOne<AtomicValue> |
call(XPathContext context,
Sequence[] args)
Invoke the function
|
void |
export(ExpressionPresenter out)
Output information about this function item to the diagnostic explain() output
|
int |
getArity()
Get the arity of the function
|
java.lang.String |
getDescription()
Get a description of this function for use in error messages.
|
FunctionItemType |
getFunctionItemType()
Get the item type of the function item
|
StructuredQName |
getFunctionName()
Get the name of the function, or null if it is anonymous
|
boolean |
isTrustedResultType()
Check that result type is SystemFunction or AtomicConstructorFunction
|
atomize, deepEquals, effectiveBooleanValue, getAnnotations, getOperandRoles, getStringValue, getStringValueCS, isArray, isMap, makeNewContext, simplify, typeCheck
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
argumentArray, getGenre, toShortString
getLength, head, isStreamed, itemAt, iterate, iterator, reduce, subsequence, toGroundedValue
asIterable, materialize
makeRepeatable
public AtomicConstructorFunction(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()
public StructuredQName getFunctionName()
public java.lang.String getDescription()
public int getArity()
public ZeroOrOne<AtomicValue> 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 functionpublic void export(ExpressionPresenter out) throws XPathException
AbstractFunction
export
in interface Function
export
in class AbstractFunction
XPathException
public boolean isTrustedResultType()
AbstractFunction
isTrustedResultType
in interface Function
isTrustedResultType
in class AbstractFunction
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.