Enum support?

36 views
Skip to first unread message

Y Bayk

unread,
Mar 21, 2013, 4:13:56 PM3/21/13
to gwtex...@googlegroups.com
Are enums supported?

Would be nice if enums are mapped to Strings (similarly to how interfaces are mapped to js functions via @ExportClosure):

Java:
void foo(MyEnum myEnum);
MyEnum bar();

JS:
void foo(String myEnum);
String bar();

Also ideally, each exported Enum needs to be auto-documented with a set of its available values (perhaps in a method documentation)
Reply all
Reply to author
Forward
0 new messages