1 #ifndef JAVA_JAVAKW_SWG_ 2 #define JAVA_JAVAKW_SWG_ 3 4 /* Warnings for Java keywords */ 5 #define JAVAKW(x) %keywordwarn("'" `x` "' is a java keyword, renaming to '_"`x`"'",rename="_%s") `x` 6 7 /* 8 from 9 http://java.sun.com/docs/books/tutorial/java/nutsandbolts/_keywords.html 10 */ 11 12 JAVAKW(abstract); 13 JAVAKW(double); 14 JAVAKW(int); 15 JAVAKW(strictfp); 16 JAVAKW(boolean); 17 JAVAKW(else); 18 JAVAKW(interface); 19 JAVAKW(super); 20 JAVAKW(break); 21 JAVAKW(extends); 22 JAVAKW(long); 23 JAVAKW(switch); 24 JAVAKW(byte); 25 JAVAKW(final); 26 JAVAKW(native); 27 JAVAKW(synchronized); 28 JAVAKW(case); 29 JAVAKW(finally); 30 JAVAKW(new); 31 JAVAKW(this); 32 JAVAKW(catch); 33 JAVAKW(float); 34 JAVAKW(package); 35 JAVAKW(throw); 36 JAVAKW(char); 37 JAVAKW(for); 38 JAVAKW(private); 39 JAVAKW(throws); 40 JAVAKW(class); 41 JAVAKW(goto); 42 JAVAKW(protected); 43 JAVAKW(transient); 44 JAVAKW(const); 45 JAVAKW(if); 46 JAVAKW(public); 47 JAVAKW(try); 48 JAVAKW(continue); 49 JAVAKW(implements); 50 JAVAKW(return); 51 JAVAKW(void); 52 JAVAKW(default); 53 JAVAKW(import); 54 JAVAKW(short); 55 JAVAKW(volatile); 56 JAVAKW(do); 57 JAVAKW(instanceof); 58 JAVAKW(static); 59 JAVAKW(while); 60 61 62 /* others bad names */ 63 64 /* Note here that only *::clone() is bad, and *::clone(int) is ok */ 65 %namewarn("321:clone() is a java bad method name") *::clone(); 66 67 68 #undef JAVAKW 69 70 #endif //JAVA_JAVAKW_SWG_ 71