jaroslav@1373: /** jaroslav@1373: * Back 2 Browser Bytecode Translator jaroslav@1373: * Copyright (C) 2012 Jaroslav Tulach jaroslav@1373: * jaroslav@1373: * This program is free software: you can redistribute it and/or modify jaroslav@1373: * it under the terms of the GNU General Public License as published by jaroslav@1373: * the Free Software Foundation, version 2 of the License. jaroslav@1373: * jaroslav@1373: * This program is distributed in the hope that it will be useful, jaroslav@1373: * but WITHOUT ANY WARRANTY; without even the implied warranty of jaroslav@1373: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the jaroslav@1373: * GNU General Public License for more details. jaroslav@1373: * jaroslav@1373: * You should have received a copy of the GNU General Public License jaroslav@1373: * along with this program. Look for COPYING file in the top folder. jaroslav@1373: * If not, see http://opensource.org/licenses/GPL-2.0. jaroslav@1373: */ jaroslav@1373: package org.apidesign.vm4brwsr; jaroslav@1373: jaroslav@1373: import java.io.IOException; jaroslav@1373: jaroslav@1373: /** jaroslav@1373: * jaroslav@1373: * @author Jaroslav Tulach jaroslav@1373: */ jaroslav@1373: public class Hello { jaroslav@1373: public static String hello() { jaroslav@1373: return "Hello World!"; jaroslav@1373: } jaroslav@1373: jaroslav@1373: public static Object reloadYourSelf(byte[] arr) throws IOException { jaroslav@1373: org.apidesign.vm4brwsr.api.VM.reload(Hello.class, arr); jaroslav@1373: return null; jaroslav@1373: } jaroslav@1373: }