Skip to content

Commit c4f295f

Browse files
committed
support default module and function name
1 parent 5611797 commit c4f295f

File tree

1 file changed

+4
-4
lines changed
  • src/de/inetsoftware/jwebassembly/api/annotation

1 file changed

+4
-4
lines changed

src/de/inetsoftware/jwebassembly/api/annotation/Import.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,18 @@
3131
public @interface Import {
3232

3333
/**
34-
* the module/object name of the import.
34+
* The module/object name of the import. If not set then the simple class name is used.
3535
*
3636
* @return the module name
3737
*/
38-
String module();
38+
String module() default "";
3939

4040
/**
41-
* The function name in the scope of the module.
41+
* The function name in the scope of the module. If not set then the method name is used.
4242
*
4343
* @return the name
4444
*/
45-
String name();
45+
String name() default "";
4646

4747
/**
4848
* The JavaScript replacement. If empty then there must be a same naming object in JavaScript.

0 commit comments

Comments
 (0)