نام روش ها را می توان با استفاده از پرچم --mapping تغییر داد، که یک فایل خصوصیات با نگاشت ها را برای استفاده می گیرد. نگاشت هر روش با امضای کامل متد جاوا برای کلید و مقدار انتخابگر Objective-C تعریف می شود. برای مثال، خط نگاشت Object.equals() به NSObject.isEqual: است:
اعلان دست چپ امضای روش کامل است، همانطور که توسط مشخصات ماشین مجازی جاوا تعریف شده است . تعریف دست راست شامل انتخابگر iOS است (یعنی آنچه را که به @selector() ارسال می کنید). متد و نگاشت آن باید تعداد پارامترهای یکسانی داشته باشد.
به عنوان مثال دیگر، این خط معادل مثال در بخش قبل است:
تاریخ آخرین بهروزرسانی 2024-11-10 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 2024-11-10 بهوقت ساعت هماهنگ جهانی."],[[["The `@ObjectiveCName` annotation allows developers to rename Java methods and their overrides within the translated Objective-C code."],["Method renaming can also be accomplished using mapping files specified with the `--mapping` flag during translation, providing an alternative to annotations."],["Mapping files utilize a key-value structure where the key is the Java method signature and the value is the desired Objective-C selector, ensuring both have the same parameter count."]]],["The `@ObjectiveCName` annotation renames Java methods in their Objective-C translation. The annotation's string value defines the desired Objective-C selector, excluding parameter types and names. Alternatively, the `--mapping` flag utilizes a properties file to map Java method signatures to Objective-C selectors. Each mapping specifies the full Java method signature on the left and the Objective-C selector on the right. Multiple mapping files can be provided. Mapped methods must have the same number of parameters.\n"]]