abstract class jdk.jfr.internal.tool.StructuredWriter
minor version: 0
major version: 59
flags: flags: (0x0420) ACC_SUPER, ACC_ABSTRACT
this_class: jdk.jfr.internal.tool.StructuredWriter
super_class: java.lang.Object
{
private static final java.lang.String LINE_SEPARATOR;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.io.PrintWriter out;
descriptor: Ljava/io/PrintWriter;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.StringBuilder builder;
descriptor: Ljava/lang/StringBuilder;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private char[] indentionArray;
descriptor: [C
flags: (0x0002) ACC_PRIVATE
private int indent;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int column;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private boolean first;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc "%n"
iconst_0
anewarray java.lang.Object
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
putstatic jdk.jfr.internal.tool.StructuredWriter.LINE_SEPARATOR:Ljava/lang/String;
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(java.io.PrintWriter);
descriptor: (Ljava/io/PrintWriter;)V
flags: (0x0000)
Code:
stack=4, 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
sipush 4000
invokespecial java.lang.StringBuilder.<init>:(I)V
putfield jdk.jfr.internal.tool.StructuredWriter.builder:Ljava/lang/StringBuilder;
2: aload 0
iconst_0
newarray 5
putfield jdk.jfr.internal.tool.StructuredWriter.indentionArray:[C
3: aload 0
iconst_0
putfield jdk.jfr.internal.tool.StructuredWriter.indent:I
4: aload 0
iconst_1
putfield jdk.jfr.internal.tool.StructuredWriter.first:Z
5: aload 0
aload 1
putfield jdk.jfr.internal.tool.StructuredWriter.out:Ljava/io/PrintWriter;
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/jfr/internal/tool/StructuredWriter;
0 7 1 p Ljava/io/PrintWriter;
MethodParameters:
Name Flags
p
protected final int getColumn();
descriptor: ()I
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.jfr.internal.tool.StructuredWriter.column:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jfr/internal/tool/StructuredWriter;
public final void flush(boolean);
descriptor: (Z)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifeq 4
1: aload 0
getfield jdk.jfr.internal.tool.StructuredWriter.out:Ljava/io/PrintWriter;
aload 0
getfield jdk.jfr.internal.tool.StructuredWriter.builder:Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintWriter.print:(Ljava/lang/String;)V
2: aload 0
getfield jdk.jfr.internal.tool.StructuredWriter.builder:Ljava/lang/StringBuilder;
iconst_0
invokevirtual java.lang.StringBuilder.setLength:(I)V
3: return
4: StackMap locals:
StackMap stack:
aload 0
getfield jdk.jfr.internal.tool.StructuredWriter.first:Z
ifne 5
aload 0
getfield jdk.jfr.internal.tool.StructuredWriter.builder:Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.length:()I
ldc 100000
if_icmple 8
5: StackMap locals:
StackMap stack:
aload 0
getfield jdk.jfr.internal.tool.StructuredWriter.out:Ljava/io/PrintWriter;
aload 0
getfield jdk.jfr.internal.tool.StructuredWriter.builder:Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintWriter.print:(Ljava/lang/String;)V
6: aload 0
getfield jdk.jfr.internal.tool.StructuredWriter.builder:Ljava/lang/StringBuilder;
iconst_0
invokevirtual java.lang.StringBuilder.setLength:(I)V
7: aload 0
iconst_0
putfield jdk.jfr.internal.tool.StructuredWriter.first:Z
8: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/jfr/internal/tool/StructuredWriter;
0 9 1 hard Z
MethodParameters:
Name Flags
hard
public final void printIndent();
descriptor: ()V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.jfr.internal.tool.StructuredWriter.builder:Ljava/lang/StringBuilder;
aload 0
getfield jdk.jfr.internal.tool.StructuredWriter.indentionArray:[C
iconst_0
aload 0
getfield jdk.jfr.internal.tool.StructuredWriter.indent:I
invokevirtual java.lang.StringBuilder.append:([CII)Ljava/lang/StringBuilder;
pop
1: aload 0
dup
getfield jdk.jfr.internal.tool.StructuredWriter.column:I
aload 0
getfield jdk.jfr.internal.tool.StructuredWriter.indent:I
iadd
putfield jdk.jfr.internal.tool.StructuredWriter.column:I
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/jfr/internal/tool/StructuredWriter;
public final void println();
descriptor: ()V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.jfr.internal.tool.StructuredWriter.builder:Ljava/lang/StringBuilder;
getstatic jdk.jfr.internal.tool.StructuredWriter.LINE_SEPARATOR:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
1: aload 0
iconst_0
putfield jdk.jfr.internal.tool.StructuredWriter.column:I
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/jfr/internal/tool/StructuredWriter;
public final void print(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0091) ACC_PUBLIC, ACC_FINAL, ACC_VARARGS
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: aload 1
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 4
StackMap locals: jdk.jfr.internal.tool.StructuredWriter java.lang.String[] top int int java.lang.String[]
StackMap stack:
1: aload 5
iload 3
aaload
astore 2
start local 2 2: aload 0
aload 2
invokevirtual jdk.jfr.internal.tool.StructuredWriter.print:(Ljava/lang/String;)V
end local 2 3: iinc 3 1
StackMap locals:
StackMap stack:
4: iload 3
iload 4
if_icmplt 1
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/jfr/internal/tool/StructuredWriter;
0 6 1 texts [Ljava/lang/String;
2 3 2 text Ljava/lang/String;
MethodParameters:
Name Flags
texts
public final void printAsString(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokevirtual jdk.jfr.internal.tool.StructuredWriter.print:(Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/jfr/internal/tool/StructuredWriter;
0 2 1 o Ljava/lang/Object;
MethodParameters:
Name Flags
o
public final void print(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.jfr.internal.tool.StructuredWriter.builder:Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
1: aload 0
dup
getfield jdk.jfr.internal.tool.StructuredWriter.column:I
aload 1
invokevirtual java.lang.String.length:()I
iadd
putfield jdk.jfr.internal.tool.StructuredWriter.column:I
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/jfr/internal/tool/StructuredWriter;
0 3 1 text Ljava/lang/String;
MethodParameters:
Name Flags
text
public final void print(char);
descriptor: (C)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.jfr.internal.tool.StructuredWriter.builder:Ljava/lang/StringBuilder;
iload 1
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
1: aload 0
dup
getfield jdk.jfr.internal.tool.StructuredWriter.column:I
iconst_1
iadd
putfield jdk.jfr.internal.tool.StructuredWriter.column:I
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/jfr/internal/tool/StructuredWriter;
0 3 1 c C
MethodParameters:
Name Flags
c
public final void print(int);
descriptor: (I)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokestatic java.lang.String.valueOf:(I)Ljava/lang/String;
invokevirtual jdk.jfr.internal.tool.StructuredWriter.print:(Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/jfr/internal/tool/StructuredWriter;
0 2 1 value I
MethodParameters:
Name Flags
value
public final void indent();
descriptor: ()V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
dup
getfield jdk.jfr.internal.tool.StructuredWriter.indent:I
iconst_2
iadd
putfield jdk.jfr.internal.tool.StructuredWriter.indent:I
1: aload 0
invokevirtual jdk.jfr.internal.tool.StructuredWriter.updateIndent:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/jfr/internal/tool/StructuredWriter;
public final void retract();
descriptor: ()V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
dup
getfield jdk.jfr.internal.tool.StructuredWriter.indent:I
iconst_2
isub
putfield jdk.jfr.internal.tool.StructuredWriter.indent:I
1: aload 0
invokevirtual jdk.jfr.internal.tool.StructuredWriter.updateIndent:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/jfr/internal/tool/StructuredWriter;
public final void println(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual jdk.jfr.internal.tool.StructuredWriter.print:(Ljava/lang/String;)V
1: aload 0
invokevirtual jdk.jfr.internal.tool.StructuredWriter.println:()V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/jfr/internal/tool/StructuredWriter;
0 3 1 text Ljava/lang/String;
MethodParameters:
Name Flags
text
private void updateIndent();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.jfr.internal.tool.StructuredWriter.indent:I
aload 0
getfield jdk.jfr.internal.tool.StructuredWriter.indentionArray:[C
arraylength
if_icmple 7
1: aload 0
aload 0
getfield jdk.jfr.internal.tool.StructuredWriter.indent:I
newarray 5
putfield jdk.jfr.internal.tool.StructuredWriter.indentionArray:[C
2: iconst_0
istore 1
start local 1 3: goto 6
4: StackMap locals: int
StackMap stack:
aload 0
getfield jdk.jfr.internal.tool.StructuredWriter.indentionArray:[C
iload 1
bipush 32
castore
5: iinc 1 1
StackMap locals:
StackMap stack:
6: iload 1
aload 0
getfield jdk.jfr.internal.tool.StructuredWriter.indentionArray:[C
arraylength
if_icmplt 4
end local 1 7: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/jfr/internal/tool/StructuredWriter;
3 7 1 i I
}
SourceFile: "StructuredWriter.java"