class org.bson.json.JsonStringBuffer implements org.bson.json.JsonBuffer
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.bson.json.JsonStringBuffer
super_class: java.lang.Object
{
private final java.lang.String buffer;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private int position;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private boolean eof;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0000)
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
aload 1
putfield org.bson.json.JsonStringBuffer.buffer:Ljava/lang/String;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bson/json/JsonStringBuffer;
0 3 1 buffer Ljava/lang/String;
MethodParameters:
Name Flags
buffer final
public int getPosition();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bson.json.JsonStringBuffer.position:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/json/JsonStringBuffer;
public int read();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bson.json.JsonStringBuffer.eof:Z
ifeq 2
1: new org.bson.json.JsonParseException
dup
ldc "Trying to read past EOF."
invokespecial org.bson.json.JsonParseException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.bson.json.JsonStringBuffer.position:I
aload 0
getfield org.bson.json.JsonStringBuffer.buffer:Ljava/lang/String;
invokevirtual java.lang.String.length:()I
if_icmplt 5
3: aload 0
iconst_1
putfield org.bson.json.JsonStringBuffer.eof:Z
4: iconst_m1
ireturn
5: StackMap locals:
StackMap stack:
aload 0
getfield org.bson.json.JsonStringBuffer.buffer:Ljava/lang/String;
aload 0
dup
getfield org.bson.json.JsonStringBuffer.position:I
dup_x1
iconst_1
iadd
putfield org.bson.json.JsonStringBuffer.position:I
invokevirtual java.lang.String.charAt:(I)C
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/bson/json/JsonStringBuffer;
public void unread(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_0
putfield org.bson.json.JsonStringBuffer.eof:Z
1: iload 1
iconst_m1
if_icmpeq 3
aload 0
getfield org.bson.json.JsonStringBuffer.buffer:Ljava/lang/String;
aload 0
getfield org.bson.json.JsonStringBuffer.position:I
iconst_1
isub
invokevirtual java.lang.String.charAt:(I)C
iload 1
if_icmpne 3
2: aload 0
dup
getfield org.bson.json.JsonStringBuffer.position:I
iconst_1
isub
putfield org.bson.json.JsonStringBuffer.position:I
3: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bson/json/JsonStringBuffer;
0 4 1 c I
MethodParameters:
Name Flags
c final
public int mark();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bson.json.JsonStringBuffer.position:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/json/JsonStringBuffer;
public void reset(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: iload 1
aload 0
getfield org.bson.json.JsonStringBuffer.position:I
if_icmple 2
1: new java.lang.IllegalStateException
dup
ldc "mark cannot reset ahead of position, only back"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
iload 1
putfield org.bson.json.JsonStringBuffer.position:I
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bson/json/JsonStringBuffer;
0 4 1 markPos I
MethodParameters:
Name Flags
markPos final
public void discard(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/json/JsonStringBuffer;
0 1 1 markPos I
MethodParameters:
Name Flags
markPos final
}
SourceFile: "JsonStringBuffer.java"