class org.springframework.boot.devtools.restart.MainMethod
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.springframework.boot.devtools.restart.MainMethod
super_class: java.lang.Object
{
private final java.lang.reflect.Method method;
descriptor: Ljava/lang/reflect/Method;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokespecial org.springframework.boot.devtools.restart.MainMethod.<init>:(Ljava/lang/Thread;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/boot/devtools/restart/MainMethod;
void <init>(java.lang.Thread);
descriptor: (Ljava/lang/Thread;)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
ldc "Thread must not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
2: aload 0
aload 0
aload 1
invokevirtual org.springframework.boot.devtools.restart.MainMethod.getMainMethod:(Ljava/lang/Thread;)Ljava/lang/reflect/Method;
putfield org.springframework.boot.devtools.restart.MainMethod.method:Ljava/lang/reflect/Method;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/boot/devtools/restart/MainMethod;
0 4 1 thread Ljava/lang/Thread;
MethodParameters:
Name Flags
thread
private java.lang.reflect.Method getMainMethod(java.lang.Thread);
descriptor: (Ljava/lang/Thread;)Ljava/lang/reflect/Method;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=7, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.lang.Thread.getStackTrace:()[Ljava/lang/StackTraceElement;
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 7
StackMap locals: org.springframework.boot.devtools.restart.MainMethod java.lang.Thread top int int java.lang.StackTraceElement[]
StackMap stack:
1: aload 5
iload 3
aaload
astore 2
start local 2 2: ldc "main"
aload 2
invokevirtual java.lang.StackTraceElement.getMethodName:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 6
3: aload 0
aload 2
invokevirtual org.springframework.boot.devtools.restart.MainMethod.getMainMethod:(Ljava/lang/StackTraceElement;)Ljava/lang/reflect/Method;
astore 6
start local 6 4: aload 6
ifnull 6
5: aload 6
areturn
end local 6 end local 2 6: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
7: iload 3
iload 4
if_icmplt 1
8: new java.lang.IllegalStateException
dup
ldc "Unable to find main method"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/springframework/boot/devtools/restart/MainMethod;
0 9 1 thread Ljava/lang/Thread;
2 6 2 element Ljava/lang/StackTraceElement;
4 6 6 method Ljava/lang/reflect/Method;
MethodParameters:
Name Flags
thread
private java.lang.reflect.Method getMainMethod(java.lang.StackTraceElement);
descriptor: (Ljava/lang/StackTraceElement;)Ljava/lang/reflect/Method;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.lang.StackTraceElement.getClassName:()Ljava/lang/String;
invokestatic java.lang.Class.forName:(Ljava/lang/String;)Ljava/lang/Class;
astore 2
start local 2 1: aload 2
ldc "main"
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc [Ljava/lang/String;
aastore
invokevirtual java.lang.Class.getDeclaredMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
astore 3
start local 3 2: aload 3
invokevirtual java.lang.reflect.Method.getModifiers:()I
invokestatic java.lang.reflect.Modifier.isStatic:(I)Z
ifeq 6
3: aload 3
4: areturn
end local 3 end local 2 5: StackMap locals:
StackMap stack: java.lang.Exception
pop
6: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/springframework/boot/devtools/restart/MainMethod;
0 7 1 element Ljava/lang/StackTraceElement;
1 5 2 elementClass Ljava/lang/Class<*>;
2 5 3 method Ljava/lang/reflect/Method;
Exception table:
from to target type
0 4 5 Class java.lang.Exception
MethodParameters:
Name Flags
element
java.lang.reflect.Method getMethod();
descriptor: ()Ljava/lang/reflect/Method;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.boot.devtools.restart.MainMethod.method:Ljava/lang/reflect/Method;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/boot/devtools/restart/MainMethod;
java.lang.String getDeclaringClassName();
descriptor: ()Ljava/lang/String;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.boot.devtools.restart.MainMethod.method:Ljava/lang/reflect/Method;
invokevirtual java.lang.reflect.Method.getDeclaringClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/boot/devtools/restart/MainMethod;
}
SourceFile: "MainMethod.java"