MethodInvocation methInv = ast.newMethodInvocation();
methInv.setName(methodName);
if (parameter != null)
methInv.arguments().add(parameter);
if (qualifier.equals("this__0")) {
ThisExpression thisExpression = ast.newThisExpression();
// radom
// o this pode ser qualificado ou nao
// Random generator = new Random();
// int value = generator.nextInt(2);
// if (value == 1)
// thisExpression.setQualifier(ast.newSimpleName(classId));
methInv.setExpression(thisExpression);
}
if (qualifier.equals("qthis__0")) {
ThisExpression thisExpression = ast.newThisExpression();
thisExpression.setQualifier(ast.newSimpleName(classId));
methInv.setExpression(thisExpression);
}
result = methInv;
}