public abstract class CollatingFunctionFixed extends SystemFunction
Constructor and Description |
---|
CollatingFunctionFixed() |
Modifier and Type | Method and Description |
---|---|
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(Properties attributes)
Import any attributes found in the export file, that is, any attributes output using
the exportAttributes method
|
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(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
|
equals, export, getArity, getCardinality, getContextNode, getDescription, getDetails, getErrorCodeForTypeErrors, getExpressionCompiler, getFunctionItemType, getFunctionName, getIntegerBounds, getOperandRoles, getRequiredType, getResultItemType, getResultItemType, getRetainedStaticContext, getSpecialProperties, getStaticBaseUriString, getStreamingAdjunct, makeCall, makeFunction, makeFunctionCall, makeOptimizedFunctionCall, resultIfEmpty, setArity, setDetails, supplyTypeInformation, typeCheckCaller
atomize, deepEquals, effectiveBooleanValue, getStringValue, getStringValueCS, isArray, isMap, optimize, simplify, typeCheck
getLength, head, itemAt, iterate, reduce, subsequence
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLength, head, itemAt, reduce, subsequence
public StringCollator getStringCollator()
public void setRetainedStaticContext(RetainedStaticContext retainedStaticContext)
SystemFunction
setRetainedStaticContext
in class SystemFunction
retainedStaticContext
- the retained static contextpublic void setCollationName(String collationName) throws XPathException
XPathException
protected 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)
SystemFunction
exportAttributes
in class SystemFunction
out
- the export destinationpublic void importAttributes(Properties attributes) throws XPathException
SystemFunction
importAttributes
in class SystemFunction
attributes
- the attributes, as a properties objectXPathException
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.