286N/A * reserved comment block 286N/A * DO NOT REMOVE OR ALTER! 286N/A * Copyright 2001-2004 The Apache Software Foundation. 286N/A * Licensed under the Apache License, Version 2.0 (the "License"); 286N/A * you may not use this file except in compliance with the License. 286N/A * You may obtain a copy of the License at 286N/A * Unless required by applicable law or agreed to in writing, software 286N/A * distributed under the License is distributed on an "AS IS" BASIS, 286N/A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 286N/A * See the License for the specific language governing permissions and 286N/A * limitations under the License. 286N/A * @author Jacek Ambroziak 286N/A * @author Santiago Pericas-Geertsen 286N/A * Returns true if this expressions contains a call to position(). This is 286N/A * needed for context changes in node steps containing multiple predicates. 286N/A * Returns true if this expressions contains a call to last() 286N/A //bug fix # 2838, cast to reals if both are result tree fragments 286N/A // If one is of reference type, then convert the other too 286N/A // Ensure that the node-set is the left argument 286N/A // Promote nodes to node sets 286N/A // Promote integer to doubles to have fewer compares 286N/A // Promote result-trees to strings 286N/A // In the node-boolean case, convert node to boolean first 286N/A // Lookup the table of primops to find the best match 286N/A // Call compare() from the BasisLibrary 286N/A // TODO: optimize if one of the args is 0