ConstraintImpl c = (ConstraintImpl) node.getConstraint();
return new NotConstraint((Constraint) c.accept(this, null));
}
public Object visit(OrImpl node, Object data) throws Exception {
ConstraintImpl left = (ConstraintImpl) node.getConstraint1();
ConstraintImpl right = (ConstraintImpl) node.getConstraint2();
return new OrConstraint((Constraint) left.accept(this, null),
(Constraint) right.accept(this, null));
}