static void replaceSuffixes(Expression expression)
{
if (expression instanceof BinaryOperatorExpression)
{
BinaryOperatorExpression boe = (BinaryOperatorExpression) expression;
replaceSuffixes(boe.getExpression());
for (int i = 0; i < boe.getExpressions().size(); i++)
{
replaceSuffixes(boe.getExpressions().get(i));
}
}
else if (expression instanceof ComplexValue)
{
replaceSuffixes((ComplexValue) expression);