public class io.vertx.core.impl.verticle.PackageHelper
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.core.impl.verticle.PackageHelper
super_class: java.lang.Object
{
private static final java.lang.String CLASS_FILE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: ".class"
private final java.lang.ClassLoader classLoader;
descriptor: Ljava/lang/ClassLoader;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(java.lang.ClassLoader);
descriptor: (Ljava/lang/ClassLoader;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield io.vertx.core.impl.verticle.PackageHelper.classLoader:Ljava/lang/ClassLoader;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/core/impl/verticle/PackageHelper;
0 3 1 classLoader Ljava/lang/ClassLoader;
MethodParameters:
Name Flags
classLoader
public java.util.List<javax.tools.JavaFileObject> find(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=7, args_size=2
start local 0 start local 1 0: aload 1
ldc "\\."
ldc "/"
invokevirtual java.lang.String.replaceAll:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 1: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 3
start local 3 2: aload 0
getfield io.vertx.core.impl.verticle.PackageHelper.classLoader:Ljava/lang/ClassLoader;
aload 2
invokevirtual java.lang.ClassLoader.getResources:(Ljava/lang/String;)Ljava/util/Enumeration;
astore 4
start local 4 3: goto 10
4: StackMap locals: java.lang.String java.util.List java.util.Enumeration
StackMap stack:
aload 4
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast java.net.URL
astore 5
start local 5 5: new java.io.File
dup
aload 5
invokevirtual java.net.URL.getFile:()Ljava/lang/String;
iconst_0
invokestatic io.vertx.core.net.impl.URIDecoder.decodeURIComponent:(Ljava/lang/String;Z)Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 6
start local 6 6: aload 6
invokevirtual java.io.File.isDirectory:()Z
ifeq 9
7: aload 3
aload 1
aload 6
invokestatic io.vertx.core.impl.verticle.PackageHelper.browseDir:(Ljava/lang/String;Ljava/io/File;)Ljava/util/List;
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
8: goto 10
9: StackMap locals: java.net.URL java.io.File
StackMap stack:
aload 3
aload 5
invokestatic io.vertx.core.impl.verticle.PackageHelper.browseJar:(Ljava/net/URL;)Ljava/util/List;
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
end local 6 end local 5 10: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 4
11: aload 3
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lio/vertx/core/impl/verticle/PackageHelper;
0 12 1 packageName Ljava/lang/String;
1 12 2 javaPackageName Ljava/lang/String;
2 12 3 result Ljava/util/List<Ljavax/tools/JavaFileObject;>;
3 12 4 urlEnumeration Ljava/util/Enumeration<Ljava/net/URL;>;
5 10 5 resource Ljava/net/URL;
6 10 6 directory Ljava/io/File;
Exceptions:
throws java.io.IOException
Signature: (Ljava/lang/String;)Ljava/util/List<Ljavax/tools/JavaFileObject;>;
MethodParameters:
Name Flags
packageName
private static java.util.List<javax.tools.JavaFileObject> browseDir(java.lang.String, java.io.File);
descriptor: (Ljava/lang/String;Ljava/io/File;)Ljava/util/List;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=8, args_size=2
start local 0 start local 1 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 1: aload 1
invokevirtual java.io.File.listFiles:()[Ljava/io/File;
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 7
StackMap locals: java.lang.String java.io.File java.util.List top int int java.io.File[]
StackMap stack:
2: aload 6
iload 4
aaload
astore 3
start local 3 3: aload 3
invokevirtual java.io.File.isFile:()Z
ifeq 6
aload 3
invokevirtual java.io.File.getName:()Ljava/lang/String;
ldc ".class"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 6
4: new java.lang.StringBuilder
dup
aload 0
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3
invokevirtual java.io.File.getName:()Ljava/lang/String;
ldc ".class$"
ldc ""
invokevirtual java.lang.String.replaceAll:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 7
start local 7 5: aload 2
new io.vertx.core.impl.verticle.CustomJavaFileObject
dup
aload 3
invokevirtual java.io.File.toURI:()Ljava/net/URI;
getstatic javax.tools.JavaFileObject$Kind.CLASS:Ljavax/tools/JavaFileObject$Kind;
aload 7
invokespecial io.vertx.core.impl.verticle.CustomJavaFileObject.<init>:(Ljava/net/URI;Ljavax/tools/JavaFileObject$Kind;Ljava/lang/String;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 7 end local 3 6: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
7: iload 4
iload 5
if_icmplt 2
8: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 packageName Ljava/lang/String;
0 9 1 directory Ljava/io/File;
1 9 2 result Ljava/util/List<Ljavax/tools/JavaFileObject;>;
3 6 3 childFile Ljava/io/File;
5 6 7 binaryName Ljava/lang/String;
Signature: (Ljava/lang/String;Ljava/io/File;)Ljava/util/List<Ljavax/tools/JavaFileObject;>;
MethodParameters:
Name Flags
packageName
directory
private static java.util.List<javax.tools.JavaFileObject> browseJar(java.net.URL);
descriptor: (Ljava/net/URL;)Ljava/util/List;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=10, args_size=1
start local 0 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 1
start local 1 1: aload 0
invokevirtual java.net.URL.toExternalForm:()Ljava/lang/String;
ldc "!"
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
iconst_0
aaload
astore 2
start local 2 2: aload 0
invokevirtual java.net.URL.openConnection:()Ljava/net/URLConnection;
checkcast java.net.JarURLConnection
astore 3
start local 3 3: aload 3
invokevirtual java.net.JarURLConnection.getEntryName:()Ljava/lang/String;
astore 4
start local 4 4: aload 4
invokevirtual java.lang.String.length:()I
iconst_1
iadd
istore 5
start local 5 5: aload 3
invokevirtual java.net.JarURLConnection.getJarFile:()Ljava/util/jar/JarFile;
invokevirtual java.util.jar.JarFile.entries:()Ljava/util/Enumeration;
astore 6
start local 6 6: goto 12
7: StackMap locals: java.net.URL java.util.List java.lang.String java.net.JarURLConnection java.lang.String int java.util.Enumeration
StackMap stack:
aload 6
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast java.util.jar.JarEntry
astore 7
start local 7 8: aload 7
invokevirtual java.util.jar.JarEntry.getName:()Ljava/lang/String;
astore 8
start local 8 9: aload 8
aload 4
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 12
aload 8
bipush 47
iload 5
invokevirtual java.lang.String.indexOf:(II)I
iconst_m1
if_icmpne 12
aload 8
ldc ".class"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 12
10: aload 8
ldc "/"
ldc "."
invokevirtual java.lang.String.replaceAll:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
ldc ".class$"
ldc ""
invokevirtual java.lang.String.replaceAll:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 9
start local 9 11: aload 1
new io.vertx.core.impl.verticle.CustomJavaFileObject
dup
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
ldc "!/"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 8
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic java.net.URI.create:(Ljava/lang/String;)Ljava/net/URI;
getstatic javax.tools.JavaFileObject$Kind.CLASS:Ljavax/tools/JavaFileObject$Kind;
aload 9
invokespecial io.vertx.core.impl.verticle.CustomJavaFileObject.<init>:(Ljava/net/URI;Ljavax/tools/JavaFileObject$Kind;Ljava/lang/String;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 9 end local 8 end local 7 12: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 7
end local 6 end local 5 end local 4 end local 3 end local 2 13: goto 16
StackMap locals: java.net.URL java.util.List
StackMap stack: java.lang.Exception
14: astore 2
start local 2 15: new java.lang.RuntimeException
dup
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " is not a JAR file"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 2
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 16: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 packageFolderURL Ljava/net/URL;
1 17 1 result Ljava/util/List<Ljavax/tools/JavaFileObject;>;
2 13 2 jarUri Ljava/lang/String;
3 13 3 jarConn Ljava/net/JarURLConnection;
4 13 4 rootEntryName Ljava/lang/String;
5 13 5 rootEnd I
6 13 6 entryEnum Ljava/util/Enumeration<Ljava/util/jar/JarEntry;>;
8 12 7 jarEntry Ljava/util/jar/JarEntry;
9 12 8 name Ljava/lang/String;
11 12 9 binaryName Ljava/lang/String;
15 16 2 e Ljava/lang/Exception;
Exception table:
from to target type
1 13 14 Class java.lang.Exception
Signature: (Ljava/net/URL;)Ljava/util/List<Ljavax/tools/JavaFileObject;>;
MethodParameters:
Name Flags
packageFolderURL
}
SourceFile: "PackageHelper.java"
InnerClasses:
public final Kind = javax.tools.JavaFileObject$Kind of javax.tools.JavaFileObject