MethodInvocation replacement= original.getAST().newMethodInvocation(); replacement.setExpression(original.getAST().newSimpleName(name)); replacement.setName(original.getAST().newSimpleName(original.getName().getIdentifier())); fRewrite.markAsReplaced(original, replacement);
Expression newExpression= original.getAST().newSimpleName(name); Assert.isTrue(original.getExpression() == null); original.setExpression(newExpression); fRewrite.markAsInserted(newExpression);
			private boolean replaceImplicitThisInMethodInvocationsWith(String name) {				MethodInvocation[] methodInvocations= fMethod.getImplicitThisMethodInvocations();				for(int i= 0; i < methodInvocations.length; i++) {					MethodInvocation original= methodInvocations[i];					MethodInvocation replacement= original.getAST().newMethodInvocation();					replacement.setExpression(original.getAST().newSimpleName(name));					replacement.setName(original.getAST().newSimpleName(original.getName().getIdentifier()));					fRewrite.markAsReplaced(original, replacement);				}				return methodInvocations.length != 0;			}