1 5 package com.opensymphony.workflow.query; 6 7 8 18 public class NestedExpression extends Expression { 19 21 25 public final static int AND = 6; 26 27 31 public final static int OR = 7; 32 33 35 private Expression[] expressions = null; 36 private int expressionOperator = AND; 37 38 40 public NestedExpression() { 41 } 42 43 48 public NestedExpression(Expression[] expressions, int operator) { 49 this.expressions = expressions; 50 this.expressionOperator = operator; 51 } 52 53 55 public Expression getExpression(int index) { 56 return expressions[index]; 57 } 58 59 62 public int getExpressionCount() { 63 return expressions.length; 64 } 65 66 public void setExpressionOperator(int expressionOperator) { 67 this.expressionOperator = expressionOperator; 68 } 69 70 74 public int getExpressionOperator() { 75 return this.expressionOperator; 76 } 77 78 public void setExpressions(Expression[] expressions) { 79 this.expressions = expressions; 80 } 81 82 public boolean isNested() { 83 return true; 84 } 85 } 86 | Popular Tags |