2 * To change this template, choose Tools | Templates
3 * and open the template in the editor.
5 package org.apidesign.bck2brwsr.core;
7 import java.lang.annotation.ElementType;
8 import java.lang.annotation.Retention;
9 import java.lang.annotation.RetentionPolicy;
10 import java.lang.annotation.Target;
12 /** Put this method on a method in case it should have a special
13 * body in the <em>JavaScript</em>.
15 * @author Jaroslav Tulach <jtulach@netbeans.org>
17 @Retention(RetentionPolicy.CLASS)
18 @Target({ ElementType.METHOD, ElementType.CONSTRUCTOR })
19 public @interface JavaScriptBody {
20 /** Names of parameters for the method.
24 * it will be <code>arg0, arg1, arg2</code>. In case of
25 * instance methods, the <code>arg0</code> is reference
26 * to <code>this</code>.
29 * @return array of the names of parameters for the method
32 public String[] args();
34 /** The actual body of the method in JavaScript. This string will be
35 * put into generated header (ends with '{') and footer (ends with '}').