public class io.vertx.servicediscovery.utils.ClassLoaderUtils
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.servicediscovery.utils.ClassLoaderUtils
super_class: java.lang.Object
{
private static final java.lang.ClassLoader CURRENT;
descriptor: Ljava/lang/ClassLoader;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lio/vertx/servicediscovery/utils/ClassLoaderUtils;
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
putstatic io.vertx.servicediscovery.utils.ClassLoaderUtils.CURRENT:Ljava/lang/ClassLoader;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/servicediscovery/utils/ClassLoaderUtils;
public static <T> java.lang.Class<T> load(java.lang.String, java.lang.ClassLoader);
descriptor: (Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/lang/Class;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
getstatic io.vertx.servicediscovery.utils.ClassLoaderUtils.CURRENT:Ljava/lang/ClassLoader;
invokestatic io.vertx.servicediscovery.utils.ClassLoaderUtils.tryToLoad:(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/lang/Class;
astore 2
start local 2 2: aload 2
ifnonnull 4
aload 1
ifnull 4
3: aload 0
aload 1
invokestatic io.vertx.servicediscovery.utils.ClassLoaderUtils.tryToLoad:(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/lang/Class;
areturn
4: StackMap locals: java.lang.Class
StackMap stack:
aload 2
ifnonnull 6
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getContextClassLoader:()Ljava/lang/ClassLoader;
ifnull 6
5: aload 0
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getContextClassLoader:()Ljava/lang/ClassLoader;
invokestatic io.vertx.servicediscovery.utils.ClassLoaderUtils.tryToLoad:(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/lang/Class;
areturn
6: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 className Ljava/lang/String;
0 7 1 classLoader Ljava/lang/ClassLoader;
2 7 2 loaded Ljava/lang/Class<TT;>;
Signature: <T:Ljava/lang/Object;>(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/lang/Class<TT;>;
MethodParameters:
Name Flags
className
classLoader
private static <T> java.lang.Class<T> tryToLoad(java.lang.String, java.lang.ClassLoader);
descriptor: (Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/lang/Class;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
invokevirtual java.lang.ClassLoader.loadClass:(Ljava/lang/String;)Ljava/lang/Class;
1: areturn
2: StackMap locals:
StackMap stack: java.lang.ClassNotFoundException
pop
3: aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 className Ljava/lang/String;
0 4 1 classLoader Ljava/lang/ClassLoader;
Exception table:
from to target type
0 1 2 Class java.lang.ClassNotFoundException
Signature: <T:Ljava/lang/Object;>(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/lang/Class<TT;>;
MethodParameters:
Name Flags
className
classLoader
public static <X, T> X createWithDelegate(java.lang.Class<X>, );
descriptor: (Ljava/lang/Class;Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.lang.Class.getConstructors:()[Ljava/lang/reflect/Constructor;
invokestatic java.util.Arrays.stream:([Ljava/lang/Object;)Ljava/util/stream/Stream;
1: invokedynamic test()Ljava/util/function/Predicate;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Z
io/vertx/servicediscovery/utils/ClassLoaderUtils.lambda$0(Ljava/lang/reflect/Constructor;)Z (6)
(Ljava/lang/reflect/Constructor;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
2: aload 1
invokedynamic test(Ljava/lang/Object;)Ljava/util/function/Predicate;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Z
io/vertx/servicediscovery/utils/ClassLoaderUtils.lambda$1(Ljava/lang/Object;Ljava/lang/reflect/Constructor;)Z (6)
(Ljava/lang/reflect/Constructor;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
3: invokeinterface java.util.stream.Stream.findFirst:()Ljava/util/Optional;
4: astore 2
start local 2 5: aload 2
invokevirtual java.util.Optional.isPresent:()Z
ifeq 8
6: aload 2
invokevirtual java.util.Optional.get:()Ljava/lang/Object;
checkcast java.lang.reflect.Constructor
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokevirtual java.lang.reflect.Constructor.newInstance:([Ljava/lang/Object;)Ljava/lang/Object;
7: areturn
8: StackMap locals: java.util.Optional
StackMap stack:
aconst_null
areturn
end local 2 9: StackMap locals: java.lang.Class java.lang.Object
StackMap stack: java.lang.Exception
pop
10: aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 x Ljava/lang/Class<TX;>;
0 11 1 svc TT;
5 9 2 maybe Ljava/util/Optional<Ljava/lang/reflect/Constructor<*>;>;
Exception table:
from to target type
0 7 9 Class java.lang.Exception
Signature: <X:Ljava/lang/Object;T:Ljava/lang/Object;>(Ljava/lang/Class<TX;>;TT;)TX;
MethodParameters:
Name Flags
x
svc
public static java.lang.Object (java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
ldc "jdk.nashorn.api.scripting.ScriptObjectMirror"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 4
3: aload 0
invokestatic io.vertx.servicediscovery.utils.ClassLoaderUtils.extractDelegateFromJsObject:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
ldc "org.jruby.RubyObjectVar"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 6
5: aload 0
invokestatic io.vertx.servicediscovery.utils.ClassLoaderUtils.extractDelegateFromJRubyObject:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
6: StackMap locals:
StackMap stack:
aload 0
invokestatic io.vertx.servicediscovery.utils.ClassLoaderUtils.extractDelegateFromRX:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 object Ljava/lang/Object;
MethodParameters:
Name Flags
object
private static java.lang.Object (java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
ldc "getDelegate"
iconst_0
anewarray java.lang.Class
invokevirtual java.lang.Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
astore 1
start local 1 1: aload 1
aload 0
iconst_0
anewarray java.lang.Object
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
2: areturn
end local 1 3: StackMap locals:
StackMap stack: java.lang.NoSuchMethodException
pop
4: aconst_null
areturn
5: StackMap locals:
StackMap stack: java.lang.Exception
astore 1
start local 1 6: new java.lang.RuntimeException
dup
ldc "Unable to extract the delegate from the given RX object"
aload 1
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 object Ljava/lang/Object;
1 3 1 method Ljava/lang/reflect/Method;
6 7 1 e Ljava/lang/Exception;
Exception table:
from to target type
0 2 3 Class java.lang.NoSuchMethodException
0 2 5 Class java.lang.Exception
MethodParameters:
Name Flags
object
public static java.lang.Object (java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
ldc "callMethod"
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Ljava/lang/String;
aastore
invokevirtual java.lang.Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
astore 1
start local 1 1: aload 1
aload 0
iconst_1
anewarray java.lang.Object
dup
iconst_0
ldc "j_del"
aastore
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
2: areturn
end local 1 3: StackMap locals:
StackMap stack: java.lang.Exception
astore 1
start local 1 4: new java.lang.RuntimeException
dup
ldc "Unable to extract the delegate from the given Ruby object"
aload 1
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 object Ljava/lang/Object;
1 3 1 method Ljava/lang/reflect/Method;
4 5 1 e Ljava/lang/Exception;
Exception table:
from to target type
0 2 3 Class java.lang.Exception
MethodParameters:
Name Flags
object
public static java.lang.Object (java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
ldc "getMember"
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Ljava/lang/String;
aastore
invokevirtual java.lang.Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
astore 1
start local 1 1: aload 1
aload 0
iconst_1
anewarray java.lang.Object
dup
iconst_0
ldc "_jdel"
aastore
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
2: areturn
end local 1 3: StackMap locals:
StackMap stack: java.lang.Exception
astore 1
start local 1 4: new java.lang.RuntimeException
dup
ldc "Unable to extract the delegate from the given JavaScript object"
aload 1
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 object Ljava/lang/Object;
1 3 1 method Ljava/lang/reflect/Method;
4 5 1 e Ljava/lang/Exception;
Exception table:
from to target type
0 2 3 Class java.lang.Exception
MethodParameters:
Name Flags
object
private static boolean lambda$0(java.lang.reflect.Constructor);
descriptor: (Ljava/lang/reflect/Constructor;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.reflect.Constructor.getParameterCount:()I
iconst_1
if_icmpne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 c Ljava/lang/reflect/Constructor<*>;
private static boolean lambda$1(java.lang.Object, java.lang.reflect.Constructor);
descriptor: (Ljava/lang/Object;Ljava/lang/reflect/Constructor;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 1
invokevirtual java.lang.reflect.Constructor.getParameterTypes:()[Ljava/lang/Class;
iconst_0
aaload
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ireturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 c Ljava/lang/reflect/Constructor<*>;
}
SourceFile: "ClassLoaderUtils.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles