jaroslav@1409: /** jaroslav@1409: * Back 2 Browser Bytecode Translator jaroslav@1787: * Copyright (C) 2012-2015 Jaroslav Tulach jaroslav@1409: * jaroslav@1409: * This program is free software: you can redistribute it and/or modify jaroslav@1409: * it under the terms of the GNU General Public License as published by jaroslav@1409: * the Free Software Foundation, version 2 of the License. jaroslav@1409: * jaroslav@1409: * This program is distributed in the hope that it will be useful, jaroslav@1409: * but WITHOUT ANY WARRANTY; without even the implied warranty of jaroslav@1409: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the jaroslav@1409: * GNU General Public License for more details. jaroslav@1409: * jaroslav@1409: * You should have received a copy of the GNU General Public License jaroslav@1409: * along with this program. Look for COPYING file in the top folder. jaroslav@1409: * If not, see http://opensource.org/licenses/GPL-2.0. jaroslav@1409: */ jaroslav@1409: package org.apidesign.vm4brwsr; jaroslav@1409: jaroslav@1409: /** jaroslav@1409: * jaroslav@1409: * @author Jaroslav Tulach jaroslav@1409: */ jaroslav@1409: public class Under_Score { jaroslav@1409: public static int under_field = 10; jaroslav@1409: public int instance_field = 5; jaroslav@1409: jaroslav@1409: public static int one() { jaroslav@1409: return 1; jaroslav@1409: } jaroslav@1409: jaroslav@1409: public static int one_plus_one() { jaroslav@1409: return 1 + 1; jaroslav@1409: } jaroslav@1409: jaroslav@1409: public static int two() { jaroslav@1409: return one_plus_one(); jaroslav@1409: } jaroslav@1409: jaroslav@1409: public static int staticField() { jaroslav@1409: return under_field; jaroslav@1409: } jaroslav@1409: jaroslav@1409: public static int instance() { jaroslav@1409: return new Under_Score().get_fld(); jaroslav@1409: } jaroslav@1409: jaroslav@1409: private int get_fld() { jaroslav@1409: return instance_field; jaroslav@1409: } jaroslav@1409: }