public class com.sun.jmx.snmp.ThreadContext implements java.lang.Cloneable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.jmx.snmp.ThreadContext
super_class: java.lang.Object
{
private com.sun.jmx.snmp.ThreadContext previous;
descriptor: Lcom/sun/jmx/snmp/ThreadContext;
flags: (0x0002) ACC_PRIVATE
private java.lang.String key;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.lang.Object value;
descriptor: Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
private static java.lang.ThreadLocal<com.sun.jmx.snmp.ThreadContext> localContext;
descriptor: Ljava/lang/ThreadLocal;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Signature: Ljava/lang/ThreadLocal<Lcom/sun/jmx/snmp/ThreadContext;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new java.lang.ThreadLocal
dup
invokespecial java.lang.ThreadLocal.<init>:()V
1: putstatic com.sun.jmx.snmp.ThreadContext.localContext:Ljava/lang/ThreadLocal;
2: return
LocalVariableTable:
Start End Slot Name Signature
private void <init>(com.sun.jmx.snmp.ThreadContext, java.lang.String, java.lang.Object);
descriptor: (Lcom/sun/jmx/snmp/ThreadContext;Ljava/lang/String;Ljava/lang/Object;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield com.sun.jmx.snmp.ThreadContext.previous:Lcom/sun/jmx/snmp/ThreadContext;
2: aload 0
aload 2
putfield com.sun.jmx.snmp.ThreadContext.key:Ljava/lang/String;
3: aload 0
aload 3
putfield com.sun.jmx.snmp.ThreadContext.value:Ljava/lang/Object;
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/jmx/snmp/ThreadContext;
0 5 1 previous Lcom/sun/jmx/snmp/ThreadContext;
0 5 2 key Ljava/lang/String;
0 5 3 value Ljava/lang/Object;
MethodParameters:
Name Flags
previous
key
value
public static java.lang.Object get(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokestatic com.sun.jmx.snmp.ThreadContext.contextContaining:(Ljava/lang/String;)Lcom/sun/jmx/snmp/ThreadContext;
astore 1
start local 1 1: aload 1
ifnonnull 3
2: aconst_null
areturn
3: StackMap locals: com.sun.jmx.snmp.ThreadContext
StackMap stack:
aload 1
getfield com.sun.jmx.snmp.ThreadContext.value:Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 key Ljava/lang/String;
1 4 1 context Lcom/sun/jmx/snmp/ThreadContext;
Exceptions:
throws java.lang.IllegalArgumentException
MethodParameters:
Name Flags
key
public static boolean contains(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic com.sun.jmx.snmp.ThreadContext.contextContaining:(Ljava/lang/String;)Lcom/sun/jmx/snmp/ThreadContext;
ifnull 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 key Ljava/lang/String;
Exceptions:
throws java.lang.IllegalArgumentException
MethodParameters:
Name Flags
key
private static com.sun.jmx.snmp.ThreadContext contextContaining(java.lang.String);
descriptor: (Ljava/lang/String;)Lcom/sun/jmx/snmp/ThreadContext;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: new java.lang.IllegalArgumentException
dup
ldc "null key"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
invokestatic com.sun.jmx.snmp.ThreadContext.getContext:()Lcom/sun/jmx/snmp/ThreadContext;
astore 1
start local 1 3: goto 7
4: StackMap locals: com.sun.jmx.snmp.ThreadContext
StackMap stack:
aload 0
aload 1
getfield com.sun.jmx.snmp.ThreadContext.key:Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 6
5: aload 1
areturn
6: StackMap locals:
StackMap stack:
aload 1
getfield com.sun.jmx.snmp.ThreadContext.previous:Lcom/sun/jmx/snmp/ThreadContext;
astore 1
7: StackMap locals:
StackMap stack:
aload 1
ifnonnull 4
end local 1 8: aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 key Ljava/lang/String;
3 8 1 context Lcom/sun/jmx/snmp/ThreadContext;
Exceptions:
throws java.lang.IllegalArgumentException
MethodParameters:
Name Flags
key
public static com.sun.jmx.snmp.ThreadContext push(java.lang.String, java.lang.Object);
descriptor: (Ljava/lang/String;Ljava/lang/Object;)Lcom/sun/jmx/snmp/ThreadContext;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 0
ifnonnull 2
1: new java.lang.IllegalArgumentException
dup
ldc "null key"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
invokestatic com.sun.jmx.snmp.ThreadContext.getContext:()Lcom/sun/jmx/snmp/ThreadContext;
astore 2
start local 2 3: aload 2
ifnonnull 5
4: new com.sun.jmx.snmp.ThreadContext
dup
aconst_null
aconst_null
aconst_null
invokespecial com.sun.jmx.snmp.ThreadContext.<init>:(Lcom/sun/jmx/snmp/ThreadContext;Ljava/lang/String;Ljava/lang/Object;)V
astore 2
5: StackMap locals: com.sun.jmx.snmp.ThreadContext
StackMap stack:
new com.sun.jmx.snmp.ThreadContext
dup
aload 2
aload 0
aload 1
invokespecial com.sun.jmx.snmp.ThreadContext.<init>:(Lcom/sun/jmx/snmp/ThreadContext;Ljava/lang/String;Ljava/lang/Object;)V
astore 3
start local 3 6: aload 3
invokestatic com.sun.jmx.snmp.ThreadContext.setContext:(Lcom/sun/jmx/snmp/ThreadContext;)V
7: aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 key Ljava/lang/String;
0 8 1 value Ljava/lang/Object;
3 8 2 oldContext Lcom/sun/jmx/snmp/ThreadContext;
6 8 3 newContext Lcom/sun/jmx/snmp/ThreadContext;
Exceptions:
throws java.lang.IllegalArgumentException
MethodParameters:
Name Flags
key
value
public static com.sun.jmx.snmp.ThreadContext getThreadContext();
descriptor: ()Lcom/sun/jmx/snmp/ThreadContext;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic com.sun.jmx.snmp.ThreadContext.getContext:()Lcom/sun/jmx/snmp/ThreadContext;
areturn
LocalVariableTable:
Start End Slot Name Signature
public static void restore(com.sun.jmx.snmp.ThreadContext);
descriptor: (Lcom/sun/jmx/snmp/ThreadContext;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: new java.lang.NullPointerException
dup
invokespecial java.lang.NullPointerException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
invokestatic com.sun.jmx.snmp.ThreadContext.getContext:()Lcom/sun/jmx/snmp/ThreadContext;
astore 1
start local 1 3: goto 7
4: StackMap locals: com.sun.jmx.snmp.ThreadContext
StackMap stack:
aload 1
ifnonnull 6
5: new java.lang.IllegalArgumentException
dup
ldc "Restored context is not contained in current context"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 1
getfield com.sun.jmx.snmp.ThreadContext.previous:Lcom/sun/jmx/snmp/ThreadContext;
astore 1
7: StackMap locals:
StackMap stack:
aload 1
aload 0
if_acmpne 4
end local 1 8: aload 0
getfield com.sun.jmx.snmp.ThreadContext.key:Ljava/lang/String;
ifnonnull 10
9: aconst_null
astore 0
10: StackMap locals:
StackMap stack:
aload 0
invokestatic com.sun.jmx.snmp.ThreadContext.setContext:(Lcom/sun/jmx/snmp/ThreadContext;)V
11: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 oldContext Lcom/sun/jmx/snmp/ThreadContext;
3 8 1 context Lcom/sun/jmx/snmp/ThreadContext;
Exceptions:
throws java.lang.NullPointerException, java.lang.IllegalArgumentException
MethodParameters:
Name Flags
oldContext
public void setInitialContext(com.sun.jmx.snmp.ThreadContext);
descriptor: (Lcom/sun/jmx/snmp/ThreadContext;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: invokestatic com.sun.jmx.snmp.ThreadContext.getContext:()Lcom/sun/jmx/snmp/ThreadContext;
ifnull 2
1: new java.lang.IllegalArgumentException
dup
ldc "previous context not empty"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
invokestatic com.sun.jmx.snmp.ThreadContext.setContext:(Lcom/sun/jmx/snmp/ThreadContext;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/jmx/snmp/ThreadContext;
0 4 1 context Lcom/sun/jmx/snmp/ThreadContext;
Exceptions:
throws java.lang.IllegalArgumentException
MethodParameters:
Name Flags
context
private static com.sun.jmx.snmp.ThreadContext getContext();
descriptor: ()Lcom/sun/jmx/snmp/ThreadContext;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic com.sun.jmx.snmp.ThreadContext.localContext:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.get:()Ljava/lang/Object;
checkcast com.sun.jmx.snmp.ThreadContext
areturn
LocalVariableTable:
Start End Slot Name Signature
private static void setContext(com.sun.jmx.snmp.ThreadContext);
descriptor: (Lcom/sun/jmx/snmp/ThreadContext;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic com.sun.jmx.snmp.ThreadContext.localContext:Ljava/lang/ThreadLocal;
aload 0
invokevirtual java.lang.ThreadLocal.set:(Ljava/lang/Object;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 context Lcom/sun/jmx/snmp/ThreadContext;
MethodParameters:
Name Flags
context
}
SourceFile: "ThreadContext.java"