public class io.vertx.core.impl.verticle.JavaSourceContext
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.core.impl.verticle.JavaSourceContext
super_class: java.lang.Object
{
private final java.lang.String className;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.io.File sourceRoot;
descriptor: Ljava/io/File;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(java.io.File);
descriptor: (Ljava/io/File;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
invokestatic io.vertx.core.impl.verticle.JavaSourceContext.parsePackage:(Ljava/io/File;)Ljava/lang/String;
astore 2
start local 2 2: aload 1
invokevirtual java.io.File.getParentFile:()Ljava/io/File;
astore 3
start local 3 3: aload 2
ifnull 13
4: aload 2
ldc "\\."
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
astore 4
start local 4 5: aload 4
arraylength
iconst_1
isub
istore 5
start local 5 6: goto 12
7: StackMap locals: io.vertx.core.impl.verticle.JavaSourceContext java.io.File java.lang.String java.io.File java.lang.String[] int
StackMap stack:
aload 4
iload 5
aaload
astore 6
start local 6 8: aload 6
aload 3
invokevirtual java.io.File.getName:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 10
9: new java.lang.RuntimeException
dup
new java.lang.StringBuilder
dup
ldc "Package structure does not match directory structure: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 6
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " != "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3
invokevirtual java.io.File.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
10: StackMap locals: java.lang.String
StackMap stack:
aload 3
invokevirtual java.io.File.getParentFile:()Ljava/io/File;
astore 3
end local 6 11: iinc 5 -1
StackMap locals:
StackMap stack:
12: iload 5
ifge 7
end local 5 end local 4 13: StackMap locals:
StackMap stack:
aload 0
aload 3
putfield io.vertx.core.impl.verticle.JavaSourceContext.sourceRoot:Ljava/io/File;
14: aload 1
invokevirtual java.io.File.getName:()Ljava/lang/String;
astore 4
start local 4 15: aload 4
iconst_0
aload 4
invokevirtual java.lang.String.length:()I
getstatic javax.tools.JavaFileObject$Kind.SOURCE:Ljavax/tools/JavaFileObject$Kind;
getfield javax.tools.JavaFileObject$Kind.extension:Ljava/lang/String;
invokevirtual java.lang.String.length:()I
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 5
start local 5 16: aload 2
ifnull 18
17: new java.lang.StringBuilder
dup
aload 2
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
bipush 46
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 5
18: StackMap locals: java.lang.String java.lang.String
StackMap stack:
aload 0
aload 5
putfield io.vertx.core.impl.verticle.JavaSourceContext.className:Ljava/lang/String;
19: return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lio/vertx/core/impl/verticle/JavaSourceContext;
0 20 1 file Ljava/io/File;
2 20 2 packageName Ljava/lang/String;
3 20 3 rootDirectory Ljava/io/File;
5 13 4 pathTokens [Ljava/lang/String;
6 13 5 i I
8 11 6 token Ljava/lang/String;
15 20 4 fileName Ljava/lang/String;
16 20 5 className Ljava/lang/String;
MethodParameters:
Name Flags
file
public java.io.File getSourceRoot();
descriptor: ()Ljava/io/File;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.core.impl.verticle.JavaSourceContext.sourceRoot:Ljava/io/File;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/impl/verticle/JavaSourceContext;
public java.lang.String getClassName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.core.impl.verticle.JavaSourceContext.className:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/impl/verticle/JavaSourceContext;
private static java.lang.String parsePackage(java.io.File);
descriptor: (Ljava/io/File;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=7, args_size=1
start local 0 0: new java.lang.String
dup
aload 0
invokevirtual java.io.File.toPath:()Ljava/nio/file/Path;
invokestatic java.nio.file.Files.readAllBytes:(Ljava/nio/file/Path;)[B
getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
invokespecial java.lang.String.<init>:([BLjava/nio/charset/Charset;)V
astore 1
start local 1 1: aload 1
ldc "//.*|(\"(?:\\\\[^\"]|\\\\\"|.)*?\")|(?s)/\\*.*?\\*/"
ldc "$1 "
invokevirtual java.lang.String.replaceAll:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 1
2: aload 1
ldc "\\r?\\n"
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 12
StackMap locals: java.io.File java.lang.String top int int java.lang.String[]
StackMap stack:
3: aload 5
iload 3
aaload
astore 2
start local 2 4: aload 2
invokevirtual java.lang.String.trim:()Ljava/lang/String;
astore 2
5: aload 2
invokevirtual java.lang.String.isEmpty:()Z
ifne 11
6: aload 2
ldc "package "
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
istore 6
start local 6 7: iload 6
iconst_m1
if_icmpeq 10
8: aload 2
aload 2
bipush 32
iload 6
invokevirtual java.lang.String.indexOf:(II)I
aload 2
bipush 59
iload 6
invokevirtual java.lang.String.indexOf:(II)I
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokevirtual java.lang.String.trim:()Ljava/lang/String;
9: areturn
10: StackMap locals: java.io.File java.lang.String java.lang.String int int java.lang.String[] int
StackMap stack:
aconst_null
areturn
end local 6 end local 2 11: StackMap locals: java.io.File java.lang.String top int int java.lang.String[]
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
12: iload 3
iload 4
if_icmplt 3
13: aconst_null
areturn
end local 1 14: StackMap locals: java.io.File
StackMap stack: java.io.IOException
astore 1
start local 1 15: new java.lang.RuntimeException
dup
aload 1
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 file Ljava/io/File;
1 14 1 source Ljava/lang/String;
4 11 2 line Ljava/lang/String;
7 11 6 idx I
15 16 1 e Ljava/io/IOException;
Exception table:
from to target type
0 9 14 Class java.io.IOException
11 13 14 Class java.io.IOException
MethodParameters:
Name Flags
file
}
SourceFile: "JavaSourceContext.java"
InnerClasses:
public final Kind = javax.tools.JavaFileObject$Kind of javax.tools.JavaFileObject