public abstract class CollatingFunctionFixed extends SystemFunction implements StatefulSystemFunction
| Constructor and Description |
|---|
CollatingFunctionFixed() |
| Modifier and Type | Method and Description |
|---|---|
CollatingFunctionFixed |
copy()
Make a copy of this SystemFunction.
|
void |
exportAttributes(ExpressionPresenter out)
Export any context attributes held within the SystemFunction object.
|
AtomicComparer |
getAtomicComparer(XPathContext context)
During evaluation, get the pre-allocated atomic comparer if available, or allocate a new one otherwise
|
AtomicComparer |
getPreAllocatedAtomicComparer()
Get the pre-allocated atomic comparer, if available
|
StringCollator |
getStringCollator()
Get the collation if known statically, as a StringCollator object
|
void |
importAttributes(java.util.Properties attributes)
Import any attributes found in the export file, that is, any attributes output using
the exportAttributes method
|
boolean |
isSubstringMatchingFunction()
Ask whether this function needs a collation that can handle substring matching
|
protected void |
preAllocateComparer(AtomicType type0,
AtomicType type1,
StaticContext env,
boolean NaNequalsNaN)
During static analysis, if types are known and the collation is known, pre-allocate a comparer
for comparing atomic values.
|
void |
setCollationName(java.lang.String collationName) |
void |
setRetainedStaticContext(RetainedStaticContext retainedStaticContext)
Set the static context in which the function operates, for use with functions whose result
depends on the static context
|
dependsOnContextItem, dynamicCall, equals, export, exportAdditionalArguments, fixArguments, getArity, getCardinality, getCompilerName, getContextNode, getDescription, getDetails, getErrorCodeForTypeErrors, getFunctionItemType, getFunctionName, getIntegerBounds, getNetCost, getOperandRoles, getRequiredType, getResultItemType, getResultItemType, getRetainedStaticContext, getSpecialProperties, getStaticBaseUriString, getStreamerName, isTrustedResultType, makeCall, makeFunction, makeFunctionCall, makeOptimizedFunctionCall, resultIfEmpty, setArity, setDetails, supplyTypeInformation, typeCheckCalleratomize, deepEquals, effectiveBooleanValue, getAnnotations, getStringValue, getStringValueCS, isArray, isMap, makeNewContext, simplify, typeCheckgetLength, head, isStreamed, itemAt, iterate, reduce, subsequenceclone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLength, head, itemAt, reduce, subsequencepublic boolean isSubstringMatchingFunction()
public StringCollator getStringCollator()
public void setRetainedStaticContext(RetainedStaticContext retainedStaticContext)
SystemFunctionsetRetainedStaticContext in class SystemFunctionretainedStaticContext - the retained static contextpublic void setCollationName(java.lang.String collationName)
throws XPathException
XPathExceptionprotected void preAllocateComparer(AtomicType type0, AtomicType type1, StaticContext env, boolean NaNequalsNaN)
type0 - the type of the first comparandtype1 - the type of the second comparandenv - the static contextNaNequalsNaN - true if two NaN values are to be considered equalpublic AtomicComparer getPreAllocatedAtomicComparer()
public AtomicComparer getAtomicComparer(XPathContext context)
context - the dynamic evaluation contextpublic void exportAttributes(ExpressionPresenter out)
SystemFunctionexportAttributes in class SystemFunctionout - the export destinationpublic void importAttributes(java.util.Properties attributes)
throws XPathException
SystemFunctionimportAttributes in class SystemFunctionattributes - the attributes, as a properties objectXPathExceptionpublic CollatingFunctionFixed copy()
copy in interface StatefulSystemFunctionCopyright (c) 2004-2018 Saxonica Limited. All rights reserved.