IMLC.ME
/jvm/JVM this 关键词/

JVM this 关键词

package com.example;

public class Main {

    private void something() {}

    public void say() {
        this.something();
    }

}
javap -c -l com.example.Main
Picked up JAVA_TOOL_OPTIONS: -Duser.language=en
Compiled from "Main.java"
public class com.example.Main {
  public com.example.Main();
    Code:
       0: aload_0
       1: invokespecial #1                  // Method java/lang/Object."<init>":()V
       4: return
    LineNumberTable:
      line 5: 0
    LocalVariableTable:
      Start  Length  Slot  Name   Signature
          0       5     0  this   Lcom/example/Main;

  public void say();
    Code:
       0: aload_0
       1: invokevirtual #7                  // Method something:()V
       4: return
    LineNumberTable:
      line 10: 0
      line 11: 4
    LocalVariableTable:
      Start  Length  Slot  Name   Signature
          0       5     0  this   Lcom/example/Main;
}