* @param descr
*/
private void flatten(ReturnValueRestrictionDescr descr,
VerifierComponent parent, int orderNumber) {
ReturnValueRestriction restriction = new ReturnValueRestriction();
restriction.setRuleId(currentRule.getId());
restriction.setRuleName(currentRule.getRuleName());
restriction.setPatternId(currentPattern.getId());
restriction.setPatternIsNot(currentPattern.isPatternNot());
restriction.setConstraintId(currentConstraint.getId());
restriction.setFieldId(currentConstraint.getFieldId());
restriction.setOperator(Operator.determineOperator(
descr.getEvaluator(), descr.isNegated()));
restriction.setClassMethodName(descr.getClassMethodName());
restriction.setContent(descr.getContent());
restriction.setDeclarations(descr.getDeclarations());
restriction.setOrderNumber(orderNumber);
restriction.setParent(parent);
data.add(restriction);
solvers.addRestriction(restriction);
}