public class jdk.internal.jline.console.CursorBuffer
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.internal.jline.console.CursorBuffer
super_class: java.lang.Object
{
private boolean overTyping;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
public int cursor;
descriptor: I
flags: (0x0001) ACC_PUBLIC
public final java.lang.StringBuilder buffer;
descriptor: Ljava/lang/StringBuilder;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield jdk.internal.jline.console.CursorBuffer.overTyping:Z
2: aload 0
iconst_0
putfield jdk.internal.jline.console.CursorBuffer.cursor:I
3: aload 0
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
putfield jdk.internal.jline.console.CursorBuffer.buffer:Ljava/lang/StringBuilder;
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/jline/console/CursorBuffer;
public jdk.internal.jline.console.CursorBuffer copy();
descriptor: ()Ljdk/internal/jline/console/CursorBuffer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: new jdk.internal.jline.console.CursorBuffer
dup
invokespecial jdk.internal.jline.console.CursorBuffer.<init>:()V
astore 1
start local 1 1: aload 1
aload 0
getfield jdk.internal.jline.console.CursorBuffer.overTyping:Z
putfield jdk.internal.jline.console.CursorBuffer.overTyping:Z
2: aload 1
aload 0
getfield jdk.internal.jline.console.CursorBuffer.cursor:I
putfield jdk.internal.jline.console.CursorBuffer.cursor:I
3: aload 1
getfield jdk.internal.jline.console.CursorBuffer.buffer:Ljava/lang/StringBuilder;
aload 0
invokevirtual jdk.internal.jline.console.CursorBuffer.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
4: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/jline/console/CursorBuffer;
1 5 1 that Ljdk/internal/jline/console/CursorBuffer;
public boolean isOverTyping();
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.CursorBuffer.overTyping:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jline/console/CursorBuffer;
public void setOverTyping(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield jdk.internal.jline.console.CursorBuffer.overTyping:Z
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/jline/console/CursorBuffer;
0 2 1 b Z
MethodParameters:
Name Flags
b final
public int length();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jline.console.CursorBuffer.buffer:Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.length:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jline/console/CursorBuffer;
public char nextChar();
descriptor: ()C
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jline.console.CursorBuffer.cursor:I
aload 0
getfield jdk.internal.jline.console.CursorBuffer.buffer:Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.length:()I
if_icmpne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jline.console.CursorBuffer.buffer:Ljava/lang/StringBuilder;
aload 0
getfield jdk.internal.jline.console.CursorBuffer.cursor:I
invokevirtual java.lang.StringBuilder.charAt:(I)C
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/jline/console/CursorBuffer;
public char current();
descriptor: ()C
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jline.console.CursorBuffer.cursor:I
ifgt 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jline.console.CursorBuffer.buffer:Ljava/lang/StringBuilder;
aload 0
getfield jdk.internal.jline.console.CursorBuffer.cursor:I
iconst_1
isub
invokevirtual java.lang.StringBuilder.charAt:(I)C
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/jline/console/CursorBuffer;
public void write(char);
descriptor: (C)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.jline.console.CursorBuffer.buffer:Ljava/lang/StringBuilder;
aload 0
dup
getfield jdk.internal.jline.console.CursorBuffer.cursor:I
dup_x1
iconst_1
iadd
putfield jdk.internal.jline.console.CursorBuffer.cursor:I
iload 1
invokevirtual java.lang.StringBuilder.insert:(IC)Ljava/lang/StringBuilder;
pop
1: aload 0
invokevirtual jdk.internal.jline.console.CursorBuffer.isOverTyping:()Z
ifeq 3
aload 0
getfield jdk.internal.jline.console.CursorBuffer.cursor:I
aload 0
getfield jdk.internal.jline.console.CursorBuffer.buffer:Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.length:()I
if_icmpge 3
2: aload 0
getfield jdk.internal.jline.console.CursorBuffer.buffer:Ljava/lang/StringBuilder;
aload 0
getfield jdk.internal.jline.console.CursorBuffer.cursor:I
invokevirtual java.lang.StringBuilder.deleteCharAt:(I)Ljava/lang/StringBuilder;
pop
3: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/jline/console/CursorBuffer;
0 4 1 c C
MethodParameters:
Name Flags
c final
public void write(java.lang.CharSequence);
descriptor: (Ljava/lang/CharSequence;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic jdk.internal.jline.internal.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
getfield jdk.internal.jline.console.CursorBuffer.buffer:Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.length:()I
ifne 4
2: aload 0
getfield jdk.internal.jline.console.CursorBuffer.buffer:Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/CharSequence;)Ljava/lang/StringBuilder;
pop
3: goto 5
4: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jline.console.CursorBuffer.buffer:Ljava/lang/StringBuilder;
aload 0
getfield jdk.internal.jline.console.CursorBuffer.cursor:I
aload 1
invokevirtual java.lang.StringBuilder.insert:(ILjava/lang/CharSequence;)Ljava/lang/StringBuilder;
pop
5: StackMap locals:
StackMap stack:
aload 0
dup
getfield jdk.internal.jline.console.CursorBuffer.cursor:I
aload 1
invokeinterface java.lang.CharSequence.length:()I
iadd
putfield jdk.internal.jline.console.CursorBuffer.cursor:I
6: aload 0
invokevirtual jdk.internal.jline.console.CursorBuffer.isOverTyping:()Z
ifeq 8
aload 0
getfield jdk.internal.jline.console.CursorBuffer.cursor:I
aload 0
getfield jdk.internal.jline.console.CursorBuffer.buffer:Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.length:()I
if_icmpge 8
7: aload 0
getfield jdk.internal.jline.console.CursorBuffer.buffer:Ljava/lang/StringBuilder;
aload 0
getfield jdk.internal.jline.console.CursorBuffer.cursor:I
aload 0
getfield jdk.internal.jline.console.CursorBuffer.cursor:I
aload 1
invokeinterface java.lang.CharSequence.length:()I
iadd
invokevirtual java.lang.StringBuilder.delete:(II)Ljava/lang/StringBuilder;
pop
8: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/internal/jline/console/CursorBuffer;
0 9 1 str Ljava/lang/CharSequence;
MethodParameters:
Name Flags
str final
public boolean clear();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jline.console.CursorBuffer.buffer:Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.length:()I
ifne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jline.console.CursorBuffer.buffer:Ljava/lang/StringBuilder;
iconst_0
aload 0
getfield jdk.internal.jline.console.CursorBuffer.buffer:Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.length:()I
invokevirtual java.lang.StringBuilder.delete:(II)Ljava/lang/StringBuilder;
pop
3: aload 0
iconst_0
putfield jdk.internal.jline.console.CursorBuffer.cursor:I
4: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/jline/console/CursorBuffer;
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
getfield jdk.internal.jline.console.CursorBuffer.cursor:I
ifgt 2
1: ldc ""
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jline.console.CursorBuffer.buffer:Ljava/lang/StringBuilder;
iconst_0
aload 0
getfield jdk.internal.jline.console.CursorBuffer.cursor:I
invokevirtual java.lang.StringBuilder.substring:(II)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/jline/console/CursorBuffer;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jline.console.CursorBuffer.buffer:Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jline/console/CursorBuffer;
}
SourceFile: "CursorBuffer.java"