PageRenderTime 23ms CodeModel.GetById 16ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Lib/java/javakw.swg

#
Unknown | 70 lines | 61 code | 9 blank | 0 comment | 0 complexity | 347b505977ce1671ab229c64368275dc MD5 | raw file
 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
12JAVAKW(abstract);
13JAVAKW(double);
14JAVAKW(int);
15JAVAKW(strictfp);
16JAVAKW(boolean);
17JAVAKW(else);
18JAVAKW(interface);
19JAVAKW(super);
20JAVAKW(break);
21JAVAKW(extends);	
22JAVAKW(long);	
23JAVAKW(switch);
24JAVAKW(byte);	
25JAVAKW(final);	
26JAVAKW(native);	
27JAVAKW(synchronized);
28JAVAKW(case);	
29JAVAKW(finally);	
30JAVAKW(new);	
31JAVAKW(this);
32JAVAKW(catch);	
33JAVAKW(float);	
34JAVAKW(package);	
35JAVAKW(throw);
36JAVAKW(char);	
37JAVAKW(for);	
38JAVAKW(private);	
39JAVAKW(throws);
40JAVAKW(class);	
41JAVAKW(goto); 	
42JAVAKW(protected);	
43JAVAKW(transient);
44JAVAKW(const); 	
45JAVAKW(if);	
46JAVAKW(public);	
47JAVAKW(try);
48JAVAKW(continue);	
49JAVAKW(implements);	
50JAVAKW(return);	
51JAVAKW(void);
52JAVAKW(default);	
53JAVAKW(import);	
54JAVAKW(short);	
55JAVAKW(volatile);
56JAVAKW(do);	
57JAVAKW(instanceof);	
58JAVAKW(static);	
59JAVAKW(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_