KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tonbeller > wcf > param > SqlExprWithOperands


1 package com.tonbeller.wcf.param;
2
3 import java.util.ArrayList JavaDoc;
4 import java.util.List JavaDoc;
5
6 /**
7  * @author av
8  * @since 31.01.2005
9  */

10 abstract class SqlExprWithOperands implements SqlExpr {
11   ArrayList JavaDoc opds = new ArrayList JavaDoc();
12   public void addOperand(SqlExpr exp) {
13     opds.add(exp);
14   }
15   public List JavaDoc getOperands() {
16     return opds;
17   }
18   public Object JavaDoc clone() throws CloneNotSupportedException JavaDoc {
19     SqlExprWithOperands p = (SqlExprWithOperands) super.clone();
20     p.opds = (ArrayList JavaDoc) opds.clone();
21     return p;
22   }
23 }
24
Popular Tags