|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface FunctionItem<T extends FunctionItem>
XDM 3.0 introduces a third kind of item, beyond nodes and atomic values: the function item. Function items implement this marker interface. The actual implementation class is in Saxon-PE and Saxon-EE only.
| Field Summary |
|---|
| Fields inherited from interface net.sf.saxon.om.ValueRepresentation |
|---|
EMPTY_VALUE_ARRAY |
| Method Summary | |
|---|---|
FunctionItem |
curry(ValueRepresentation<? extends Item>[] values)
Curry a function by binding one or more (but not all) of its arguments |
boolean |
deepEquals(FunctionItem other,
XPathContext context,
GenericAtomicComparer comparer,
int flags)
Test whether this FunctionItem is deep-equal to another function item, under the rules of the deep-equal 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 |
SequenceIterator<? extends Item> |
invoke(SequenceIterator<? extends Item>[] args,
XPathContext context)
Invoke the function |
| Methods inherited from interface net.sf.saxon.om.Item |
|---|
getStringValue, getStringValueCS, getTypedValue |
| Method Detail |
|---|
FunctionItemType getFunctionItemType(TypeHierarchy th)
th - the type hierarchy cache
StructuredQName getFunctionName()
int getArity()
SequenceIterator<? extends Item> invoke(SequenceIterator<? extends Item>[] args,
XPathContext context)
throws XPathException
args - the actual arguments to be suppliedcontext - the XPath dynamic evaluation context
XPathException - if a dynamic error occurs within the function
FunctionItem curry(ValueRepresentation<? extends Item>[] values)
throws XPathException
values - the values to which the arguments are to be bound, representing an unbound argument (a placeholder)
by null
XPathException - if any dynamic error occurs
boolean deepEquals(FunctionItem other,
XPathContext context,
GenericAtomicComparer comparer,
int flags)
throws XPathException
other - the other function itemcontext - the dynamic evaluation contextcomparer - the object to perform the comparisonflags - options for how the comparison is performed
XPathException - if the comparison cannot be performed
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||