public abstract class CollatingFunction extends SystemFunction
Modifier and Type | Field and Description |
---|---|
protected XPathContext |
conversionContext |
operation
argument
locationId, staticProperties
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD
Constructor and Description |
---|
CollatingFunction() |
Modifier and Type | Method and Description |
---|---|
void |
checkArguments(StaticContext env)
Method called during static type checking
|
protected AtomicComparer |
getAtomicComparer(int arg,
XPathContext context)
Get a AtomicComparer that can be used to compare values
|
protected Comparator |
getCollator(int arg,
XPathContext context)
Get a collator suitable for comparing strings.
|
void |
preEvaluateCollation(StaticContext env)
Pre-evaluate the collation argument if its value is known statically
|
addContextDocumentArgument, computeCardinality, computeSpecialProperties, display, getDetails, getErrorCodeForTypeErrors, getItemType, getRequiredType, main, makeSystemFunction, setDetails, useContextItemAsDefault
checkArgumentCount, getDisplayName, getFunctionNameCode, getNumberOfArguments, iterateSubExpressions, optimize, preEvaluate, promote, setArguments, setFunctionNameCode, simplify, simplifyArguments, typeCheck
adoptChildExpression, checkPermittedContents, computeDependencies, computeStaticProperties, doPromotion, dynamicError, dynamicError, effectiveBooleanValue, evaluateAsString, evaluateItem, getCardinality, getColumnNumber, getConstructType, getDependencies, getExecutable, getHostLanguage, getImplementationMethod, getInstructionInfo, getIntrinsicDependencies, getLineNumber, getLocationId, getLocationProvider, getParentExpression, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, hasBadParentPointer, iterate, markTailFunctionCalls, process, resetStaticProperties, setLocationId, setParentExpression, suppressValidation, typeError, typeError
protected XPathContext conversionContext
public void checkArguments(StaticContext env) throws XPathException
SystemFunction
checkArguments
in class SystemFunction
XPathException
public void preEvaluateCollation(StaticContext env) throws XPathException
XPathException
protected AtomicComparer getAtomicComparer(int arg, XPathContext context) throws XPathException
arg
- the position of the argument (starting at 0) containing the collation name.
If this argument was not supplied, the default collation is usedcontext
- The dynamic evaluation context.XPathException
protected Comparator getCollator(int arg, XPathContext context) throws XPathException
arg
- The argument position (counting from zero) that holds the collation
URI if presentcontext
- The dynamic contextXPathException