build( context,
pattern,
(PredicateDescr) constraint,
container );
} else if ( constraint instanceof AndDescr ) {
AndConstraint and = new AndConstraint();
for ( Iterator it = ((AndDescr) constraint).getDescrs().iterator(); it.hasNext(); ) {
this.buildConstraint( context,
pattern,
it.next(),
and );
}
if ( container == null ) {
pattern.addConstraint( and );
} else {
if ( and.getType().equals( Constraint.ConstraintType.UNKNOWN ) ) {
this.setConstraintType( pattern,
(MutableTypeConstraint) and );
}
container.addConstraint( and );
}