???Java?????Ч????private???η?
???????????? ???????[ 2015/7/9 11:10:14 ] ??????????????????? ???????
??????????????OuterClass?????????ж?????????????
????static java.lang.String access$0(OuterClass);
????Code:
????0: aload_0
????1: getfield #15; //Field language:Ljava/lang/String;
????4: areturn
????static java.lang.String access$1(OuterClass);
????Code:
????0: aload_0
????1: getfield #19; //Field region:Ljava/lang/String;
????4: areturn
????}
??????????????????????access$0????outerClass??language?????access$1????outerClass??region?????????????????????????OuterClass????????????????????????????????????????????????????????????????????????
????OuterClass$InnerClass?????????
15:37 $ javap -c OuterClass$InnerClass
Compiled from "OuterClass.java"
public class OuterClass$InnerClass extends java.lang.Object{
final OuterClass this$0;
public OuterClass$InnerClass(OuterClass);
Code:
0: aload_0
1: aload_1
2: putfield #10; //Field this$0:LOuterClass;
5: aload_0
6: invokespecial #12; //Method java/lang/Object."<init>":()V
9: return
public void printOuterClassPrivateFields();
Code:
0: new #20; //class java/lang/StringBuilder
3: dup
4: ldc #22; //String language=
6: invokespecial #24; //Method java/lang/StringBuilder."<init>":(Ljava/lang/String;)V
9: aload_0
10: getfield #10; //Field this$0:LOuterClass;
13: invokestatic #27; //Method OuterClass.access$0:(LOuterClass;)Ljava/lang/String;
16: invokevirtual #33; //Method java/lang/StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
19: ldc #37; //String ;region=
21: invokevirtual #33; //Method java/lang/StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
24: aload_0
25: getfield #10; //Field this$0:LOuterClass;
28: invokestatic #39; //Method OuterClass.access$1:(LOuterClass;)Ljava/lang/String;
31: invokevirtual #33; //Method java/lang/StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
34: invokevirtual #42; //Method java/lang/StringBuilder.toString:()Ljava/lang/String;
37: astore_1
38: getstatic #46; //Field java/lang/System.out:Ljava/io/PrintStream;
41: aload_1
42: invokevirtual #52; //Method java/io/PrintStream.println:(Ljava/lang/String;)V
45: return
}
??????????????access$0??????????????OuterClass??language ????????
????13: invokestatic #27; //Method OuterClass.access$0:(LOuterClass;)Ljava/lang/String;
????????????????access$1??????????????OutherClass??region ????????
????28: invokestatic #39; //Method OuterClass.access$1:(LOuterClass;)Ljava/lang/String;
??????????????????????????????????????????????????????????????????????????????????????á?
????this$0?????????е??????????????????????????ò??????
????final OuterClass this$0;
????public OuterClass$InnerClass(OuterClass);
????Code:
????0: aload_0
????1: aload_1
????2: putfield #10; //Field this$0:LOuterClass;
????5: aload_0
????6: invokespecial #12; //Method java/lang/Object."<init>":()V
????9: return
????С??
????????private??????Ч?????????????Ч?????????????????????????????????????????????????????????????????????????acess$0??access$1??????????Щ???????????ж?????????????????
?????????Ч??
?????????????д?????????????????д??????????????????????????С?
????public class AnotherOuterClass {
????public static void main(String[] args) {
????InnerClass inner = new AnotherOuterClass().new InnerClass();
????System.out.println("InnerClass Filed = " + inner.x);
????}
????class InnerClass {
????private int x = 10;
????}
????}
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
Java???????????Щ???????????????Java????????????????Java?б???Map????????Java Web???????????????Java??????????????д?????Java????????7???????????????????????(java .net ?????)???Java??????????Python??????Java webdriver??λ????????′????е?????Java??д??????????????????Java???????????????JavaScript????????????Java?????????????????? Java???????10??????????????Java?м????????????????java???????ü???????????м???????????????????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????