|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.expr.Expression net.sf.saxon.expr.FunctionCall net.sf.saxon.functions.SystemFunction net.sf.saxon.functions.CollatingFunction
public abstract class CollatingFunction
Abstract superclass for all functions that take an optional collation argument
Field Summary | |
---|---|
protected StringCollator |
stringCollator
|
Fields inherited from class net.sf.saxon.functions.SystemFunction |
---|
operation |
Fields inherited from class net.sf.saxon.expr.FunctionCall |
---|
argument |
Fields inherited from class net.sf.saxon.expr.Expression |
---|
EVALUATE_METHOD, EVENT_FEED_METHOD, ITEM_FEED_METHOD, ITERATE_METHOD, locationId, PROCESS_METHOD, PUSH_SELECTION, staticProperties, WATCH_METHOD |
Constructor Summary | |
---|---|
CollatingFunction()
|
Method Summary | |
---|---|
void |
checkArguments(ExpressionVisitor visitor)
Method called during static type checking |
Expression |
copy()
Copy an expression. |
String |
getAbsoluteCollationURI()
Get the absolute collation URI if known statically, as a string |
protected GenericAtomicComparer |
getAtomicComparer(int arg,
XPathContext context)
Get a GenericAtomicComparer that can be used to compare values. |
protected StringCollator |
getCollator(int arg,
XPathContext context)
Get a collator suitable for comparing strings. |
URI |
getExpressionBaseURI()
Get the saved static base URI |
StringCollator |
getStringCollator()
Get the collation if known statically, as a StringCollator object |
Methods inherited from class net.sf.saxon.functions.SystemFunction |
---|
addContextDocumentArgument, addDocToPathMap, computeCardinality, computeSpecialProperties, getDetails, getErrorCodeForTypeErrors, getImplementationMethod, getItemType, getRequiredType, makeSystemFunction, optimize, setDetails, useContextItemAsDefault |
Methods inherited from class net.sf.saxon.expr.FunctionCall |
---|
addExternalFunctionCallToPathMap, checkArgumentCount, equals, explain, getArguments, getDisplayName, getExpressionName, getFunctionName, getNumberOfArguments, hashCode, iterateSubExpressions, preEvaluate, promote, replaceSubExpression, setArguments, setFunctionName, simplify, simplifyArguments, toString, typeCheck |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected StringCollator stringCollator
Constructor Detail |
---|
public CollatingFunction()
Method Detail |
---|
public void checkArguments(ExpressionVisitor visitor) throws XPathException
SystemFunction
checkArguments
in class SystemFunction
visitor
- the expression visitor
XPathException
public URI getExpressionBaseURI()
public StringCollator getStringCollator()
public String getAbsoluteCollationURI()
public Expression copy()
copy
in class SystemFunction
protected GenericAtomicComparer getAtomicComparer(int arg, XPathContext context) throws XPathException
The difference between this method and getCollator(int, net.sf.saxon.expr.XPathContext)
is that a
GenericAtomicComparer is capable of comparing values of any atomic type, not only
strings. It is therefore called by functions such as compare, deep-equal, index-of, and
min() and max() where the operands may include a mixture of strings and other types.
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 StringCollator getCollator(int arg, XPathContext context) throws XPathException
getAtomicComparer(int, net.sf.saxon.expr.XPathContext)
)
when it is known that the values to be compared are always strings.
arg
- The argument position (counting from zero) that holds the collation
URI if presentcontext
- The dynamic context
XPathException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |