buffer.append("Expression expected to have expression string ")
.append(expression.getExpressionString());
}
public boolean matches(Object argument) {
if (argument instanceof Expression) {
Expression e2 = (Expression) argument;
return e2.getExpressionString().equals(expression.getExpressionString());
} else if (argument instanceof ValueBinding) {
ValueBinding binding = (ValueBinding) argument;
return binding.getExpressionString().equals(expression.getExpressionString());
} else if (argument instanceof MethodBinding) {
MethodBinding binding = (MethodBinding) argument;