public abstract class AbstractFunctionItem extends AbstractItem implements FunctionItem
| Constructor and Description |
|---|
AbstractFunctionItem() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
deepEquals(FunctionItem other,
XPathContext context,
AtomicComparer comparer,
int flags)
Test whether this FunctionItem is deep-equal to another function item,
under the rules of the deep-equal function
|
boolean |
effectiveBooleanValue()
Get the effective boolean value of this sequence
|
void |
explain(ExpressionPresenter out) |
String |
getStringValue()
Get the string value of the function item
|
CharSequence |
getStringValueCS()
Get the string value of the function item
|
SequenceIterator |
getTypedValue()
Get the typed value of the item.
|
void |
optimize(ExpressionVisitor visitor,
ContextItemStaticInfo contextItemType)
Optimize the function (may modify it)
|
void |
simplify(ExpressionVisitor visitor) |
void |
typeCheck(ExpressionVisitor visitor,
ContextItemStaticInfo contextItemType)
Type check the function (may modify it by adding code for converting the arguments)
|
getLength, head, itemAt, iterate, reduce, subsequenceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcall, getArity, getFunctionItemType, getFunctionName, iterategetLength, head, itemAt, reduce, subsequencepublic String getStringValue()
getStringValue in interface GroundedValuegetStringValue in interface ItemUnsupportedOperationException - (the string value of a function item is not defined)Item.getStringValueCS()public CharSequence getStringValueCS()
getStringValueCS in interface GroundedValuegetStringValueCS in interface ItemUnsupportedOperationException - (the string value of a function item is not defined)Item.getStringValue()public boolean effectiveBooleanValue()
throws XPathException
GroundedValueeffectiveBooleanValue in interface GroundedValueXPathException - if the sequence has no effective boolean value (for example a sequence of two integers)public SequenceIterator getTypedValue() throws XPathException
XPathException - (always) - a function item cannot be atomizedpublic void simplify(ExpressionVisitor visitor) throws XPathException
XPathExceptionpublic void typeCheck(ExpressionVisitor visitor, ContextItemStaticInfo contextItemType) throws XPathException
visitor - the expression visitor, supplies context informationcontextItemType - the context item type at the point where the function definition appearsXPathException - if any failure (e.g. a type checking failure) occurspublic void optimize(ExpressionVisitor visitor, ContextItemStaticInfo contextItemType) throws XPathException
visitor - the expression visitor, supplies context informationcontextItemType - the context item type at the point where the function definition appearsXPathException - if any failure occurspublic void explain(ExpressionPresenter out)
public boolean deepEquals(FunctionItem other, XPathContext context, AtomicComparer comparer, int flags) throws XPathException
deepEquals in interface FunctionItemother - the other function itemcontext - the dynamic evaluation contextcomparer - the object to perform the comparisonflags - options for how the comparison is performedXPathException - if the comparison cannot be performedCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.