if (classExpr != null && ast != null)
{
throw new RuntimeException("You cannot define both a class and expr attribute in the same <arrayreplacement>");
}
ArrayReplacement pcut = null;
if (classExpr != null)
{
pcut = new ArrayReplacement(name, classExpr);
}
else
{
ASTStart start = new TypeExpressionParser(new StringReader(ast)).Start();
pcut = new ArrayReplacement(name, start);
}
manager.addArrayReplacement(pcut);
}