return from;
}
private AnalyticsAccumulateDescr flatten(AccumulateDescr descr) {
AnalyticsAccumulateDescr accumulate = new AnalyticsAccumulateDescr();
accumulate.setInputPatternId(flatten(descr.getInputPattern()));
accumulate.setInitCode(descr.getInitCode());
accumulate.setActionCode(descr.getActionCode());
accumulate.setReverseCode(descr.getReverseCode());
accumulate.setResultCode(descr.getResultCode());
// XXX: Array seems to be always null.
// accumulate.setDeclarations(descr.getDeclarations());
accumulate.setClassName(descr.getClassName());
accumulate.setExternalFunction(descr.isExternalFunction());
accumulate.setFunctionIdentifier(descr.getFunctionIdentifier());
accumulate.setExpression(descr.getExpression());
return accumulate;
}