opendap/src/main/java/opendap/servers/RelOpClause.java
public void printConstraint(PrintWriter os)
    {
        lhs.printConstraint(os);
        String op = ExprParserConstants.tokenImage[operator];
        op = op.substring(1, op.length() - 1);
        os.print(op);
        //os.print(ExprParserConstants.tokenImage[operator].substring(2, 3));
        if (rhs.size() == 1) {
            ((ValueClause)rhs.get(0)).printConstraint(os);
        } else {
            os.print("{");
            Iterator it = rhs.iterator();
	    boolean first = true;
            while (it.hasNext()) {
                if(!first) os.print(",");
	        ((ValueClause)it.next()).printConstraint(os);
		first = false;
            }
            os.print("}");
        }
    }
public void printConstraint(PrintWriter os)
    {
        lhs.printConstraint(os);
        String op = ExprParserConstants.tokenImage[operator];
        op = op.substring(1, op.length() - 1);
        os.print(op);
        //os.print(ExprParserConstants.tokenImage[operator].substring(2, 3));
        if (rhs.size() == 1) {
            ((ValueClause)rhs.get(0)).printConstraint(os);
        } else {
            os.print("{");
            Iterator it = rhs.iterator();
	    boolean first = true;
            while (it.hasNext()) {
                if(!first) os.print(",");
	        ((ValueClause)it.next()).printConstraint(os);
		first = false;
            }
            os.print("}");
        }
    }
public void printConstraint ( PrintWriter os ) { lhs . printConstraint ( os ) ; String op = ExprParserConstants . tokenImage [ operator ] ; op = op . substring ( 1 , op . length ( ) - 1 ) ; os . print ( op ) ; //os.print(ExprParserConstants.tokenImage[operator].substring(2, 3)); if ( rhs . size ( ) == 1 ) { ( ( ValueClause ) rhs . get ( 0 ) ) . printConstraint ( os ) ; } else { os . print ( "{" ) ; Iterator it = rhs . iterator ( ) ; boolean first = true ; while ( it . hasNext ( ) ) { if ( ! first ) os . print ( "," ) ; ( ( ValueClause ) it . next ( ) ) . printConstraint ( os ) ; first = false ; } os . print ( "}" ) ; } }
Prints the original string representation of this clause.
For use in debugging.
Prints the original string representation of this clause . For use in debugging .