rt/core/src/main/java/org/apidesign/bck2brwsr/core/ExtraJavaScript.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Mon, 13 Jan 2014 12:35:56 +0100
branchNbHtml4J
changeset 1430 08ba3c2b9eea
parent 772 d382dacfd73f
child 1787 ea12a3bb4b33
permissions -rw-r--r--
Switching to stable 0.7 of org.netbeans.html APIs
jaroslav@106
     1
/**
jaroslav@106
     2
 * Back 2 Browser Bytecode Translator
jaroslav@106
     3
 * Copyright (C) 2012 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
jaroslav@106
     4
 *
jaroslav@106
     5
 * This program is free software: you can redistribute it and/or modify
jaroslav@106
     6
 * it under the terms of the GNU General Public License as published by
jaroslav@106
     7
 * the Free Software Foundation, version 2 of the License.
jaroslav@106
     8
 *
jaroslav@106
     9
 * This program is distributed in the hope that it will be useful,
jaroslav@106
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
jaroslav@106
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
jaroslav@106
    12
 * GNU General Public License for more details.
jaroslav@106
    13
 *
jaroslav@106
    14
 * You should have received a copy of the GNU General Public License
jaroslav@106
    15
 * along with this program. Look for COPYING file in the top folder.
jaroslav@106
    16
 * If not, see http://opensource.org/licenses/GPL-2.0.
jaroslav@106
    17
 */
jaroslav@91
    18
package org.apidesign.bck2brwsr.core;
jaroslav@91
    19
jaroslav@91
    20
import java.lang.annotation.ElementType;
jaroslav@91
    21
import java.lang.annotation.Retention;
jaroslav@91
    22
import java.lang.annotation.RetentionPolicy;
jaroslav@91
    23
import java.lang.annotation.Target;
jaroslav@91
    24
jaroslav@793
    25
/** A way to include pre-made JavaScript scripts and libraries.
jaroslav@793
    26
 * The {@link #resource()} is loaded into the JavaScript VM and its object
jaroslav@793
    27
 * can be referenced from the class annotated by this annotation.
jaroslav@91
    28
 *
jaroslav@91
    29
 * @author Jaroslav Tulach <jtulach@netbeans.org>
jaroslav@91
    30
 */
jaroslav@91
    31
@Retention(RetentionPolicy.CLASS)
jaroslav@91
    32
@Target(ElementType.TYPE)
jaroslav@91
    33
public @interface ExtraJavaScript {
jaroslav@793
    34
    /** fully qualified location of a script to load. Start the path with slash. */
jaroslav@91
    35
    String resource();
jaroslav@91
    36
    /** should the class file still be processed or not? */
jaroslav@91
    37
    boolean processByteCode() default true;
jaroslav@91
    38
}