String methodDeclarationSource= iMethod.getCompilationUnit().getBuffer().getText(offset, length); if (methodDeclaration.getBody() == null) return methodDeclarationSource; else return methodDeclarationSource + ";";
StringBuffer methodDeclarationSource= new StringBuffer(iMethod.getCompilationUnit().getBuffer().getText(methodDeclarationOffset, length));  if (methodDeclaration.getBody() != null) methodDeclarationSource.append(";");  if (fUpdatedTypeReferenceNodes != null) replaceReferencesInMethodDeclaration(methodDeclaration, methodDeclarationOffset, methodDeclarationSource); return methodDeclarationSource.toString();
	private String createInterfaceMethodDeclarationsSource(IMethod iMethod) throws JavaModelException {		MethodDeclaration methodDeclaration= getMethodDeclarationNode(iMethod);		if (methodDeclaration == null)			return ""; 			int offset= methodDeclaration.getReturnType().getStartPosition();		int length= getMethodDeclarationLength(iMethod, methodDeclaration);		String methodDeclarationSource= iMethod.getCompilationUnit().getBuffer().getText(offset, length);		if (methodDeclaration.getBody() == null)			return methodDeclarationSource;		else			return methodDeclarationSource + ";";	}