Skip to content

Commit 9522116

Browse files
committed
ApiDoc
1 parent d6319d6 commit 9522116

File tree

1 file changed

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

1 file changed

+14
-3
lines changed

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

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017 - 2018 Volker Berlin (i-net software)
2+
* Copyright 2017 - 2020 Volker Berlin (i-net software)
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -20,9 +20,20 @@
2020
import java.lang.annotation.RetentionPolicy;
2121
import java.lang.annotation.Target;
2222

23-
@Retention(RetentionPolicy.CLASS)
24-
@Target(ElementType.METHOD)
23+
/**
24+
* Mark a function as an export to host environment/JavaScript.
25+
*
26+
* @author Volker Berlin
27+
*
28+
*/
29+
@Retention( RetentionPolicy.CLASS )
30+
@Target( ElementType.METHOD )
2531
public @interface Export {
2632

33+
/**
34+
* The external visible function name. If not set then the method name is used.
35+
*
36+
* @return the name
37+
*/
2738
String name() default "";
2839
}

0 commit comments

Comments
 (0)