rt/vm/src/test/java/org/apidesign/vm4brwsr/LibUse.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Tue, 07 Jun 2016 06:20:20 +0200
branchLibraries
changeset 1965 973e52d4cabb
child 1966 80851e48a68f
permissions -rw-r--r--
Special treatment for net.java.html.lib generated classes
jaroslav@1965
     1
/**
jaroslav@1965
     2
 * Back 2 Browser Bytecode Translator
jaroslav@1965
     3
 * Copyright (C) 2012-2015 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
jaroslav@1965
     4
 *
jaroslav@1965
     5
 * This program is free software: you can redistribute it and/or modify
jaroslav@1965
     6
 * it under the terms of the GNU General Public License as published by
jaroslav@1965
     7
 * the Free Software Foundation, version 2 of the License.
jaroslav@1965
     8
 *
jaroslav@1965
     9
 * This program is distributed in the hope that it will be useful,
jaroslav@1965
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
jaroslav@1965
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
jaroslav@1965
    12
 * GNU General Public License for more details.
jaroslav@1965
    13
 *
jaroslav@1965
    14
 * You should have received a copy of the GNU General Public License
jaroslav@1965
    15
 * along with this program. Look for COPYING file in the top folder.
jaroslav@1965
    16
 * If not, see http://opensource.org/licenses/GPL-2.0.
jaroslav@1965
    17
 */
jaroslav@1965
    18
package org.apidesign.vm4brwsr;
jaroslav@1965
    19
jaroslav@1965
    20
import net.java.html.lib.Exports;
jaroslav@1965
    21
jaroslav@1965
    22
public class LibUse {
jaroslav@1965
    23
    public static int fourtyTwo() {
jaroslav@1965
    24
        Number n = (Number) Exports.eval("6 * 7");
jaroslav@1965
    25
        return n.intValue();
jaroslav@1965
    26
    }
jaroslav@1965
    27
}