public abstract class org.glassfish.grizzly.memory.AbstractBufferArray<E>
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.glassfish.grizzly.memory.AbstractBufferArray
super_class: java.lang.Object
{
protected final java.lang.Class<E> clazz;
descriptor: Ljava/lang/Class;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Signature: Ljava/lang/Class<TE;>;
private E[] byteBufferArray;
descriptor: [Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Signature: [TE;
private org.glassfish.grizzly.memory.AbstractBufferArray$PosLim[] initStateArray;
descriptor: [Lorg/glassfish/grizzly/memory/AbstractBufferArray$PosLim;
flags: (0x0002) ACC_PRIVATE
private int size;
descriptor: I
flags: (0x0002) ACC_PRIVATE
protected abstract void setPositionLimit(E, int, );
descriptor: (Ljava/lang/Object;II)V
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Signature: (TE;II)V
MethodParameters:
Name Flags
buffer
position
limit
protected abstract int getPosition();
descriptor: (Ljava/lang/Object;)I
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Signature: (TE;)I
MethodParameters:
Name Flags
buffer
protected abstract int getLimit();
descriptor: (Ljava/lang/Object;)I
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Signature: (TE;)I
MethodParameters:
Name Flags
buffer
protected void <init>(java.lang.Class<E>);
descriptor: (Ljava/lang/Class;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.glassfish.grizzly.memory.AbstractBufferArray.clazz:Ljava/lang/Class;
2: aload 0
aload 1
iconst_4
invokestatic java.lang.reflect.Array.newInstance:(Ljava/lang/Class;I)Ljava/lang/Object;
checkcast java.lang.Object[]
putfield org.glassfish.grizzly.memory.AbstractBufferArray.byteBufferArray:[Ljava/lang/Object;
3: aload 0
iconst_4
anewarray org.glassfish.grizzly.memory.AbstractBufferArray$PosLim
putfield org.glassfish.grizzly.memory.AbstractBufferArray.initStateArray:[Lorg/glassfish/grizzly/memory/AbstractBufferArray$PosLim;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/glassfish/grizzly/memory/AbstractBufferArray<TE;>;
0 5 1 clazz Ljava/lang/Class<TE;>;
Signature: (Ljava/lang/Class<TE;>;)V
MethodParameters:
Name Flags
clazz
public void add();
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aload 0
aload 1
invokevirtual org.glassfish.grizzly.memory.AbstractBufferArray.getPosition:(Ljava/lang/Object;)I
aload 0
aload 1
invokevirtual org.glassfish.grizzly.memory.AbstractBufferArray.getLimit:(Ljava/lang/Object;)I
invokevirtual org.glassfish.grizzly.memory.AbstractBufferArray.add:(Ljava/lang/Object;II)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/memory/AbstractBufferArray<TE;>;
0 2 1 byteBuffer TE;
Signature: (TE;)V
MethodParameters:
Name Flags
byteBuffer final
public void add(E, int, );
descriptor: (Ljava/lang/Object;II)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
iconst_1
invokevirtual org.glassfish.grizzly.memory.AbstractBufferArray.ensureCapacity:(I)V
1: aload 0
getfield org.glassfish.grizzly.memory.AbstractBufferArray.byteBufferArray:[Ljava/lang/Object;
aload 0
getfield org.glassfish.grizzly.memory.AbstractBufferArray.size:I
aload 1
aastore
2: aload 0
getfield org.glassfish.grizzly.memory.AbstractBufferArray.initStateArray:[Lorg/glassfish/grizzly/memory/AbstractBufferArray$PosLim;
aload 0
getfield org.glassfish.grizzly.memory.AbstractBufferArray.size:I
aaload
astore 4
start local 4 3: aload 4
ifnonnull 6
4: new org.glassfish.grizzly.memory.AbstractBufferArray$PosLim
dup
invokespecial org.glassfish.grizzly.memory.AbstractBufferArray$PosLim.<init>:()V
astore 4
5: aload 0
getfield org.glassfish.grizzly.memory.AbstractBufferArray.initStateArray:[Lorg/glassfish/grizzly/memory/AbstractBufferArray$PosLim;
aload 0
getfield org.glassfish.grizzly.memory.AbstractBufferArray.size:I
aload 4
aastore
6: StackMap locals: org.glassfish.grizzly.memory.AbstractBufferArray$PosLim
StackMap stack:
aload 4
aload 0
aload 1
invokevirtual org.glassfish.grizzly.memory.AbstractBufferArray.getPosition:(Ljava/lang/Object;)I
putfield org.glassfish.grizzly.memory.AbstractBufferArray$PosLim.initialPosition:I
7: aload 4
aload 0
aload 1
invokevirtual org.glassfish.grizzly.memory.AbstractBufferArray.getLimit:(Ljava/lang/Object;)I
putfield org.glassfish.grizzly.memory.AbstractBufferArray$PosLim.initialLimit:I
8: aload 4
iload 2
putfield org.glassfish.grizzly.memory.AbstractBufferArray$PosLim.restorePosition:I
9: aload 4
iload 3
putfield org.glassfish.grizzly.memory.AbstractBufferArray$PosLim.restoreLimit:I
10: aload 0
dup
getfield org.glassfish.grizzly.memory.AbstractBufferArray.size:I
iconst_1
iadd
putfield org.glassfish.grizzly.memory.AbstractBufferArray.size:I
11: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/glassfish/grizzly/memory/AbstractBufferArray<TE;>;
0 12 1 byteBuffer TE;
0 12 2 restorePosition I
0 12 3 restoreLimit I
3 12 4 poslim Lorg/glassfish/grizzly/memory/AbstractBufferArray$PosLim;
Signature: (TE;II)V
MethodParameters:
Name Flags
byteBuffer final
restorePosition final
restoreLimit final
public E[] getArray();
descriptor: ()[Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.memory.AbstractBufferArray.byteBufferArray:[Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/memory/AbstractBufferArray<TE;>;
Signature: ()[TE;
public void restore();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: goto 5
2: StackMap locals: int
StackMap stack:
aload 0
getfield org.glassfish.grizzly.memory.AbstractBufferArray.initStateArray:[Lorg/glassfish/grizzly/memory/AbstractBufferArray$PosLim;
iload 1
aaload
astore 2
start local 2 3: aload 0
aload 0
getfield org.glassfish.grizzly.memory.AbstractBufferArray.byteBufferArray:[Ljava/lang/Object;
iload 1
aaload
aload 2
getfield org.glassfish.grizzly.memory.AbstractBufferArray$PosLim.restorePosition:I
aload 2
getfield org.glassfish.grizzly.memory.AbstractBufferArray$PosLim.restoreLimit:I
invokevirtual org.glassfish.grizzly.memory.AbstractBufferArray.setPositionLimit:(Ljava/lang/Object;II)V
end local 2 4: iinc 1 1
StackMap locals:
StackMap stack:
5: iload 1
aload 0
getfield org.glassfish.grizzly.memory.AbstractBufferArray.size:I
if_icmplt 2
end local 1 6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/glassfish/grizzly/memory/AbstractBufferArray<TE;>;
1 6 1 i I
3 4 2 poslim Lorg/glassfish/grizzly/memory/AbstractBufferArray$PosLim;
public final int getInitialPosition(int);
descriptor: (I)I
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.glassfish.grizzly.memory.AbstractBufferArray.initStateArray:[Lorg/glassfish/grizzly/memory/AbstractBufferArray$PosLim;
iload 1
aaload
getfield org.glassfish.grizzly.memory.AbstractBufferArray$PosLim.initialPosition:I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/memory/AbstractBufferArray<TE;>;
0 1 1 idx I
MethodParameters:
Name Flags
idx final
public int getInitialLimit(int);
descriptor: (I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.glassfish.grizzly.memory.AbstractBufferArray.initStateArray:[Lorg/glassfish/grizzly/memory/AbstractBufferArray$PosLim;
iload 1
aaload
getfield org.glassfish.grizzly.memory.AbstractBufferArray$PosLim.initialLimit:I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/memory/AbstractBufferArray<TE;>;
0 1 1 idx I
MethodParameters:
Name Flags
idx final
public final int getInitialBufferSize(int);
descriptor: (I)I
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokevirtual org.glassfish.grizzly.memory.AbstractBufferArray.getInitialLimit:(I)I
aload 0
iload 1
invokevirtual org.glassfish.grizzly.memory.AbstractBufferArray.getInitialPosition:(I)I
isub
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/memory/AbstractBufferArray<TE;>;
0 1 1 idx I
MethodParameters:
Name Flags
idx final
public int size();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.memory.AbstractBufferArray.size:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/memory/AbstractBufferArray<TE;>;
private void ensureCapacity(int);
descriptor: (I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.glassfish.grizzly.memory.AbstractBufferArray.byteBufferArray:[Ljava/lang/Object;
arraylength
aload 0
getfield org.glassfish.grizzly.memory.AbstractBufferArray.size:I
isub
istore 2
start local 2 1: iload 2
iload 1
if_icmplt 3
2: return
3: StackMap locals: int
StackMap stack:
iload 2
aload 0
getfield org.glassfish.grizzly.memory.AbstractBufferArray.size:I
iadd
aload 0
getfield org.glassfish.grizzly.memory.AbstractBufferArray.byteBufferArray:[Ljava/lang/Object;
arraylength
iconst_3
imul
iconst_2
idiv
iconst_1
iadd
invokestatic java.lang.Math.max:(II)I
istore 3
start local 3 4: aload 0
aload 0
getfield org.glassfish.grizzly.memory.AbstractBufferArray.byteBufferArray:[Ljava/lang/Object;
iload 3
invokestatic java.util.Arrays.copyOf:([Ljava/lang/Object;I)[Ljava/lang/Object;
putfield org.glassfish.grizzly.memory.AbstractBufferArray.byteBufferArray:[Ljava/lang/Object;
5: aload 0
aload 0
getfield org.glassfish.grizzly.memory.AbstractBufferArray.initStateArray:[Lorg/glassfish/grizzly/memory/AbstractBufferArray$PosLim;
iload 3
invokestatic java.util.Arrays.copyOf:([Ljava/lang/Object;I)[Ljava/lang/Object;
checkcast org.glassfish.grizzly.memory.AbstractBufferArray$PosLim[]
putfield org.glassfish.grizzly.memory.AbstractBufferArray.initStateArray:[Lorg/glassfish/grizzly/memory/AbstractBufferArray$PosLim;
6: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/glassfish/grizzly/memory/AbstractBufferArray<TE;>;
0 7 1 grow I
1 7 2 diff I
4 7 3 newSize I
MethodParameters:
Name Flags
grow final
public void reset();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.memory.AbstractBufferArray.byteBufferArray:[Ljava/lang/Object;
iconst_0
aload 0
getfield org.glassfish.grizzly.memory.AbstractBufferArray.size:I
aconst_null
invokestatic java.util.Arrays.fill:([Ljava/lang/Object;IILjava/lang/Object;)V
1: aload 0
iconst_0
putfield org.glassfish.grizzly.memory.AbstractBufferArray.size:I
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/memory/AbstractBufferArray<TE;>;
public void recycle();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.glassfish.grizzly.memory.AbstractBufferArray.reset:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/memory/AbstractBufferArray<TE;>;
}
Signature: <E:Ljava/lang/Object;>Ljava/lang/Object;
SourceFile: "AbstractBufferArray.java"
NestMembers:
org.glassfish.grizzly.memory.AbstractBufferArray$PosLim
InnerClasses:
private final PosLim = org.glassfish.grizzly.memory.AbstractBufferArray$PosLim of org.glassfish.grizzly.memory.AbstractBufferArray