• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package test1;
2 
3 public class ExprEdit7 {
4     int value;
5     Class c1, c2;
6 
ExprEdit7()7     public ExprEdit7() { value = 0; }
8 
k2(Object obj)9     public boolean k2(Object obj) {
10         return obj instanceof ExprEdit7;
11     }
12 
k3(Object obj)13     public ExprEdit7 k3(Object obj) {
14         return (ExprEdit7)obj;
15     }
16 
k1()17     public int k1() {
18         ExprEdit7 e = new ExprEdit7();
19         if (k2(e))
20             k3(e).value = 3;
21         else
22             k3(e).value = 7;
23 
24         System.out.println("ExprEdit7: " + c1.getName());
25         if (c1 == c2 && c1.getName().equals("test1.ExprEdit7"))
26             return e.value;
27         else
28             return e.value - 1;
29     }
30 }
31