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 AndNode extends BooleanExpressionList implements And { 30 31 35 public AndNode(ArrayList expressions) { 36 _expressions = new ArrayList (); 37 BooleanExpressionList.flattenExpression(expressions, AndNode.class, _expressions); 38 } 39 40 44 public String genText() { 46 if (_expressions==null || _expressions.size()==0) 47 return ""; 49 String res = ((Expression)_expressions.get(0)).genText(); 51 for (int i=1; i<_expressions.size(); i++) 52 res += "\n AND " + ((Expression)_expressions.get(i)).genText(); 54 return res; 55 } 56 57 public String toString() { 58 return ""; } 60 61 } 62 | Popular Tags |