public class ch.qos.logback.classic.util.EnvUtil
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: ch.qos.logback.classic.util.EnvUtil
super_class: java.lang.Object
{
static java.lang.ClassLoader testServiceLoaderClassLoader;
descriptor: Ljava/lang/ClassLoader;
flags: (0x0008) ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: aconst_null
putstatic ch.qos.logback.classic.util.EnvUtil.testServiceLoaderClassLoader: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 Lch/qos/logback/classic/util/EnvUtil;
public static boolean isGroovyAvailable();
descriptor: ()Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=0
0: ldc Lch/qos/logback/classic/util/EnvUtil;
invokestatic ch.qos.logback.core.util.Loader.getClassLoaderOfClass:(Ljava/lang/Class;)Ljava/lang/ClassLoader;
astore 0
start local 0 1: aload 0
ldc "groovy.lang.Binding"
invokevirtual java.lang.ClassLoader.loadClass:(Ljava/lang/String;)Ljava/lang/Class;
astore 1
start local 1 2: aload 1
ifnull 3
iconst_1
ireturn
StackMap locals: java.lang.ClassLoader java.lang.Class
StackMap stack:
3: iconst_0
4: ireturn
end local 1 5: StackMap locals: java.lang.ClassLoader
StackMap stack: java.lang.ClassNotFoundException
pop
6: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 7 0 classLoader Ljava/lang/ClassLoader;
2 5 1 bindingClass Ljava/lang/Class<*>;
Exception table:
from to target type
1 4 5 Class java.lang.ClassNotFoundException
private static java.lang.ClassLoader getServiceLoaderClassLoader();
descriptor: ()Ljava/lang/ClassLoader;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic ch.qos.logback.classic.util.EnvUtil.testServiceLoaderClassLoader:Ljava/lang/ClassLoader;
ifnonnull 1
ldc Lch/qos/logback/classic/util/EnvUtil;
invokestatic ch.qos.logback.core.util.Loader.getClassLoaderOfClass:(Ljava/lang/Class;)Ljava/lang/ClassLoader;
goto 2
StackMap locals:
StackMap stack:
1: getstatic ch.qos.logback.classic.util.EnvUtil.testServiceLoaderClassLoader:Ljava/lang/ClassLoader;
StackMap locals:
StackMap stack: java.lang.ClassLoader
2: areturn
LocalVariableTable:
Start End Slot Name Signature
public static <T> T loadFromServiceLoader(java.lang.Class<T>);
descriptor: (Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
invokestatic ch.qos.logback.classic.util.EnvUtil.getServiceLoaderClassLoader:()Ljava/lang/ClassLoader;
invokestatic java.util.ServiceLoader.load:(Ljava/lang/Class;Ljava/lang/ClassLoader;)Ljava/util/ServiceLoader;
astore 1
start local 1 1: aload 1
invokevirtual java.util.ServiceLoader.iterator:()Ljava/util/Iterator;
astore 2
start local 2 2: aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 4
3: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
areturn
4: StackMap locals: java.util.ServiceLoader java.util.Iterator
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 c Ljava/lang/Class<TT;>;
1 5 1 loader Ljava/util/ServiceLoader<TT;>;
2 5 2 it Ljava/util/Iterator<TT;>;
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Class<TT;>;)TT;
MethodParameters:
Name Flags
c
}
SourceFile: "EnvUtil.java"