package interpreter; public class NotExp implements BooleanExp { private BooleanExp operand; public NotExp(BooleanExp operand) { super(); this.operand = operand; } return !operand.Evaluate(c); } return new NotExp(operand.Replace(str, exp)); } public BooleanExp Copy() { return new NotExp(operand.Copy()); } }