rt/vm/src/test/java/org/apidesign/vm4brwsr/Under_Score.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Thu, 07 Nov 2013 09:41:45 +0100
changeset 1409 3d1612be40bc
child 1787 ea12a3bb4b33
permissions -rw-r--r--
_ in class and method names should be manged to _1
jaroslav@1409
     1
/**
jaroslav@1409
     2
 * Back 2 Browser Bytecode Translator
jaroslav@1409
     3
 * Copyright (C) 2012 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
jaroslav@1409
     4
 *
jaroslav@1409
     5
 * This program is free software: you can redistribute it and/or modify
jaroslav@1409
     6
 * it under the terms of the GNU General Public License as published by
jaroslav@1409
     7
 * the Free Software Foundation, version 2 of the License.
jaroslav@1409
     8
 *
jaroslav@1409
     9
 * This program is distributed in the hope that it will be useful,
jaroslav@1409
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
jaroslav@1409
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
jaroslav@1409
    12
 * GNU General Public License for more details.
jaroslav@1409
    13
 *
jaroslav@1409
    14
 * You should have received a copy of the GNU General Public License
jaroslav@1409
    15
 * along with this program. Look for COPYING file in the top folder.
jaroslav@1409
    16
 * If not, see http://opensource.org/licenses/GPL-2.0.
jaroslav@1409
    17
 */
jaroslav@1409
    18
package org.apidesign.vm4brwsr;
jaroslav@1409
    19
jaroslav@1409
    20
/**
jaroslav@1409
    21
 *
jaroslav@1409
    22
 * @author Jaroslav Tulach <jtulach@netbeans.org>
jaroslav@1409
    23
 */
jaroslav@1409
    24
public class Under_Score {
jaroslav@1409
    25
    public static int under_field = 10;
jaroslav@1409
    26
    public int instance_field = 5;
jaroslav@1409
    27
    
jaroslav@1409
    28
    public static int one() {
jaroslav@1409
    29
        return 1;
jaroslav@1409
    30
    }
jaroslav@1409
    31
    
jaroslav@1409
    32
    public static int one_plus_one() {
jaroslav@1409
    33
        return 1 + 1;
jaroslav@1409
    34
    }
jaroslav@1409
    35
    
jaroslav@1409
    36
    public static int two() {
jaroslav@1409
    37
        return one_plus_one();
jaroslav@1409
    38
    }
jaroslav@1409
    39
    
jaroslav@1409
    40
    public static int staticField() {
jaroslav@1409
    41
        return under_field;
jaroslav@1409
    42
    }
jaroslav@1409
    43
    
jaroslav@1409
    44
    public static int instance() {
jaroslav@1409
    45
        return new Under_Score().get_fld();
jaroslav@1409
    46
    }
jaroslav@1409
    47
    
jaroslav@1409
    48
    private int get_fld() {
jaroslav@1409
    49
        return instance_field;
jaroslav@1409
    50
    }
jaroslav@1409
    51
}