1 19 package org.netbeans.modules.db.sql.visualeditor.querymodel; 20 21 import java.util.ArrayList ; 22 import java.util.List ; 23 import java.util.Collection ; 24 25 29 public class OrNode extends BooleanExpressionList implements Or { 30 31 public OrNode(ArrayList expressions) { 35 _expressions = new ArrayList (); 36 BooleanExpressionList.flattenExpression(expressions, OrNode.class, _expressions); 37 } 38 39 43 public String genText() { 45 if (_expressions==null) 46 return ""; String res = " ( " + ((Expression)_expressions.get(0)).genText(); 49 for (int i=1; i<_expressions.size(); i++) 50 res += " OR " + ((Expression)_expressions.get(i)).genText(); 52 res += " ) "; 54 return res; 55 } 56 57 public String toString() { 58 return ""; } 60 61 } 62 | Popular Tags |