-
Notifications
You must be signed in to change notification settings - Fork 989
Java Conversions
Tom Ball edited this page Feb 26, 2014
·
5 revisions
Here is a map of what J2ObjC translates from Java to Objective-C:
Java | Objective-C |
packages | class naming |
classes | interfaces |
interfaces | protocols plus static variables |
enum | enum translation |
annotations | class instances returned by reflection |
method overloading | embedded parameter types |
static variables and constants | static variables |
inner classes | outer classes (class naming) |
anonymous classes | outer classes (class naming) |
arrays | array emulation |
Object.clone, java.lang.Cloneable | clone support, NSCopying |
synchronized | @synchronized |
try/catch/finally | @try/@catch/@finally |
java.lang.Object | NSObject (extended) |
java.lang.String | NSString (extended) |
java.lang.Number | NSNumber (extended) |
java.lang.Throwable | NSException (extended) |
java.lang.Class | native wrapper around Objective-C Class |
boolean | BOOL |
byte | char |
char | unichar |
double | double |
float | float |
int | int |
long | long long int |
short | short int |
Java serialization | not implemented |
JUnit tests | JUnit translation |