01: /*
02: * Created on 17-Jul-2005
03: *
04: * TODO To change the template for this generated file go to
05: * Window - Preferences - Java - Code Style - Code Templates
06: */
07: package com.jofti.parser;
08:
09: import java.util.Stack;
10:
11: import com.jofti.core.IPredicate;
12:
13: /**
14: *
15: *
16: * A predicate that has nested predictaes within it. Used for (predicate and (sub-predicte or subpredicate)) type structures.
17:
18: *
19: *@author xenephon (xenephon@jofti.com)
20: */
21: public class StackPredicate implements IPredicate {
22:
23: public Stack predicateStack;
24:
25: public String toString() {
26: return predicateStack.toString();
27: }
28:
29: public synchronized Stack getPredicateStack() {
30: return predicateStack;
31: }
32:
33: public synchronized void setPredicateStack(Stack predicateStack) {
34: this .predicateStack = predicateStack;
35: }
36:
37: public int getType() {
38: return 1;
39: }
40:
41: /* (non-Javadoc)
42: * @see com.jofti.core.IPredicate#getField()
43: */
44: public String getField() {
45: // TODO Auto-generated method stub
46: return null;
47: }
48:
49: /* (non-Javadoc)
50: * @see com.jofti.core.IPredicate#getOperator()
51: */
52: public int getOperator() {
53: // TODO Auto-generated method stub
54: return 0;
55: }
56:
57: /* (non-Javadoc)
58: * @see com.jofti.core.IPredicate#getValue()
59: */
60: public Object getValue() {
61: // TODO Auto-generated method stub
62: return null;
63: }
64:
65: /* (non-Javadoc)
66: * @see com.jofti.core.IPredicate#getAlias()
67: */
68: public String getAlias() {
69: // TODO Auto-generated method stub
70: return null;
71: }
72: }
|