public final class jdk.internal.jline.console.KillRing
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: jdk.internal.jline.console.KillRing
super_class: java.lang.Object
{
private static final int DEFAULT_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 60
private final java.lang.String[] slots;
descriptor: [Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private int head;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private boolean lastKill;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean lastYank;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
public void <init>(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield jdk.internal.jline.console.KillRing.head:I
2: aload 0
iconst_0
putfield jdk.internal.jline.console.KillRing.lastKill:Z
3: aload 0
iconst_0
putfield jdk.internal.jline.console.KillRing.lastYank:Z
4: aload 0
iload 1
anewarray java.lang.String
putfield jdk.internal.jline.console.KillRing.slots:[Ljava/lang/String;
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/internal/jline/console/KillRing;
0 6 1 size I
MethodParameters:
Name Flags
size
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
bipush 60
invokespecial jdk.internal.jline.console.KillRing.<init>:(I)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/jline/console/KillRing;
public void resetLastYank();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
putfield jdk.internal.jline.console.KillRing.lastYank:Z
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/jline/console/KillRing;
public void resetLastKill();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
putfield jdk.internal.jline.console.KillRing.lastKill:Z
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/jline/console/KillRing;
public boolean lastYank();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jline.console.KillRing.lastYank:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jline/console/KillRing;
public void add(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_0
putfield jdk.internal.jline.console.KillRing.lastYank:Z
1: aload 0
getfield jdk.internal.jline.console.KillRing.lastKill:Z
ifeq 5
2: aload 0
getfield jdk.internal.jline.console.KillRing.slots:[Ljava/lang/String;
aload 0
getfield jdk.internal.jline.console.KillRing.head:I
aaload
ifnull 5
3: aload 0
getfield jdk.internal.jline.console.KillRing.slots:[Ljava/lang/String;
aload 0
getfield jdk.internal.jline.console.KillRing.head:I
dup2
aaload
new java.lang.StringBuilder
dup_x1
swap
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aastore
4: return
5: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield jdk.internal.jline.console.KillRing.lastKill:Z
6: aload 0
invokevirtual jdk.internal.jline.console.KillRing.next:()V
7: aload 0
getfield jdk.internal.jline.console.KillRing.slots:[Ljava/lang/String;
aload 0
getfield jdk.internal.jline.console.KillRing.head:I
aload 1
aastore
8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/internal/jline/console/KillRing;
0 9 1 str Ljava/lang/String;
MethodParameters:
Name Flags
str
public void addBackwards(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_0
putfield jdk.internal.jline.console.KillRing.lastYank:Z
1: aload 0
getfield jdk.internal.jline.console.KillRing.lastKill:Z
ifeq 5
2: aload 0
getfield jdk.internal.jline.console.KillRing.slots:[Ljava/lang/String;
aload 0
getfield jdk.internal.jline.console.KillRing.head:I
aaload
ifnull 5
3: aload 0
getfield jdk.internal.jline.console.KillRing.slots:[Ljava/lang/String;
aload 0
getfield jdk.internal.jline.console.KillRing.head:I
new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield jdk.internal.jline.console.KillRing.slots:[Ljava/lang/String;
aload 0
getfield jdk.internal.jline.console.KillRing.head:I
aaload
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aastore
4: return
5: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield jdk.internal.jline.console.KillRing.lastKill:Z
6: aload 0
invokevirtual jdk.internal.jline.console.KillRing.next:()V
7: aload 0
getfield jdk.internal.jline.console.KillRing.slots:[Ljava/lang/String;
aload 0
getfield jdk.internal.jline.console.KillRing.head:I
aload 1
aastore
8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/internal/jline/console/KillRing;
0 9 1 str Ljava/lang/String;
MethodParameters:
Name Flags
str
public java.lang.String yank();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
putfield jdk.internal.jline.console.KillRing.lastKill:Z
1: aload 0
iconst_1
putfield jdk.internal.jline.console.KillRing.lastYank:Z
2: aload 0
getfield jdk.internal.jline.console.KillRing.slots:[Ljava/lang/String;
aload 0
getfield jdk.internal.jline.console.KillRing.head:I
aaload
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/jline/console/KillRing;
public java.lang.String yankPop();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
putfield jdk.internal.jline.console.KillRing.lastKill:Z
1: aload 0
getfield jdk.internal.jline.console.KillRing.lastYank:Z
ifeq 4
2: aload 0
invokevirtual jdk.internal.jline.console.KillRing.prev:()V
3: aload 0
getfield jdk.internal.jline.console.KillRing.slots:[Ljava/lang/String;
aload 0
getfield jdk.internal.jline.console.KillRing.head:I
aaload
areturn
4: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/jline/console/KillRing;
private void next();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jline.console.KillRing.head:I
ifne 2
aload 0
getfield jdk.internal.jline.console.KillRing.slots:[Ljava/lang/String;
iconst_0
aaload
ifnonnull 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
dup
getfield jdk.internal.jline.console.KillRing.head:I
iconst_1
iadd
putfield jdk.internal.jline.console.KillRing.head:I
3: aload 0
getfield jdk.internal.jline.console.KillRing.head:I
aload 0
getfield jdk.internal.jline.console.KillRing.slots:[Ljava/lang/String;
arraylength
if_icmpne 5
4: aload 0
iconst_0
putfield jdk.internal.jline.console.KillRing.head:I
5: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/internal/jline/console/KillRing;
private void prev();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
dup
getfield jdk.internal.jline.console.KillRing.head:I
iconst_1
isub
putfield jdk.internal.jline.console.KillRing.head:I
1: aload 0
getfield jdk.internal.jline.console.KillRing.head:I
iconst_m1
if_icmpne 9
2: aload 0
getfield jdk.internal.jline.console.KillRing.slots:[Ljava/lang/String;
arraylength
iconst_1
isub
istore 1
start local 1 3: goto 7
4: StackMap locals: int
StackMap stack:
aload 0
getfield jdk.internal.jline.console.KillRing.slots:[Ljava/lang/String;
iload 1
aaload
ifnull 6
5: goto 8
6: StackMap locals:
StackMap stack:
iinc 1 -1
StackMap locals:
StackMap stack:
7: iload 1
ifge 4
8: StackMap locals:
StackMap stack:
aload 0
iload 1
putfield jdk.internal.jline.console.KillRing.head:I
end local 1 9: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljdk/internal/jline/console/KillRing;
3 9 1 x I
}
SourceFile: "KillRing.java"