public class ch.qos.logback.core.util.Loader
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: ch.qos.logback.core.util.Loader
super_class: java.lang.Object
{
static final java.lang.String TSTR;
descriptor: Ljava/lang/String;
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: "Caught Exception while in Loader.getResource. This may be innocuous."
private static boolean ignoreTCL;
descriptor: Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
public static final java.lang.String IGNORE_TCL_PROPERTY_NAME;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "logback.ignoreTCL"
private static boolean HAS_GET_CLASS_LOADER_PERMISSION;
descriptor: Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=0
0: iconst_0
putstatic ch.qos.logback.core.util.Loader.ignoreTCL:Z
1: iconst_0
putstatic ch.qos.logback.core.util.Loader.HAS_GET_CLASS_LOADER_PERMISSION:Z
2: ldc "logback.ignoreTCL"
aconst_null
invokestatic ch.qos.logback.core.util.OptionHelper.getSystemProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 0
start local 0 3: aload 0
ifnull 5
4: aload 0
iconst_1
invokestatic ch.qos.logback.core.util.OptionHelper.toBoolean:(Ljava/lang/String;Z)Z
putstatic ch.qos.logback.core.util.Loader.ignoreTCL:Z
5: StackMap locals: java.lang.String
StackMap stack:
new ch.qos.logback.core.util.Loader$1
dup
invokespecial ch.qos.logback.core.util.Loader$1.<init>:()V
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
putstatic ch.qos.logback.core.util.Loader.HAS_GET_CLASS_LOADER_PERMISSION:Z
end local 0 6: return
LocalVariableTable:
Start End Slot Name Signature
3 6 0 ignoreTCLProp Ljava/lang/String;
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/core/util/Loader;
public static java.util.Set<java.net.URL> getResources(java.lang.String, java.lang.ClassLoader);
descriptor: (Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/util/Set;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 2
start local 2 1: aload 1
aload 0
invokevirtual java.lang.ClassLoader.getResources:(Ljava/lang/String;)Ljava/util/Enumeration;
astore 3
start local 3 2: goto 5
3: StackMap locals: java.util.Set java.util.Enumeration
StackMap stack:
aload 3
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast java.net.URL
astore 4
start local 4 4: aload 2
aload 4
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
end local 4 5: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 3
6: aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 resource Ljava/lang/String;
0 7 1 classLoader Ljava/lang/ClassLoader;
1 7 2 urlSet Ljava/util/Set<Ljava/net/URL;>;
2 7 3 urlEnum Ljava/util/Enumeration<Ljava/net/URL;>;
4 5 4 url Ljava/net/URL;
Exceptions:
throws java.io.IOException
Signature: (Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/util/Set<Ljava/net/URL;>;
MethodParameters:
Name Flags
resource
classLoader
public static java.net.URL getResource(java.lang.String, java.lang.ClassLoader);
descriptor: (Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/net/URL;
flags: (0x0009) ACC_PUBLIC, 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.getResource:(Ljava/lang/String;)Ljava/net/URL;
1: areturn
2: StackMap locals:
StackMap stack: java.lang.Throwable
pop
3: aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 resource Ljava/lang/String;
0 4 1 classLoader Ljava/lang/ClassLoader;
Exception table:
from to target type
0 1 2 Class java.lang.Throwable
MethodParameters:
Name Flags
resource
classLoader
public static java.net.URL getResourceBySelfClassLoader(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/net/URL;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc Lch/qos/logback/core/util/Loader;
invokestatic ch.qos.logback.core.util.Loader.getClassLoaderOfClass:(Ljava/lang/Class;)Ljava/lang/ClassLoader;
invokestatic ch.qos.logback.core.util.Loader.getResource:(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/net/URL;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 resource Ljava/lang/String;
MethodParameters:
Name Flags
resource
public static java.lang.ClassLoader getTCL();
descriptor: ()Ljava/lang/ClassLoader;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getContextClassLoader:()Ljava/lang/ClassLoader;
areturn
LocalVariableTable:
Start End Slot Name Signature
public static java.lang.Class<?> loadClass(java.lang.String, ch.qos.logback.core.Context);
descriptor: (Ljava/lang/String;Lch/qos/logback/core/Context;)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 1
invokestatic ch.qos.logback.core.util.Loader.getClassLoaderOfObject:(Ljava/lang/Object;)Ljava/lang/ClassLoader;
astore 2
start local 2 1: aload 2
aload 0
invokevirtual java.lang.ClassLoader.loadClass:(Ljava/lang/String;)Ljava/lang/Class;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 clazz Ljava/lang/String;
0 2 1 context Lch/qos/logback/core/Context;
1 2 2 cl Ljava/lang/ClassLoader;
Exceptions:
throws java.lang.ClassNotFoundException
Signature: (Ljava/lang/String;Lch/qos/logback/core/Context;)Ljava/lang/Class<*>;
MethodParameters:
Name Flags
clazz
context
public static java.lang.ClassLoader getClassLoaderOfObject(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/ClassLoader;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "Argument cannot be null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokestatic ch.qos.logback.core.util.Loader.getClassLoaderOfClass:(Ljava/lang/Class;)Ljava/lang/ClassLoader;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 o Ljava/lang/Object;
MethodParameters:
Name Flags
o
public static java.lang.ClassLoader getClassLoaderAsPrivileged(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Ljava/lang/ClassLoader;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: getstatic ch.qos.logback.core.util.Loader.HAS_GET_CLASS_LOADER_PERMISSION:Z
ifne 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
new ch.qos.logback.core.util.Loader$2
dup
aload 0
invokespecial ch.qos.logback.core.util.Loader$2.<init>:(Ljava/lang/Class;)V
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.ClassLoader
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 clazz Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)Ljava/lang/ClassLoader;
MethodParameters:
Name Flags
clazz final
public static java.lang.ClassLoader getClassLoaderOfClass(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Ljava/lang/ClassLoader;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
astore 1
start local 1 1: aload 1
ifnonnull 3
2: invokestatic java.lang.ClassLoader.getSystemClassLoader:()Ljava/lang/ClassLoader;
areturn
3: StackMap locals: java.lang.ClassLoader
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 clazz Ljava/lang/Class<*>;
1 4 1 cl Ljava/lang/ClassLoader;
Signature: (Ljava/lang/Class<*>;)Ljava/lang/ClassLoader;
MethodParameters:
Name Flags
clazz final
public static java.lang.Class<?> loadClass(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Class;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic ch.qos.logback.core.util.Loader.ignoreTCL:Z
ifeq 2
1: aload 0
invokestatic java.lang.Class.forName:(Ljava/lang/String;)Ljava/lang/Class;
areturn
2: StackMap locals:
StackMap stack:
invokestatic ch.qos.logback.core.util.Loader.getTCL:()Ljava/lang/ClassLoader;
aload 0
invokevirtual java.lang.ClassLoader.loadClass:(Ljava/lang/String;)Ljava/lang/Class;
3: areturn
4: StackMap locals:
StackMap stack: java.lang.Throwable
pop
5: aload 0
invokestatic java.lang.Class.forName:(Ljava/lang/String;)Ljava/lang/Class;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 clazz Ljava/lang/String;
Exception table:
from to target type
2 3 4 Class java.lang.Throwable
Exceptions:
throws java.lang.ClassNotFoundException
Signature: (Ljava/lang/String;)Ljava/lang/Class<*>;
MethodParameters:
Name Flags
clazz
}
SourceFile: "Loader.java"
NestMembers:
ch.qos.logback.core.util.Loader$1 ch.qos.logback.core.util.Loader$2
InnerClasses:
ch.qos.logback.core.util.Loader$1
ch.qos.logback.core.util.Loader$2