From: Wolfgang M. M. <wol...@us...> - 2004-04-16 14:44:33
|
Update of /cvsroot/exist/eXist-1.0/src/org/exist/xquery In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16385/src/org/exist/xquery Modified Files: PathExpr.java Log Message: XQuery parser failed to correctly parse logical operators with complex operands. Index: PathExpr.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/xquery/PathExpr.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** PathExpr.java 21 Feb 2004 17:56:39 -0000 1.2 --- PathExpr.java 16 Apr 2004 14:44:24 -0000 1.3 *************** *** 55,62 **** --- 55,74 ---- } + /** + * Add an arbitrary expression to this object's list of + * child-expressions. + * + * @param s + */ public void add( Expression s ) { steps.add( s ); } + /** + * Add all the child-expressions from another PathExpr + * to this object's child-expressions. + * + * @param path + */ public void add( PathExpr path ) { Expression expr; *************** *** 71,78 **** --- 83,101 ---- } + /** + * Add another PathExpr to this object's expression list. + * @param path + */ public void addPath( PathExpr path ) { steps.add( path ); } + /** + * Add a predicate expression to the list of expressions. + * The predicate is added to the last expression in the + * list. + * + * @param pred + */ public void addPredicate( Predicate pred ) { Expression e = (Expression) steps.getLast(); |