public class org.jboss.resteasy.util.ThreadLocalStack<T>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jboss.resteasy.util.ThreadLocalStack
super_class: java.lang.Object
{
private java.lang.ThreadLocal<java.util.ArrayList<T>> local;
descriptor: Ljava/lang/ThreadLocal;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/lang/ThreadLocal<Ljava/util/ArrayList<TT;>;>;
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.lang.ThreadLocal
dup
invokespecial java.lang.ThreadLocal.<init>:()V
putfield org.jboss.resteasy.util.ThreadLocalStack.local:Ljava/lang/ThreadLocal;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jboss/resteasy/util/ThreadLocalStack<TT;>;
public void push();
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_1
invokevirtual org.jboss.resteasy.util.ThreadLocalStack.getStack:(Z)Ljava/util/ArrayList;
aload 1
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jboss/resteasy/util/ThreadLocalStack<TT;>;
0 2 1 obj TT;
Signature: (TT;)V
MethodParameters:
Name Flags
obj
private java.util.ArrayList<T> getStack(boolean);
descriptor: (Z)Ljava/util/ArrayList;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jboss.resteasy.util.ThreadLocalStack.local:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.get:()Ljava/lang/Object;
checkcast java.util.ArrayList
astore 2
start local 2 1: aload 2
ifnonnull 4
iload 1
ifeq 4
2: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
3: aload 0
getfield org.jboss.resteasy.util.ThreadLocalStack.local:Ljava/lang/ThreadLocal;
aload 2
invokevirtual java.lang.ThreadLocal.set:(Ljava/lang/Object;)V
4: StackMap locals: java.util.ArrayList
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jboss/resteasy/util/ThreadLocalStack<TT;>;
0 5 1 create Z
1 5 2 stack Ljava/util/ArrayList<TT;>;
Signature: (Z)Ljava/util/ArrayList<TT;>;
MethodParameters:
Name Flags
create
public T get();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield org.jboss.resteasy.util.ThreadLocalStack.local:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.get:()Ljava/lang/Object;
checkcast java.util.ArrayList
astore 1
start local 1 1: aload 1
ifnull 2
aload 1
invokevirtual java.util.ArrayList.isEmpty:()Z
ifeq 3
StackMap locals: java.util.ArrayList
StackMap stack:
2: aconst_null
areturn
3: StackMap locals:
StackMap stack:
aload 1
aload 1
invokevirtual java.util.ArrayList.size:()I
iconst_1
isub
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jboss/resteasy/util/ThreadLocalStack<TT;>;
1 4 1 stack Ljava/util/ArrayList<TT;>;
Signature: ()TT;
public T pop();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield org.jboss.resteasy.util.ThreadLocalStack.local:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.get:()Ljava/lang/Object;
checkcast java.util.ArrayList
astore 1
start local 1 1: aload 1
ifnull 2
aload 1
invokevirtual java.util.ArrayList.isEmpty:()Z
ifeq 3
StackMap locals: java.util.ArrayList
StackMap stack:
2: aconst_null
areturn
3: StackMap locals:
StackMap stack:
aload 1
aload 1
invokevirtual java.util.ArrayList.size:()I
iconst_1
isub
invokevirtual java.util.ArrayList.remove:(I)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jboss/resteasy/util/ThreadLocalStack<TT;>;
1 4 1 stack Ljava/util/ArrayList<TT;>;
Signature: ()TT;
public void setLast();
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
iconst_1
invokevirtual org.jboss.resteasy.util.ThreadLocalStack.getStack:(Z)Ljava/util/ArrayList;
astore 2
start local 2 1: aload 2
invokevirtual java.util.ArrayList.isEmpty:()Z
ifeq 4
2: aload 2
aload 1
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
3: goto 5
4: StackMap locals: java.util.ArrayList
StackMap stack:
aload 2
aload 2
invokevirtual java.util.ArrayList.size:()I
iconst_1
isub
aload 1
invokevirtual java.util.ArrayList.set:(ILjava/lang/Object;)Ljava/lang/Object;
pop
5: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/jboss/resteasy/util/ThreadLocalStack<TT;>;
0 6 1 obj TT;
1 6 2 stack Ljava/util/ArrayList<TT;>;
Signature: (TT;)V
MethodParameters:
Name Flags
obj
public boolean isEmpty();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
iconst_0
invokevirtual org.jboss.resteasy.util.ThreadLocalStack.getStack:(Z)Ljava/util/ArrayList;
astore 1
start local 1 1: aload 1
ifnull 2
aload 1
invokevirtual java.util.ArrayList.isEmpty:()Z
ifne 2
iconst_0
ireturn
StackMap locals: java.util.ArrayList
StackMap stack:
2: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jboss/resteasy/util/ThreadLocalStack<TT;>;
1 3 1 stack Ljava/util/ArrayList<TT;>;
public int size();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
iconst_0
invokevirtual org.jboss.resteasy.util.ThreadLocalStack.getStack:(Z)Ljava/util/ArrayList;
astore 1
start local 1 1: aload 1
ifnonnull 2
iconst_0
goto 3
StackMap locals: java.util.ArrayList
StackMap stack:
2: aload 1
invokevirtual java.util.ArrayList.size:()I
StackMap locals:
StackMap stack: int
3: ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jboss/resteasy/util/ThreadLocalStack<TT;>;
1 4 1 stack Ljava/util/ArrayList<TT;>;
public void clear();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jboss.resteasy.util.ThreadLocalStack.local:Ljava/lang/ThreadLocal;
aconst_null
invokevirtual java.lang.ThreadLocal.set:(Ljava/lang/Object;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jboss/resteasy/util/ThreadLocalStack<TT;>;
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;
SourceFile: "ThreadLocalStack.java"