aboutsummaryrefslogtreecommitdiffstats
path: root/tests/base/test109/Foo.java
blob: 8a2a3de38db89d8f207562db57e2eb4afb898b26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
public class Foo {
  private              String  _name;
  private static final int PRIVATECONST            = 1;
  private static       int privateClassVar         = 2;
  private              int privateInstanceVar      = 3;

  protected static     int protectedClassVar       = 4;
  protected            int protectedInstanceVar    = 5;
  
  public    static     int publicClassVar          = 6;
  public               int publicInstanceVar       = 7;

  public    static     int ClassVar                = 8;
  public               int InstanceVar             = 9;

  public void foo() {
      //    System.out.println("running " + this + ".foo()");
  }

  private  static void privateClassMethod() {
      //    System.out.println("in " + "Foo.privateClassMethod()");
  }

  private void privateInstanceMethod() {
      //    System.out.println("in " + this + ".privateInstanceMethod()");
  }

  protected  static  void protectedClassMethod() {
      //    System.out.println("in "  + "Foo.protectedClassMethod()");
  }

  protected  void protectedInstanceMethod() {
      //    System.out.println("in " + this + ".protectedInstanceMethod()");
  }

  public  static void publicClassMethod() {
      //    System.out.println("in " + "Foo.publicClassMethod()");
  }

  public  void publicInstanceMethod() {
      //    System.out.println("in " + this + ".publicInstanceMethod()");
  }

  static void ClassMethod() {
      //    System.out.println("in " + "Foo.ClassMethod()");
  }

  void InstanceMethod() {
      //    System.out.println("in " + this + ".InstanceMethod()");
  }


}