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: .line 30
            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 // io.vertx.servicediscovery.utils.ClassLoaderUtils this
         0: .line 28
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
            return
        end local 0 // io.vertx.servicediscovery.utils.ClassLoaderUtils this
      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 // java.lang.String className
        start local 1 // java.lang.ClassLoader classLoader
         0: .line 34
            aload 0 /* className */
            invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
            pop
         1: .line 37
            aload 0 /* className */
            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 /* loaded */
        start local 2 // java.lang.Class loaded
         2: .line 40
            aload 2 /* loaded */
            ifnonnull 4
            aload 1 /* classLoader */
            ifnull 4
         3: .line 41
            aload 0 /* className */
            aload 1 /* classLoader */
            invokestatic io.vertx.servicediscovery.utils.ClassLoaderUtils.tryToLoad:(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/lang/Class;
            areturn
         4: .line 45
      StackMap locals: java.lang.Class
      StackMap stack:
            aload 2 /* loaded */
            ifnonnull 6
            invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
            invokevirtual java.lang.Thread.getContextClassLoader:()Ljava/lang/ClassLoader;
            ifnull 6
         5: .line 46
            aload 0 /* className */
            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: .line 49
      StackMap locals:
      StackMap stack:
            aload 2 /* loaded */
            areturn
        end local 2 // java.lang.Class loaded
        end local 1 // java.lang.ClassLoader classLoader
        end local 0 // java.lang.String className
      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 // java.lang.String className
        start local 1 // java.lang.ClassLoader classLoader
         0: .line 54
            aload 1 /* classLoader */
            aload 0 /* className */
            invokevirtual java.lang.ClassLoader.loadClass:(Ljava/lang/String;)Ljava/lang/Class;
         1: areturn
         2: .line 55
      StackMap locals:
      StackMap stack: java.lang.ClassNotFoundException
            pop
         3: .line 56
            aconst_null
            areturn
        end local 1 // java.lang.ClassLoader classLoader
        end local 0 // java.lang.String className
      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 // java.lang.Class x
        start local 1 // java.lang.Object svc
         0: .line 62
            aload 0 /* x */
            invokevirtual java.lang.Class.getConstructors:()[Ljava/lang/reflect/Constructor;
            invokestatic java.util.Arrays.stream:([Ljava/lang/Object;)Ljava/util/stream/Stream;
         1: .line 63
            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: .line 64
            aload 1 /* svc */
            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: .line 65
            invokeinterface java.util.stream.Stream.findFirst:()Ljava/util/Optional;
         4: .line 62
            astore 2 /* maybe */
        start local 2 // java.util.Optional maybe
         5: .line 67
            aload 2 /* maybe */
            invokevirtual java.util.Optional.isPresent:()Z
            ifeq 8
         6: .line 68
            aload 2 /* maybe */
            invokevirtual java.util.Optional.get:()Ljava/lang/Object;
            checkcast java.lang.reflect.Constructor
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            aload 1 /* svc */
            aastore
            invokevirtual java.lang.reflect.Constructor.newInstance:([Ljava/lang/Object;)Ljava/lang/Object;
         7: areturn
         8: .line 70
      StackMap locals: java.util.Optional
      StackMap stack:
            aconst_null
            areturn
        end local 2 // java.util.Optional maybe
         9: .line 72
      StackMap locals: java.lang.Class java.lang.Object
      StackMap stack: java.lang.Exception
            pop
        10: .line 73
            aconst_null
            areturn
        end local 1 // java.lang.Object svc
        end local 0 // java.lang.Class x
      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 extractDelegate(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 // java.lang.Object object
         0: .line 78
            aload 0 /* object */
            ifnonnull 2
         1: .line 79
            aconst_null
            areturn
         2: .line 82
      StackMap locals:
      StackMap stack:
            aload 0 /* object */
            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: .line 83
            aload 0 /* object */
            invokestatic io.vertx.servicediscovery.utils.ClassLoaderUtils.extractDelegateFromJsObject:(Ljava/lang/Object;)Ljava/lang/Object;
            areturn
         4: .line 86
      StackMap locals:
      StackMap stack:
            aload 0 /* object */
            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: .line 87
            aload 0 /* object */
            invokestatic io.vertx.servicediscovery.utils.ClassLoaderUtils.extractDelegateFromJRubyObject:(Ljava/lang/Object;)Ljava/lang/Object;
            areturn
         6: .line 90
      StackMap locals:
      StackMap stack:
            aload 0 /* object */
            invokestatic io.vertx.servicediscovery.utils.ClassLoaderUtils.extractDelegateFromRX:(Ljava/lang/Object;)Ljava/lang/Object;
            areturn
        end local 0 // java.lang.Object object
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    7     0  object  Ljava/lang/Object;
    MethodParameters:
        Name  Flags
      object  

  private static java.lang.Object extractDelegateFromRX(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 // java.lang.Object object
         0: .line 95
            aload 0 /* object */
            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 /* method */
        start local 1 // java.lang.reflect.Method method
         1: .line 96
            aload 1 /* method */
            aload 0 /* object */
            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 // java.lang.reflect.Method method
         3: .line 97
      StackMap locals:
      StackMap stack: java.lang.NoSuchMethodException
            pop
         4: .line 99
            aconst_null
            areturn
         5: .line 100
      StackMap locals:
      StackMap stack: java.lang.Exception
            astore 1 /* e */
        start local 1 // java.lang.Exception e
         6: .line 101
            new java.lang.RuntimeException
            dup
            ldc "Unable to extract the delegate from the given RX object"
            aload 1 /* e */
            invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
            athrow
        end local 1 // java.lang.Exception e
        end local 0 // java.lang.Object object
      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 extractDelegateFromJRubyObject(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 // java.lang.Object object
         0: .line 107
            aload 0 /* object */
            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 /* method */
        start local 1 // java.lang.reflect.Method method
         1: .line 108
            aload 1 /* method */
            aload 0 /* object */
            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 // java.lang.reflect.Method method
         3: .line 109
      StackMap locals:
      StackMap stack: java.lang.Exception
            astore 1 /* e */
        start local 1 // java.lang.Exception e
         4: .line 110
            new java.lang.RuntimeException
            dup
            ldc "Unable to extract the delegate from the given Ruby object"
            aload 1 /* e */
            invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
            athrow
        end local 1 // java.lang.Exception e
        end local 0 // java.lang.Object object
      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 extractDelegateFromJsObject(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 // java.lang.Object object
         0: .line 116
            aload 0 /* object */
            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 /* method */
        start local 1 // java.lang.reflect.Method method
         1: .line 117
            aload 1 /* method */
            aload 0 /* object */
            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 // java.lang.reflect.Method method
         3: .line 118
      StackMap locals:
      StackMap stack: java.lang.Exception
            astore 1 /* e */
        start local 1 // java.lang.Exception e
         4: .line 119
            new java.lang.RuntimeException
            dup
            ldc "Unable to extract the delegate from the given JavaScript object"
            aload 1 /* e */
            invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
            athrow
        end local 1 // java.lang.Exception e
        end local 0 // java.lang.Object object
      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 // java.lang.reflect.Constructor c
         0: .line 63
            aload 0 /* c */
            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 // java.lang.reflect.Constructor c
      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 // java.lang.reflect.Constructor c
         0: .line 64
            aload 1 /* c */
            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 // java.lang.reflect.Constructor c
      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