public class ch.qos.logback.core.util.ContextUtil extends ch.qos.logback.core.spi.ContextAwareBase
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: ch.qos.logback.core.util.ContextUtil
super_class: ch.qos.logback.core.spi.ContextAwareBase
{
public void <init>(ch.qos.logback.core.Context);
descriptor: (Lch/qos/logback/core/Context;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial ch.qos.logback.core.spi.ContextAwareBase.<init>:()V
1: aload 0
aload 1
invokevirtual ch.qos.logback.core.util.ContextUtil.setContext:(Lch/qos/logback/core/Context;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lch/qos/logback/core/util/ContextUtil;
0 3 1 context Lch/qos/logback/core/Context;
MethodParameters:
Name Flags
context
public static java.lang.String getLocalHostName();
descriptor: ()Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=0
0: invokestatic java.net.InetAddress.getLocalHost:()Ljava/net/InetAddress;
astore 0
start local 0 1: aload 0
invokevirtual java.net.InetAddress.getHostName:()Ljava/lang/String;
2: areturn
end local 0 3: StackMap locals:
StackMap stack: java.net.UnknownHostException
pop
4: invokestatic ch.qos.logback.core.util.ContextUtil.getLocalAddressAsString:()Ljava/lang/String;
areturn
LocalVariableTable:
Start End Slot Name Signature
1 3 0 localhost Ljava/net/InetAddress;
Exception table:
from to target type
0 2 3 Class java.net.UnknownHostException
Exceptions:
throws java.net.UnknownHostException, java.net.SocketException
private static java.lang.String getLocalAddressAsString();
descriptor: ()Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=3, args_size=0
0: invokestatic java.net.NetworkInterface.getNetworkInterfaces:()Ljava/util/Enumeration;
astore 0
start local 0 1: goto 8
2: StackMap locals: java.util.Enumeration
StackMap stack:
aload 0
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast java.net.NetworkInterface
invokevirtual java.net.NetworkInterface.getInetAddresses:()Ljava/util/Enumeration;
astore 1
start local 1 3: goto 7
4: StackMap locals: java.util.Enumeration
StackMap stack:
aload 1
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast java.net.InetAddress
astore 2
start local 2 5: aload 2
invokestatic ch.qos.logback.core.util.ContextUtil.acceptableAddress:(Ljava/net/InetAddress;)Z
ifeq 7
6: aload 2
invokevirtual java.net.InetAddress.getHostAddress:()Ljava/lang/String;
areturn
end local 2 7: StackMap locals:
StackMap stack:
aload 1
ifnull 8
aload 1
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 4
end local 1 8: StackMap locals:
StackMap stack:
aload 0
ifnull 9
aload 0
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 2
9: StackMap locals:
StackMap stack:
new java.net.UnknownHostException
dup
invokespecial java.net.UnknownHostException.<init>:()V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 10 0 interfaces Ljava/util/Enumeration<Ljava/net/NetworkInterface;>;
3 8 1 addresses Ljava/util/Enumeration<Ljava/net/InetAddress;>;
5 7 2 address Ljava/net/InetAddress;
Exceptions:
throws java.net.UnknownHostException, java.net.SocketException
private static boolean acceptableAddress(java.net.InetAddress);
descriptor: (Ljava/net/InetAddress;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
ifnull 1
aload 0
invokevirtual java.net.InetAddress.isLoopbackAddress:()Z
ifne 1
aload 0
invokevirtual java.net.InetAddress.isAnyLocalAddress:()Z
ifne 1
aload 0
invokevirtual java.net.InetAddress.isLinkLocalAddress:()Z
ifne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 address Ljava/net/InetAddress;
MethodParameters:
Name Flags
address
public java.lang.String safelyGetLocalHostName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: invokestatic ch.qos.logback.core.util.ContextUtil.getLocalHostName:()Ljava/lang/String;
astore 1
start local 1 1: aload 1
2: areturn
end local 1 3: StackMap locals:
StackMap stack: java.net.UnknownHostException
astore 1
start local 1 4: aload 0
ldc "Failed to get local hostname"
aload 1
invokevirtual ch.qos.logback.core.util.ContextUtil.addError:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 1 5: goto 11
6: StackMap locals:
StackMap stack: java.net.SocketException
astore 1
start local 1 7: aload 0
ldc "Failed to get local hostname"
aload 1
invokevirtual ch.qos.logback.core.util.ContextUtil.addError:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 1 8: goto 11
9: StackMap locals:
StackMap stack: java.lang.SecurityException
astore 1
start local 1 10: aload 0
ldc "Failed to get local hostname"
aload 1
invokevirtual ch.qos.logback.core.util.ContextUtil.addError:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 1 11: StackMap locals:
StackMap stack:
ldc "UNKNOWN_LOCALHOST"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lch/qos/logback/core/util/ContextUtil;
1 3 1 localhostName Ljava/lang/String;
4 5 1 e Ljava/net/UnknownHostException;
7 8 1 e Ljava/net/SocketException;
10 11 1 e Ljava/lang/SecurityException;
Exception table:
from to target type
0 2 3 Class java.net.UnknownHostException
0 2 6 Class java.net.SocketException
0 2 9 Class java.lang.SecurityException
public void addProperties(java.util.Properties);
descriptor: (Ljava/util/Properties;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: return
2: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.util.Properties.keySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 2
start local 2 3: goto 6
4: StackMap locals: java.util.Iterator
StackMap stack:
aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 5: aload 0
getfield ch.qos.logback.core.util.ContextUtil.context:Lch/qos/logback/core/Context;
aload 3
aload 1
aload 3
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokeinterface ch.qos.logback.core.Context.putProperty:(Ljava/lang/String;Ljava/lang/String;)V
end local 3 6: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lch/qos/logback/core/util/ContextUtil;
0 8 1 props Ljava/util/Properties;
3 8 2 i Ljava/util/Iterator;
5 6 3 key Ljava/lang/String;
MethodParameters:
Name Flags
props
public static java.util.Map<java.lang.String, java.lang.String> getFilenameCollisionMap(ch.qos.logback.core.Context);
descriptor: (Lch/qos/logback/core/Context;)Ljava/util/Map;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
ldc "FA_FILENAME_COLLISION_MAP"
invokeinterface ch.qos.logback.core.Context.getObject:(Ljava/lang/String;)Ljava/lang/Object;
checkcast java.util.Map
astore 1
start local 1 3: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 context Lch/qos/logback/core/Context;
3 4 1 map Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
Signature: (Lch/qos/logback/core/Context;)Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
MethodParameters:
Name Flags
context
public static java.util.Map<java.lang.String, ch.qos.logback.core.rolling.helper.FileNamePattern> getFilenamePatternCollisionMap(ch.qos.logback.core.Context);
descriptor: (Lch/qos/logback/core/Context;)Ljava/util/Map;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
ldc "RFA_FILENAME_PATTERN_COLLISION_MAP"
invokeinterface ch.qos.logback.core.Context.getObject:(Ljava/lang/String;)Ljava/lang/Object;
checkcast java.util.Map
astore 1
start local 1 3: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 context Lch/qos/logback/core/Context;
3 4 1 map Ljava/util/Map<Ljava/lang/String;Lch/qos/logback/core/rolling/helper/FileNamePattern;>;
Signature: (Lch/qos/logback/core/Context;)Ljava/util/Map<Ljava/lang/String;Lch/qos/logback/core/rolling/helper/FileNamePattern;>;
MethodParameters:
Name Flags
context
public void addGroovyPackages(java.util.List<java.lang.String>);
descriptor: (Ljava/util/List;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
ldc "org.codehaus.groovy.runtime"
invokevirtual ch.qos.logback.core.util.ContextUtil.addFrameworkPackage:(Ljava/util/List;Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lch/qos/logback/core/util/ContextUtil;
0 2 1 frameworkPackages Ljava/util/List<Ljava/lang/String;>;
Signature: (Ljava/util/List<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
frameworkPackages
public void addFrameworkPackage(java.util.List<java.lang.String>, java.lang.String);
descriptor: (Ljava/util/List;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
aload 2
invokeinterface java.util.List.contains:(Ljava/lang/Object;)Z
ifne 2
1: aload 1
aload 2
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
2: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lch/qos/logback/core/util/ContextUtil;
0 3 1 frameworkPackages Ljava/util/List<Ljava/lang/String;>;
0 3 2 packageName Ljava/lang/String;
Signature: (Ljava/util/List<Ljava/lang/String;>;Ljava/lang/String;)V
MethodParameters:
Name Flags
frameworkPackages
packageName
}
SourceFile: "ContextUtil.java"