* @return the AtomicComparer already allocated if one has been allocated at compile time; otherwise
* allocate one from knowledge of the collation at run-time
*/
public AtomicComparer makeAtomicComparer(XPathContext context) throws XPathException {
AtomicComparer comp = atomicComparer;
if (comp == null) {
int type = argument[0].getItemType(context.getConfiguration().getTypeHierarchy()).getPrimitiveType();
comp = makeAtomicSortComparer(type, context);
} else {
comp = comp.provideContext(context);
}
return comp;
}