final class com.google.protobuf.util.JsonFormat$PrettyTextGenerator implements com.google.protobuf.util.JsonFormat$TextGenerator
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: com.google.protobuf.util.JsonFormat$PrettyTextGenerator
super_class: java.lang.Object
{
private final java.lang.Appendable output;
descriptor: Ljava/lang/Appendable;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.StringBuilder indent;
descriptor: Ljava/lang/StringBuilder;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private boolean atStartOfLine;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private void <init>(java.lang.Appendable);
descriptor: (Ljava/lang/Appendable;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
putfield com.google.protobuf.util.JsonFormat$PrettyTextGenerator.indent:Ljava/lang/StringBuilder;
2: aload 0
iconst_1
putfield com.google.protobuf.util.JsonFormat$PrettyTextGenerator.atStartOfLine:Z
3: aload 0
aload 1
putfield com.google.protobuf.util.JsonFormat$PrettyTextGenerator.output:Ljava/lang/Appendable;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/google/protobuf/util/JsonFormat$PrettyTextGenerator;
0 5 1 output Ljava/lang/Appendable;
MethodParameters:
Name Flags
output final
public void indent();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.protobuf.util.JsonFormat$PrettyTextGenerator.indent:Ljava/lang/StringBuilder;
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/google/protobuf/util/JsonFormat$PrettyTextGenerator;
public void outdent();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield com.google.protobuf.util.JsonFormat$PrettyTextGenerator.indent:Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.length:()I
istore 1
start local 1 1: iload 1
iconst_2
if_icmpge 3
2: new java.lang.IllegalArgumentException
dup
ldc " Outdent() without matching Indent()."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: int
StackMap stack:
aload 0
getfield com.google.protobuf.util.JsonFormat$PrettyTextGenerator.indent:Ljava/lang/StringBuilder;
iload 1
iconst_2
isub
iload 1
invokevirtual java.lang.StringBuilder.delete:(II)Ljava/lang/StringBuilder;
pop
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/google/protobuf/util/JsonFormat$PrettyTextGenerator;
1 5 1 length I
public void print(java.lang.CharSequence);
descriptor: (Ljava/lang/CharSequence;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface java.lang.CharSequence.length:()I
istore 2
start local 2 1: iconst_0
istore 3
start local 3 2: iconst_0
istore 4
start local 4 3: goto 9
4: StackMap locals: int int int
StackMap stack:
aload 1
iload 4
invokeinterface java.lang.CharSequence.charAt:(I)C
bipush 10
if_icmpne 8
5: aload 0
aload 1
iload 3
iload 4
iconst_1
iadd
invokeinterface java.lang.CharSequence.subSequence:(II)Ljava/lang/CharSequence;
invokevirtual com.google.protobuf.util.JsonFormat$PrettyTextGenerator.write:(Ljava/lang/CharSequence;)V
6: iload 4
iconst_1
iadd
istore 3
7: aload 0
iconst_1
putfield com.google.protobuf.util.JsonFormat$PrettyTextGenerator.atStartOfLine:Z
8: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
9: iload 4
iload 2
if_icmplt 4
end local 4 10: aload 0
aload 1
iload 3
iload 2
invokeinterface java.lang.CharSequence.subSequence:(II)Ljava/lang/CharSequence;
invokevirtual com.google.protobuf.util.JsonFormat$PrettyTextGenerator.write:(Ljava/lang/CharSequence;)V
11: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lcom/google/protobuf/util/JsonFormat$PrettyTextGenerator;
0 12 1 text Ljava/lang/CharSequence;
1 12 2 size I
2 12 3 pos I
3 10 4 i I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
text final
private void write(java.lang.CharSequence);
descriptor: (Ljava/lang/CharSequence;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface java.lang.CharSequence.length:()I
ifne 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
getfield com.google.protobuf.util.JsonFormat$PrettyTextGenerator.atStartOfLine:Z
ifeq 5
3: aload 0
iconst_0
putfield com.google.protobuf.util.JsonFormat$PrettyTextGenerator.atStartOfLine:Z
4: aload 0
getfield com.google.protobuf.util.JsonFormat$PrettyTextGenerator.output:Ljava/lang/Appendable;
aload 0
getfield com.google.protobuf.util.JsonFormat$PrettyTextGenerator.indent:Ljava/lang/StringBuilder;
invokeinterface java.lang.Appendable.append:(Ljava/lang/CharSequence;)Ljava/lang/Appendable;
pop
5: StackMap locals:
StackMap stack:
aload 0
getfield com.google.protobuf.util.JsonFormat$PrettyTextGenerator.output:Ljava/lang/Appendable;
aload 1
invokeinterface java.lang.Appendable.append:(Ljava/lang/CharSequence;)Ljava/lang/Appendable;
pop
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/google/protobuf/util/JsonFormat$PrettyTextGenerator;
0 7 1 data Ljava/lang/CharSequence;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
data final
}
SourceFile: "JsonFormat.java"
NestHost: com.google.protobuf.util.JsonFormat
InnerClasses:
private final PrettyTextGenerator = com.google.protobuf.util.JsonFormat$PrettyTextGenerator of com.google.protobuf.util.JsonFormat
abstract TextGenerator = com.google.protobuf.util.JsonFormat$TextGenerator of com.google.protobuf.util.JsonFormat