public class com.sun.jmx.remote.internal.ArrayQueue<T> extends java.util.AbstractList<T>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.jmx.remote.internal.ArrayQueue
super_class: java.util.AbstractList
{
private int capacity;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private T[] queue;
descriptor: [Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Signature: [TT;
private int head;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int tail;
descriptor: I
flags: (0x0002) ACC_PRIVATE
public void <init>(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.util.AbstractList.<init>:()V
1: aload 0
iload 1
iconst_1
iadd
putfield com.sun.jmx.remote.internal.ArrayQueue.capacity:I
2: aload 0
aload 0
iload 1
iconst_1
iadd
invokevirtual com.sun.jmx.remote.internal.ArrayQueue.newArray:(I)[Ljava/lang/Object;
putfield com.sun.jmx.remote.internal.ArrayQueue.queue:[Ljava/lang/Object;
3: aload 0
iconst_0
putfield com.sun.jmx.remote.internal.ArrayQueue.head:I
4: aload 0
iconst_0
putfield com.sun.jmx.remote.internal.ArrayQueue.tail:I
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/sun/jmx/remote/internal/ArrayQueue<TT;>;
0 6 1 capacity I
MethodParameters:
Name Flags
capacity
public void resize(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual com.sun.jmx.remote.internal.ArrayQueue.size:()I
istore 2
start local 2 1: iload 1
iload 2
if_icmpge 3
2: new java.lang.IndexOutOfBoundsException
dup
ldc "Resizing would lose data"
invokespecial java.lang.IndexOutOfBoundsException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: int
StackMap stack:
iinc 1 1
4: iload 1
aload 0
getfield com.sun.jmx.remote.internal.ArrayQueue.capacity:I
if_icmpne 6
5: return
6: StackMap locals:
StackMap stack:
aload 0
iload 1
invokevirtual com.sun.jmx.remote.internal.ArrayQueue.newArray:(I)[Ljava/lang/Object;
astore 3
start local 3 7: iconst_0
istore 4
start local 4 8: goto 11
9: StackMap locals: java.lang.Object[] int
StackMap stack:
aload 3
iload 4
aload 0
iload 4
invokevirtual com.sun.jmx.remote.internal.ArrayQueue.get:(I)Ljava/lang/Object;
aastore
10: iinc 4 1
StackMap locals:
StackMap stack:
11: iload 4
iload 2
if_icmplt 9
end local 4 12: aload 0
iload 1
putfield com.sun.jmx.remote.internal.ArrayQueue.capacity:I
13: aload 0
aload 3
putfield com.sun.jmx.remote.internal.ArrayQueue.queue:[Ljava/lang/Object;
14: aload 0
iconst_0
putfield com.sun.jmx.remote.internal.ArrayQueue.head:I
15: aload 0
iload 2
putfield com.sun.jmx.remote.internal.ArrayQueue.tail:I
16: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lcom/sun/jmx/remote/internal/ArrayQueue<TT;>;
0 17 1 newcapacity I
1 17 2 size I
7 17 3 newqueue [Ljava/lang/Object;
8 12 4 i I
MethodParameters:
Name Flags
newcapacity
private T[] newArray();
descriptor: (I)[Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: iload 1
anewarray java.lang.Object
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/jmx/remote/internal/ArrayQueue<TT;>;
0 1 1 size I
Signature: (I)[TT;
MethodParameters:
Name Flags
size
public boolean add();
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.jmx.remote.internal.ArrayQueue.queue:[Ljava/lang/Object;
aload 0
getfield com.sun.jmx.remote.internal.ArrayQueue.tail:I
aload 1
aastore
1: aload 0
getfield com.sun.jmx.remote.internal.ArrayQueue.tail:I
iconst_1
iadd
aload 0
getfield com.sun.jmx.remote.internal.ArrayQueue.capacity:I
irem
istore 2
start local 2 2: iload 2
aload 0
getfield com.sun.jmx.remote.internal.ArrayQueue.head:I
if_icmpne 4
3: new java.lang.IndexOutOfBoundsException
dup
ldc "Queue full"
invokespecial java.lang.IndexOutOfBoundsException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: int
StackMap stack:
aload 0
iload 2
putfield com.sun.jmx.remote.internal.ArrayQueue.tail:I
5: iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/sun/jmx/remote/internal/ArrayQueue<TT;>;
0 6 1 o TT;
2 6 2 newtail I
Signature: (TT;)Z
MethodParameters:
Name Flags
o
public T remove();
descriptor: (I)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: iload 1
ifeq 2
1: new java.lang.IllegalArgumentException
dup
ldc "Can only remove head of queue"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.jmx.remote.internal.ArrayQueue.head:I
aload 0
getfield com.sun.jmx.remote.internal.ArrayQueue.tail:I
if_icmpne 4
3: new java.lang.IndexOutOfBoundsException
dup
ldc "Queue empty"
invokespecial java.lang.IndexOutOfBoundsException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.jmx.remote.internal.ArrayQueue.queue:[Ljava/lang/Object;
aload 0
getfield com.sun.jmx.remote.internal.ArrayQueue.head:I
aaload
astore 2
start local 2 5: aload 0
getfield com.sun.jmx.remote.internal.ArrayQueue.queue:[Ljava/lang/Object;
aload 0
getfield com.sun.jmx.remote.internal.ArrayQueue.head:I
aconst_null
aastore
6: aload 0
aload 0
getfield com.sun.jmx.remote.internal.ArrayQueue.head:I
iconst_1
iadd
aload 0
getfield com.sun.jmx.remote.internal.ArrayQueue.capacity:I
irem
putfield com.sun.jmx.remote.internal.ArrayQueue.head:I
7: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/sun/jmx/remote/internal/ArrayQueue<TT;>;
0 8 1 i I
5 8 2 removed TT;
Signature: (I)TT;
MethodParameters:
Name Flags
i
public T get();
descriptor: (I)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual com.sun.jmx.remote.internal.ArrayQueue.size:()I
istore 2
start local 2 1: iload 1
iflt 2
iload 1
iload 2
if_icmplt 4
2: StackMap locals: int
StackMap stack:
new java.lang.StringBuilder
dup
ldc "Index "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ", queue size "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
start local 3 3: new java.lang.IndexOutOfBoundsException
dup
aload 3
invokespecial java.lang.IndexOutOfBoundsException.<init>:(Ljava/lang/String;)V
athrow
end local 3 4: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.jmx.remote.internal.ArrayQueue.head:I
iload 1
iadd
aload 0
getfield com.sun.jmx.remote.internal.ArrayQueue.capacity:I
irem
istore 3
start local 3 5: aload 0
getfield com.sun.jmx.remote.internal.ArrayQueue.queue:[Ljava/lang/Object;
iload 3
aaload
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/sun/jmx/remote/internal/ArrayQueue<TT;>;
0 6 1 i I
1 6 2 size I
3 4 3 msg Ljava/lang/String;
5 6 3 index I
Signature: (I)TT;
MethodParameters:
Name Flags
i
public int size();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield com.sun.jmx.remote.internal.ArrayQueue.tail:I
aload 0
getfield com.sun.jmx.remote.internal.ArrayQueue.head:I
isub
istore 1
start local 1 1: iload 1
ifge 3
2: iload 1
aload 0
getfield com.sun.jmx.remote.internal.ArrayQueue.capacity:I
iadd
istore 1
3: StackMap locals: int
StackMap stack:
iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/jmx/remote/internal/ArrayQueue<TT;>;
1 4 1 diff I
}
Signature: <T:Ljava/lang/Object;>Ljava/util/AbstractList<TT;>;
SourceFile: "ArrayQueue.java"