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)
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, toShortString, toString, typeCheckCaller
atomize, deepEquals, effectiveBooleanValue, getAnnotations, getStringValue, getStringValueCS, isArray, isMap, makeNewContext, simplify, typeCheck
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
argumentArray, call, getGenre
getLength, head, isStreamed, itemAt, iterate, iterator, reduce, subsequence, toGroundedValue
asIterable, materialize
makeRepeatable
public boolean isSubstringMatchingFunction()
public StringCollator getStringCollator()
public void setRetainedStaticContext(RetainedStaticContext retainedStaticContext)
SystemFunction
setRetainedStaticContext
in class SystemFunction
retainedStaticContext
- the retained static contextpublic void setCollationName(java.lang.String collationName) throws XPathException
XPathException
protected void preAllocateComparer(AtomicType type0, AtomicType type1, StaticContext env)
type0
- the type of the first comparandtype1
- the type of the second comparandenv
- the static contextpublic AtomicComparer getPreAllocatedAtomicComparer()
public AtomicComparer getAtomicComparer(XPathContext context)
context
- the dynamic evaluation contextpublic void exportAttributes(ExpressionPresenter out)
SystemFunction
exportAttributes
in class SystemFunction
out
- the export destinationpublic void importAttributes(java.util.Properties attributes) throws XPathException
SystemFunction
importAttributes
in class SystemFunction
attributes
- the attributes, as a properties objectXPathException
public CollatingFunctionFixed copy()
copy
in interface StatefulSystemFunction
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.