< prev index next >

src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/objects/annotations/Constructor.java

Print this page

        

@@ -46,6 +46,11 @@
      * @return the arity of the function. By default computed from the method
      *         signature. Note that -1 means varargs. So, -2 is used as invalid
      *         arity.
      */
     public int arity() default -2;
+
+    /**
+     * @return the documentation string for this constructor.
+     */
+    public String documentation() default "";
 }
< prev index next >