示例#1
0
 public BooleanExp replace(String name, BooleanExp exp) {
   return new AndExp(operand1.replace(name, exp), operand2.replace(name, exp));
 }
示例#2
0
 public BooleanExp copy() {
   return new AndExp(operand1.copy(), operand2.copy());
 }
示例#3
0
 public boolean evaluate(Context context) {
   return operand1.evaluate(context) && operand2.evaluate(context);
 }
示例#4
0
 public BooleanExp replace(String name, BooleanExp exp) {
   if (this.name.equals(name)) return exp.copy();
   else return copy();
 }
示例#5
0
 public BooleanExp copy() {
   return new NotExp(exp.copy());
 }
示例#6
0
 public BooleanExp replace(String name, BooleanExp exp) {
   return new NotExp(exp.replace(name, exp));
 }
示例#7
0
 public boolean evaluate(Context context) {
   return !exp.evaluate(context);
 }