public class jdk.internal.org.jline.reader.impl.BufferImpl implements jdk.internal.org.jline.reader.Buffer
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.internal.org.jline.reader.impl.BufferImpl
super_class: java.lang.Object
{
private int cursor;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int cursorCol;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int[] buffer;
descriptor: [I
flags: (0x0002) ACC_PRIVATE
private int g0;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int g1;
descriptor: I
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
bipush 64
invokespecial jdk.internal.org.jline.reader.impl.BufferImpl.<init>:(I)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/org/jline/reader/impl/BufferImpl;
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.org.jline.reader.impl.BufferImpl.cursor:I
2: aload 0
iconst_m1
putfield jdk.internal.org.jline.reader.impl.BufferImpl.cursorCol:I
3: aload 0
iload 1
newarray 10
putfield jdk.internal.org.jline.reader.impl.BufferImpl.buffer:[I
4: aload 0
iconst_0
putfield jdk.internal.org.jline.reader.impl.BufferImpl.g0:I
5: aload 0
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.buffer:[I
arraylength
putfield jdk.internal.org.jline.reader.impl.BufferImpl.g1:I
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/internal/org/jline/reader/impl/BufferImpl;
0 7 1 size I
MethodParameters:
Name Flags
size
private void <init>(jdk.internal.org.jline.reader.impl.BufferImpl);
descriptor: (Ljdk/internal/org/jline/reader/impl/BufferImpl;)V
flags: (0x0002) ACC_PRIVATE
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.org.jline.reader.impl.BufferImpl.cursor:I
2: aload 0
iconst_m1
putfield jdk.internal.org.jline.reader.impl.BufferImpl.cursorCol:I
3: aload 0
aload 1
getfield jdk.internal.org.jline.reader.impl.BufferImpl.cursor:I
putfield jdk.internal.org.jline.reader.impl.BufferImpl.cursor:I
4: aload 0
aload 1
getfield jdk.internal.org.jline.reader.impl.BufferImpl.cursorCol:I
putfield jdk.internal.org.jline.reader.impl.BufferImpl.cursorCol:I
5: aload 0
aload 1
getfield jdk.internal.org.jline.reader.impl.BufferImpl.buffer:[I
invokevirtual int[].clone:()Ljava/lang/Object;
checkcast int[]
putfield jdk.internal.org.jline.reader.impl.BufferImpl.buffer:[I
6: aload 0
aload 1
getfield jdk.internal.org.jline.reader.impl.BufferImpl.g0:I
putfield jdk.internal.org.jline.reader.impl.BufferImpl.g0:I
7: aload 0
aload 1
getfield jdk.internal.org.jline.reader.impl.BufferImpl.g1:I
putfield jdk.internal.org.jline.reader.impl.BufferImpl.g1:I
8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/internal/org/jline/reader/impl/BufferImpl;
0 9 1 buffer Ljdk/internal/org/jline/reader/impl/BufferImpl;
MethodParameters:
Name Flags
buffer
public jdk.internal.org.jline.reader.impl.BufferImpl copy();
descriptor: ()Ljdk/internal/org/jline/reader/impl/BufferImpl;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new jdk.internal.org.jline.reader.impl.BufferImpl
dup
aload 0
invokespecial jdk.internal.org.jline.reader.impl.BufferImpl.<init>:(Ljdk/internal/org/jline/reader/impl/BufferImpl;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/org/jline/reader/impl/BufferImpl;
public int cursor();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.cursor:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/org/jline/reader/impl/BufferImpl;
public int length();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.buffer:[I
arraylength
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.g1:I
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.g0:I
isub
isub
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/org/jline/reader/impl/BufferImpl;
public boolean currChar(int);
descriptor: (I)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.cursor:I
aload 0
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.length:()I
if_icmpne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.buffer:[I
aload 0
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.cursor:I
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.adjust:(I)I
iload 1
iastore
3: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/org/jline/reader/impl/BufferImpl;
0 4 1 ch I
MethodParameters:
Name Flags
ch
public int currChar();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.cursor:I
aload 0
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.length:()I
if_icmpne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.cursor:I
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.atChar:(I)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/org/jline/reader/impl/BufferImpl;
public int prevChar();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.cursor:I
ifgt 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.cursor:I
iconst_1
isub
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.atChar:(I)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/org/jline/reader/impl/BufferImpl;
public int nextChar();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.cursor:I
aload 0
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.length:()I
iconst_1
isub
if_icmplt 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.cursor:I
iconst_1
iadd
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.atChar:(I)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/org/jline/reader/impl/BufferImpl;
public int atChar(int);
descriptor: (I)I
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
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.length:()I
if_icmplt 2
1: StackMap locals:
StackMap stack:
iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.buffer:[I
aload 0
iload 1
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.adjust:(I)I
iaload
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/org/jline/reader/impl/BufferImpl;
0 3 1 i I
MethodParameters:
Name Flags
i
private int adjust(int);
descriptor: (I)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iload 1
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.g0:I
if_icmplt 1
iload 1
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.g1:I
iadd
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.g0:I
isub
goto 2
StackMap locals:
StackMap stack:
1: iload 1
StackMap locals:
StackMap stack: int
2: ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/org/jline/reader/impl/BufferImpl;
0 3 1 i I
MethodParameters:
Name Flags
i
public void write(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
iconst_1
newarray 10
dup
iconst_0
iload 1
iastore
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.write:([I)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/org/jline/reader/impl/BufferImpl;
0 2 1 c I
MethodParameters:
Name Flags
c
public void write(int, boolean);
descriptor: (IZ)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iload 2
ifeq 2
1: aload 0
iconst_1
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.delete:(I)I
pop
2: StackMap locals:
StackMap stack:
aload 0
iconst_1
newarray 10
dup
iconst_0
iload 1
iastore
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.write:([I)V
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/org/jline/reader/impl/BufferImpl;
0 4 1 c I
0 4 2 overTyping Z
MethodParameters:
Name Flags
c
overTyping
public void write(java.lang.CharSequence);
descriptor: (Ljava/lang/CharSequence;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
aload 1
invokeinterface java.lang.CharSequence.codePoints:()Ljava/util/stream/IntStream;
invokeinterface java.util.stream.IntStream.toArray:()[I
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.write:([I)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/org/jline/reader/impl/BufferImpl;
0 3 1 str Ljava/lang/CharSequence;
MethodParameters:
Name Flags
str
public void write(java.lang.CharSequence, boolean);
descriptor: (Ljava/lang/CharSequence;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 1
invokeinterface java.lang.CharSequence.codePoints:()Ljava/util/stream/IntStream;
invokeinterface java.util.stream.IntStream.toArray:()[I
astore 3
start local 3 2: iload 2
ifeq 4
3: aload 0
aload 3
arraylength
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.delete:(I)I
pop
4: StackMap locals: int[]
StackMap stack:
aload 0
aload 3
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.write:([I)V
5: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/internal/org/jline/reader/impl/BufferImpl;
0 6 1 str Ljava/lang/CharSequence;
0 6 2 overTyping Z
2 6 3 ucps [I
MethodParameters:
Name Flags
str
overTyping
private void write(int[]);
descriptor: ([I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=5, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.moveGapToCursor:()V
1: aload 0
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.length:()I
aload 1
arraylength
iadd
istore 2
start local 2 2: aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.buffer:[I
arraylength
istore 3
start local 3 3: iload 3
iload 2
if_icmpge 12
4: goto 6
5: StackMap locals: int int
StackMap stack:
iload 3
iconst_2
imul
istore 3
6: StackMap locals:
StackMap stack:
iload 3
iload 2
if_icmplt 5
7: iload 3
newarray 10
astore 4
start local 4 8: aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.buffer:[I
iconst_0
aload 4
iconst_0
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.g0:I
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
9: aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.buffer:[I
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.g1:I
aload 4
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.g1:I
iload 3
iadd
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.buffer:[I
arraylength
isub
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.buffer:[I
arraylength
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.g1:I
isub
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
10: aload 0
dup
getfield jdk.internal.org.jline.reader.impl.BufferImpl.g1:I
iload 3
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.buffer:[I
arraylength
isub
iadd
putfield jdk.internal.org.jline.reader.impl.BufferImpl.g1:I
11: aload 0
aload 4
putfield jdk.internal.org.jline.reader.impl.BufferImpl.buffer:[I
end local 4 12: StackMap locals:
StackMap stack:
aload 1
iconst_0
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.buffer:[I
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.cursor:I
aload 1
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
13: aload 0
dup
getfield jdk.internal.org.jline.reader.impl.BufferImpl.g0:I
aload 1
arraylength
iadd
putfield jdk.internal.org.jline.reader.impl.BufferImpl.g0:I
14: aload 0
dup
getfield jdk.internal.org.jline.reader.impl.BufferImpl.cursor:I
aload 1
arraylength
iadd
putfield jdk.internal.org.jline.reader.impl.BufferImpl.cursor:I
15: aload 0
iconst_m1
putfield jdk.internal.org.jline.reader.impl.BufferImpl.cursorCol: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 Ljdk/internal/org/jline/reader/impl/BufferImpl;
0 17 1 ucps [I
2 17 2 len I
3 17 3 sz I
8 12 4 nb [I
MethodParameters:
Name Flags
ucps
public boolean clear();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.length:()I
ifne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield jdk.internal.org.jline.reader.impl.BufferImpl.g0:I
3: aload 0
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.buffer:[I
arraylength
putfield jdk.internal.org.jline.reader.impl.BufferImpl.g1:I
4: aload 0
iconst_0
putfield jdk.internal.org.jline.reader.impl.BufferImpl.cursor:I
5: aload 0
iconst_m1
putfield jdk.internal.org.jline.reader.impl.BufferImpl.cursorCol:I
6: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/internal/org/jline/reader/impl/BufferImpl;
public java.lang.String substring(int);
descriptor: (I)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
aload 0
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.length:()I
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.substring:(II)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/org/jline/reader/impl/BufferImpl;
0 1 1 start I
MethodParameters:
Name Flags
start
public java.lang.String substring(int, int);
descriptor: (II)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: iload 1
iload 2
if_icmpge 1
iload 1
iflt 1
iload 2
aload 0
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.length:()I
if_icmple 2
1: StackMap locals:
StackMap stack:
ldc ""
areturn
2: StackMap locals:
StackMap stack:
iload 2
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.g0:I
if_icmpgt 4
3: new java.lang.String
dup
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.buffer:[I
iload 1
iload 2
iload 1
isub
invokespecial java.lang.String.<init>:([III)V
areturn
4: StackMap locals:
StackMap stack:
iload 1
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.g0:I
if_icmple 6
5: new java.lang.String
dup
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.buffer:[I
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.g1:I
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.g0:I
isub
iload 1
iadd
iload 2
iload 1
isub
invokespecial java.lang.String.<init>:([III)V
areturn
6: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.buffer:[I
invokevirtual int[].clone:()Ljava/lang/Object;
checkcast int[]
astore 3
start local 3 7: aload 3
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.g1:I
aload 3
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.g0:I
aload 3
arraylength
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.g1:I
isub
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
8: new java.lang.String
dup
aload 3
iload 1
iload 2
iload 1
isub
invokespecial java.lang.String.<init>:([III)V
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/internal/org/jline/reader/impl/BufferImpl;
0 9 1 start I
0 9 2 end I
7 9 3 b [I
MethodParameters:
Name Flags
start
end
public java.lang.String upToCursor();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.cursor:I
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.substring:(II)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/org/jline/reader/impl/BufferImpl;
public boolean cursor(int);
descriptor: (I)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: iload 1
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.cursor:I
if_icmpne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
iload 1
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.cursor:I
isub
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.move:(I)I
ifeq 3
iconst_1
ireturn
StackMap locals:
StackMap stack:
3: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/org/jline/reader/impl/BufferImpl;
0 4 1 position I
MethodParameters:
Name Flags
position
public int move(int);
descriptor: (I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: iload 1
istore 2
start local 2 1: aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.cursor:I
ifne 3
iload 2
ifgt 3
2: iconst_0
ireturn
3: StackMap locals: int
StackMap stack:
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.cursor:I
aload 0
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.length:()I
if_icmpne 5
iload 2
iflt 5
4: iconst_0
ireturn
5: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.cursor:I
iload 2
iadd
ifge 8
6: aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.cursor:I
ineg
istore 2
7: goto 10
8: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.cursor:I
iload 2
iadd
aload 0
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.length:()I
if_icmple 10
9: aload 0
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.length:()I
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.cursor:I
isub
istore 2
10: StackMap locals:
StackMap stack:
aload 0
dup
getfield jdk.internal.org.jline.reader.impl.BufferImpl.cursor:I
iload 2
iadd
putfield jdk.internal.org.jline.reader.impl.BufferImpl.cursor:I
11: aload 0
iconst_m1
putfield jdk.internal.org.jline.reader.impl.BufferImpl.cursorCol:I
12: iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljdk/internal/org/jline/reader/impl/BufferImpl;
0 13 1 num I
1 13 2 where I
MethodParameters:
Name Flags
num final
public boolean up();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.getCursorCol:()I
istore 1
start local 1 1: aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.cursor:I
iconst_1
isub
istore 2
start local 2 2: goto 4
3: StackMap locals: int int
StackMap stack:
iinc 2 -1
4: StackMap locals:
StackMap stack:
iload 2
iflt 5
aload 0
iload 2
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.atChar:(I)I
bipush 10
if_icmpne 3
5: StackMap locals:
StackMap stack:
iload 2
ifge 7
6: iconst_0
ireturn
7: StackMap locals:
StackMap stack:
iload 2
iconst_1
isub
istore 3
start local 3 8: goto 10
9: StackMap locals: int
StackMap stack:
iinc 3 -1
10: StackMap locals:
StackMap stack:
iload 3
iflt 11
aload 0
iload 3
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.atChar:(I)I
bipush 10
if_icmpne 9
11: StackMap locals:
StackMap stack:
aload 0
iload 3
iload 1
iadd
iconst_1
iadd
iload 2
invokestatic java.lang.Math.min:(II)I
putfield jdk.internal.org.jline.reader.impl.BufferImpl.cursor:I
12: iconst_1
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljdk/internal/org/jline/reader/impl/BufferImpl;
1 13 1 col I
2 13 2 pnl I
8 13 3 ppnl I
public boolean down();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.getCursorCol:()I
istore 1
start local 1 1: aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.cursor:I
istore 2
start local 2 2: goto 4
3: StackMap locals: int int
StackMap stack:
iinc 2 1
4: StackMap locals:
StackMap stack:
iload 2
aload 0
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.length:()I
if_icmpge 5
aload 0
iload 2
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.atChar:(I)I
bipush 10
if_icmpne 3
5: StackMap locals:
StackMap stack:
iload 2
aload 0
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.length:()I
if_icmplt 7
6: iconst_0
ireturn
7: StackMap locals:
StackMap stack:
iload 2
iconst_1
iadd
istore 3
start local 3 8: goto 10
9: StackMap locals: int
StackMap stack:
iinc 3 1
10: StackMap locals:
StackMap stack:
iload 3
aload 0
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.length:()I
if_icmpge 11
aload 0
iload 3
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.atChar:(I)I
bipush 10
if_icmpne 9
11: StackMap locals:
StackMap stack:
aload 0
iload 2
iload 1
iadd
iconst_1
iadd
iload 3
invokestatic java.lang.Math.min:(II)I
putfield jdk.internal.org.jline.reader.impl.BufferImpl.cursor:I
12: iconst_1
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljdk/internal/org/jline/reader/impl/BufferImpl;
1 13 1 col I
2 13 2 nnl I
8 13 3 nnnl I
public boolean moveXY(int, int);
descriptor: (II)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=3
start local 0 start local 1 start local 2 0: iconst_0
istore 3
start local 3 1: goto 3
2: StackMap locals: int
StackMap stack:
iinc 3 1
3: StackMap locals:
StackMap stack:
aload 0
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.prevChar:()I
bipush 10
if_icmpeq 4
aload 0
iconst_m1
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.move:(I)I
iconst_m1
if_icmpeq 2
4: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield jdk.internal.org.jline.reader.impl.BufferImpl.cursorCol:I
5: goto 8
6: StackMap locals:
StackMap stack:
aload 0
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.up:()Z
pop
7: iinc 2 1
8: StackMap locals:
StackMap stack:
iload 2
iflt 6
9: goto 12
10: StackMap locals:
StackMap stack:
aload 0
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.down:()Z
pop
11: iinc 2 -1
12: StackMap locals:
StackMap stack:
iload 2
ifgt 10
13: iload 3
iload 1
iadd
iconst_0
invokestatic java.lang.Math.max:(II)I
istore 3
14: iconst_0
istore 4
start local 4 15: goto 19
16: StackMap locals: int
StackMap stack:
aload 0
iconst_1
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.move:(I)I
iconst_1
if_icmpne 20
aload 0
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.currChar:()I
bipush 10
if_icmpne 18
17: goto 20
18: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
19: iload 4
iload 3
if_icmplt 16
end local 4 20: StackMap locals:
StackMap stack:
aload 0
iload 3
putfield jdk.internal.org.jline.reader.impl.BufferImpl.cursorCol:I
21: iconst_1
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Ljdk/internal/org/jline/reader/impl/BufferImpl;
0 22 1 dx I
0 22 2 dy I
1 22 3 col I
15 20 4 i I
MethodParameters:
Name Flags
dx
dy
private int getCursorCol();
descriptor: ()I
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.cursorCol:I
ifge 7
1: aload 0
iconst_0
putfield jdk.internal.org.jline.reader.impl.BufferImpl.cursorCol:I
2: aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.cursor:I
iconst_1
isub
istore 1
start local 1 3: goto 5
4: StackMap locals: int
StackMap stack:
iinc 1 -1
5: StackMap locals:
StackMap stack:
iload 1
iflt 6
aload 0
iload 1
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.atChar:(I)I
bipush 10
if_icmpne 4
6: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.cursor:I
iload 1
isub
iconst_1
isub
putfield jdk.internal.org.jline.reader.impl.BufferImpl.cursorCol:I
end local 1 7: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.cursorCol:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/internal/org/jline/reader/impl/BufferImpl;
3 7 1 pnl I
public int backspace(int);
descriptor: (I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.cursor:I
iload 1
invokestatic java.lang.Math.min:(II)I
iconst_0
invokestatic java.lang.Math.max:(II)I
istore 2
start local 2 1: aload 0
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.moveGapToCursor:()V
2: aload 0
dup
getfield jdk.internal.org.jline.reader.impl.BufferImpl.cursor:I
iload 2
isub
putfield jdk.internal.org.jline.reader.impl.BufferImpl.cursor:I
3: aload 0
dup
getfield jdk.internal.org.jline.reader.impl.BufferImpl.g0:I
iload 2
isub
putfield jdk.internal.org.jline.reader.impl.BufferImpl.g0:I
4: aload 0
iconst_m1
putfield jdk.internal.org.jline.reader.impl.BufferImpl.cursorCol:I
5: iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/internal/org/jline/reader/impl/BufferImpl;
0 6 1 num I
1 6 2 count I
MethodParameters:
Name Flags
num final
public boolean backspace();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.backspace:(I)I
iconst_1
if_icmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/org/jline/reader/impl/BufferImpl;
public int delete(int);
descriptor: (I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.length:()I
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.cursor:I
isub
iload 1
invokestatic java.lang.Math.min:(II)I
iconst_0
invokestatic java.lang.Math.max:(II)I
istore 2
start local 2 1: aload 0
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.moveGapToCursor:()V
2: aload 0
dup
getfield jdk.internal.org.jline.reader.impl.BufferImpl.g1:I
iload 2
iadd
putfield jdk.internal.org.jline.reader.impl.BufferImpl.g1:I
3: aload 0
iconst_m1
putfield jdk.internal.org.jline.reader.impl.BufferImpl.cursorCol:I
4: iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/org/jline/reader/impl/BufferImpl;
0 5 1 num I
1 5 2 count I
MethodParameters:
Name Flags
num
public boolean delete();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.delete:(I)I
iconst_1
if_icmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/org/jline/reader/impl/BufferImpl;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
aload 0
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.length:()I
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.substring:(II)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/org/jline/reader/impl/BufferImpl;
public void copyFrom(jdk.internal.org.jline.reader.Buffer);
descriptor: (Ljdk/internal/org/jline/reader/Buffer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
instanceof jdk.internal.org.jline.reader.impl.BufferImpl
ifne 2
1: new java.lang.IllegalStateException
dup
invokespecial java.lang.IllegalStateException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 1
checkcast jdk.internal.org.jline.reader.impl.BufferImpl
astore 2
start local 2 3: aload 0
aload 2
getfield jdk.internal.org.jline.reader.impl.BufferImpl.g0:I
putfield jdk.internal.org.jline.reader.impl.BufferImpl.g0:I
4: aload 0
aload 2
getfield jdk.internal.org.jline.reader.impl.BufferImpl.g1:I
putfield jdk.internal.org.jline.reader.impl.BufferImpl.g1:I
5: aload 0
aload 2
getfield jdk.internal.org.jline.reader.impl.BufferImpl.buffer:[I
invokevirtual int[].clone:()Ljava/lang/Object;
checkcast int[]
putfield jdk.internal.org.jline.reader.impl.BufferImpl.buffer:[I
6: aload 0
aload 2
getfield jdk.internal.org.jline.reader.impl.BufferImpl.cursor:I
putfield jdk.internal.org.jline.reader.impl.BufferImpl.cursor:I
7: aload 0
aload 2
getfield jdk.internal.org.jline.reader.impl.BufferImpl.cursorCol:I
putfield jdk.internal.org.jline.reader.impl.BufferImpl.cursorCol:I
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/internal/org/jline/reader/impl/BufferImpl;
0 9 1 buf Ljdk/internal/org/jline/reader/Buffer;
3 9 2 that Ljdk/internal/org/jline/reader/impl/BufferImpl;
MethodParameters:
Name Flags
buf
private void moveGapToCursor();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.cursor:I
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.g0:I
if_icmpge 6
1: aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.g0:I
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.cursor:I
isub
istore 1
start local 1 2: aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.buffer:[I
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.cursor:I
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.buffer:[I
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.g1:I
iload 1
isub
iload 1
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
3: aload 0
dup
getfield jdk.internal.org.jline.reader.impl.BufferImpl.g0:I
iload 1
isub
putfield jdk.internal.org.jline.reader.impl.BufferImpl.g0:I
4: aload 0
dup
getfield jdk.internal.org.jline.reader.impl.BufferImpl.g1:I
iload 1
isub
putfield jdk.internal.org.jline.reader.impl.BufferImpl.g1:I
end local 1 5: goto 11
StackMap locals:
StackMap stack:
6: aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.cursor:I
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.g0:I
if_icmple 11
7: aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.cursor:I
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.g0:I
isub
istore 1
start local 1 8: aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.buffer:[I
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.g1:I
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.buffer:[I
aload 0
getfield jdk.internal.org.jline.reader.impl.BufferImpl.g0:I
iload 1
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
9: aload 0
dup
getfield jdk.internal.org.jline.reader.impl.BufferImpl.g0:I
iload 1
iadd
putfield jdk.internal.org.jline.reader.impl.BufferImpl.g0:I
10: aload 0
dup
getfield jdk.internal.org.jline.reader.impl.BufferImpl.g1:I
iload 1
iadd
putfield jdk.internal.org.jline.reader.impl.BufferImpl.g1:I
end local 1 11: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljdk/internal/org/jline/reader/impl/BufferImpl;
2 5 1 l I
8 11 1 l I
public jdk.internal.org.jline.reader.Buffer copy();
descriptor: ()Ljdk/internal/org/jline/reader/Buffer;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual jdk.internal.org.jline.reader.impl.BufferImpl.copy:()Ljdk/internal/org/jline/reader/impl/BufferImpl;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "BufferImpl.java"