public class ch.qos.logback.core.helpers.CyclicBuffer<E>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: ch.qos.logback.core.helpers.CyclicBuffer
super_class: java.lang.Object
{
E[] ea;
descriptor: [Ljava/lang/Object;
flags: (0x0000)
Signature: [TE;
int first;
descriptor: I
flags: (0x0000)
int last;
descriptor: I
flags: (0x0000)
int numElems;
descriptor: I
flags: (0x0000)
int maxSize;
descriptor: I
flags: (0x0000)
public void <init>(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: iload 1
iconst_1
if_icmpge 3
2: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "The maxSize argument ("
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ") is not a positive integer."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: ch.qos.logback.core.helpers.CyclicBuffer int
StackMap stack:
aload 0
iload 1
invokevirtual ch.qos.logback.core.helpers.CyclicBuffer.init:(I)V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lch/qos/logback/core/helpers/CyclicBuffer<TE;>;
0 5 1 maxSize I
Exceptions:
throws java.lang.IllegalArgumentException
MethodParameters:
Name Flags
maxSize
public void <init>(ch.qos.logback.core.helpers.CyclicBuffer<E>);
descriptor: (Lch/qos/logback/core/helpers/CyclicBuffer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, 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
getfield ch.qos.logback.core.helpers.CyclicBuffer.maxSize:I
putfield ch.qos.logback.core.helpers.CyclicBuffer.maxSize:I
2: aload 0
aload 0
getfield ch.qos.logback.core.helpers.CyclicBuffer.maxSize:I
anewarray java.lang.Object
putfield ch.qos.logback.core.helpers.CyclicBuffer.ea:[Ljava/lang/Object;
3: aload 1
getfield ch.qos.logback.core.helpers.CyclicBuffer.ea:[Ljava/lang/Object;
iconst_0
aload 0
getfield ch.qos.logback.core.helpers.CyclicBuffer.ea:[Ljava/lang/Object;
iconst_0
aload 0
getfield ch.qos.logback.core.helpers.CyclicBuffer.maxSize:I
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
4: aload 0
aload 1
getfield ch.qos.logback.core.helpers.CyclicBuffer.last:I
putfield ch.qos.logback.core.helpers.CyclicBuffer.last:I
5: aload 0
aload 1
getfield ch.qos.logback.core.helpers.CyclicBuffer.first:I
putfield ch.qos.logback.core.helpers.CyclicBuffer.first:I
6: aload 0
aload 1
getfield ch.qos.logback.core.helpers.CyclicBuffer.numElems:I
putfield ch.qos.logback.core.helpers.CyclicBuffer.numElems:I
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lch/qos/logback/core/helpers/CyclicBuffer<TE;>;
0 8 1 other Lch/qos/logback/core/helpers/CyclicBuffer<TE;>;
Signature: (Lch/qos/logback/core/helpers/CyclicBuffer<TE;>;)V
MethodParameters:
Name Flags
other
private void init(int);
descriptor: (I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield ch.qos.logback.core.helpers.CyclicBuffer.maxSize:I
1: aload 0
iload 1
anewarray java.lang.Object
putfield ch.qos.logback.core.helpers.CyclicBuffer.ea:[Ljava/lang/Object;
2: aload 0
iconst_0
putfield ch.qos.logback.core.helpers.CyclicBuffer.first:I
3: aload 0
iconst_0
putfield ch.qos.logback.core.helpers.CyclicBuffer.last:I
4: aload 0
iconst_0
putfield ch.qos.logback.core.helpers.CyclicBuffer.numElems:I
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lch/qos/logback/core/helpers/CyclicBuffer<TE;>;
0 6 1 maxSize I
MethodParameters:
Name Flags
maxSize
public void clear();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getfield ch.qos.logback.core.helpers.CyclicBuffer.maxSize:I
invokevirtual ch.qos.logback.core.helpers.CyclicBuffer.init:(I)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lch/qos/logback/core/helpers/CyclicBuffer<TE;>;
public void add();
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield ch.qos.logback.core.helpers.CyclicBuffer.ea:[Ljava/lang/Object;
aload 0
getfield ch.qos.logback.core.helpers.CyclicBuffer.last:I
aload 1
aastore
1: aload 0
dup
getfield ch.qos.logback.core.helpers.CyclicBuffer.last:I
iconst_1
iadd
dup_x1
putfield ch.qos.logback.core.helpers.CyclicBuffer.last:I
aload 0
getfield ch.qos.logback.core.helpers.CyclicBuffer.maxSize:I
if_icmpne 3
2: aload 0
iconst_0
putfield ch.qos.logback.core.helpers.CyclicBuffer.last:I
3: StackMap locals:
StackMap stack:
aload 0
getfield ch.qos.logback.core.helpers.CyclicBuffer.numElems:I
aload 0
getfield ch.qos.logback.core.helpers.CyclicBuffer.maxSize:I
if_icmpge 5
4: aload 0
dup
getfield ch.qos.logback.core.helpers.CyclicBuffer.numElems:I
iconst_1
iadd
putfield ch.qos.logback.core.helpers.CyclicBuffer.numElems:I
goto 7
5: StackMap locals:
StackMap stack:
aload 0
dup
getfield ch.qos.logback.core.helpers.CyclicBuffer.first:I
iconst_1
iadd
dup_x1
putfield ch.qos.logback.core.helpers.CyclicBuffer.first:I
aload 0
getfield ch.qos.logback.core.helpers.CyclicBuffer.maxSize:I
if_icmpne 7
6: aload 0
iconst_0
putfield ch.qos.logback.core.helpers.CyclicBuffer.first:I
7: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lch/qos/logback/core/helpers/CyclicBuffer<TE;>;
0 8 1 event TE;
Signature: (TE;)V
MethodParameters:
Name Flags
event
public E get();
descriptor: (I)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: iload 1
iflt 1
iload 1
aload 0
getfield ch.qos.logback.core.helpers.CyclicBuffer.numElems:I
if_icmplt 2
1: StackMap locals:
StackMap stack:
aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield ch.qos.logback.core.helpers.CyclicBuffer.ea:[Ljava/lang/Object;
aload 0
getfield ch.qos.logback.core.helpers.CyclicBuffer.first:I
iload 1
iadd
aload 0
getfield ch.qos.logback.core.helpers.CyclicBuffer.maxSize:I
irem
aaload
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lch/qos/logback/core/helpers/CyclicBuffer<TE;>;
0 3 1 i I
Signature: (I)TE;
MethodParameters:
Name Flags
i
public int getMaxSize();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield ch.qos.logback.core.helpers.CyclicBuffer.maxSize:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lch/qos/logback/core/helpers/CyclicBuffer<TE;>;
public E get();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: aload 0
getfield ch.qos.logback.core.helpers.CyclicBuffer.numElems:I
ifle 7
2: aload 0
dup
getfield ch.qos.logback.core.helpers.CyclicBuffer.numElems:I
iconst_1
isub
putfield ch.qos.logback.core.helpers.CyclicBuffer.numElems:I
3: aload 0
getfield ch.qos.logback.core.helpers.CyclicBuffer.ea:[Ljava/lang/Object;
aload 0
getfield ch.qos.logback.core.helpers.CyclicBuffer.first:I
aaload
astore 1
4: aload 0
getfield ch.qos.logback.core.helpers.CyclicBuffer.ea:[Ljava/lang/Object;
aload 0
getfield ch.qos.logback.core.helpers.CyclicBuffer.first:I
aconst_null
aastore
5: aload 0
dup
getfield ch.qos.logback.core.helpers.CyclicBuffer.first:I
iconst_1
iadd
dup_x1
putfield ch.qos.logback.core.helpers.CyclicBuffer.first:I
aload 0
getfield ch.qos.logback.core.helpers.CyclicBuffer.maxSize:I
if_icmpne 7
6: aload 0
iconst_0
putfield ch.qos.logback.core.helpers.CyclicBuffer.first:I
7: StackMap locals: java.lang.Object
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lch/qos/logback/core/helpers/CyclicBuffer<TE;>;
1 8 1 r TE;
Signature: ()TE;
public java.util.List<E> asList();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 5
3: StackMap locals: java.util.List int
StackMap stack:
aload 1
aload 0
iload 2
invokevirtual ch.qos.logback.core.helpers.CyclicBuffer.get:(I)Ljava/lang/Object;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
4: iinc 2 1
StackMap locals:
StackMap stack:
5: iload 2
aload 0
invokevirtual ch.qos.logback.core.helpers.CyclicBuffer.length:()I
if_icmplt 3
end local 2 6: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lch/qos/logback/core/helpers/CyclicBuffer<TE;>;
1 7 1 tList Ljava/util/List<TE;>;
2 6 2 i I
Signature: ()Ljava/util/List<TE;>;
public int length();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield ch.qos.logback.core.helpers.CyclicBuffer.numElems:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lch/qos/logback/core/helpers/CyclicBuffer<TE;>;
public void resize(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: iload 1
ifge 2
1: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Negative array size ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "] not allowed."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
iload 1
aload 0
getfield ch.qos.logback.core.helpers.CyclicBuffer.numElems:I
if_icmpne 4
3: return
4: StackMap locals:
StackMap stack:
iload 1
anewarray java.lang.Object
astore 2
start local 2 5: iload 1
aload 0
getfield ch.qos.logback.core.helpers.CyclicBuffer.numElems:I
if_icmpge 6
iload 1
goto 7
StackMap locals: java.lang.Object[]
StackMap stack:
6: aload 0
getfield ch.qos.logback.core.helpers.CyclicBuffer.numElems:I
StackMap locals:
StackMap stack: int
7: istore 3
start local 3 8: iconst_0
istore 4
start local 4 9: goto 15
10: StackMap locals: int int
StackMap stack:
aload 2
iload 4
aload 0
getfield ch.qos.logback.core.helpers.CyclicBuffer.ea:[Ljava/lang/Object;
aload 0
getfield ch.qos.logback.core.helpers.CyclicBuffer.first:I
aaload
aastore
11: aload 0
getfield ch.qos.logback.core.helpers.CyclicBuffer.ea:[Ljava/lang/Object;
aload 0
getfield ch.qos.logback.core.helpers.CyclicBuffer.first:I
aconst_null
aastore
12: aload 0
dup
getfield ch.qos.logback.core.helpers.CyclicBuffer.first:I
iconst_1
iadd
dup_x1
putfield ch.qos.logback.core.helpers.CyclicBuffer.first:I
aload 0
getfield ch.qos.logback.core.helpers.CyclicBuffer.numElems:I
if_icmpne 14
13: aload 0
iconst_0
putfield ch.qos.logback.core.helpers.CyclicBuffer.first:I
14: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
15: iload 4
iload 3
if_icmplt 10
end local 4 16: aload 0
aload 2
putfield ch.qos.logback.core.helpers.CyclicBuffer.ea:[Ljava/lang/Object;
17: aload 0
iconst_0
putfield ch.qos.logback.core.helpers.CyclicBuffer.first:I
18: aload 0
iload 3
putfield ch.qos.logback.core.helpers.CyclicBuffer.numElems:I
19: aload 0
iload 1
putfield ch.qos.logback.core.helpers.CyclicBuffer.maxSize:I
20: iload 3
iload 1
if_icmpne 23
21: aload 0
iconst_0
putfield ch.qos.logback.core.helpers.CyclicBuffer.last:I
22: goto 24
23: StackMap locals:
StackMap stack:
aload 0
iload 3
putfield ch.qos.logback.core.helpers.CyclicBuffer.last:I
24: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Lch/qos/logback/core/helpers/CyclicBuffer<TE;>;
0 25 1 newSize I
5 25 2 temp [Ljava/lang/Object;
8 25 3 loopLen I
9 16 4 i I
MethodParameters:
Name Flags
newSize
}
Signature: <E:Ljava/lang/Object;>Ljava/lang/Object;
SourceFile: "CyclicBuffer.java"