final class jdk.jfr.internal.tool.XMLWriter extends jdk.jfr.internal.tool.EventPrintWriter
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.jfr.internal.tool.XMLWriter
super_class: jdk.jfr.internal.tool.EventPrintWriter
{
public void <init>(java.io.PrintWriter);
descriptor: (Ljava/io/PrintWriter;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial jdk.jfr.internal.tool.EventPrintWriter.<init>:(Ljava/io/PrintWriter;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/jfr/internal/tool/XMLWriter;
0 2 1 destination Ljava/io/PrintWriter;
MethodParameters:
Name Flags
destination
protected void printBegin();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
invokevirtual jdk.jfr.internal.tool.XMLWriter.println:(Ljava/lang/String;)V
1: aload 0
ldc "<recording xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">"
invokevirtual jdk.jfr.internal.tool.XMLWriter.println:(Ljava/lang/String;)V
2: aload 0
invokevirtual jdk.jfr.internal.tool.XMLWriter.indent:()V
3: aload 0
invokevirtual jdk.jfr.internal.tool.XMLWriter.printIndent:()V
4: aload 0
ldc "<events>"
invokevirtual jdk.jfr.internal.tool.XMLWriter.println:(Ljava/lang/String;)V
5: aload 0
invokevirtual jdk.jfr.internal.tool.XMLWriter.indent:()V
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/jfr/internal/tool/XMLWriter;
protected void printEnd();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual jdk.jfr.internal.tool.XMLWriter.retract:()V
1: aload 0
invokevirtual jdk.jfr.internal.tool.XMLWriter.printIndent:()V
2: aload 0
ldc "</events>"
invokevirtual jdk.jfr.internal.tool.XMLWriter.println:(Ljava/lang/String;)V
3: aload 0
invokevirtual jdk.jfr.internal.tool.XMLWriter.retract:()V
4: aload 0
ldc "</recording>"
invokevirtual jdk.jfr.internal.tool.XMLWriter.println:(Ljava/lang/String;)V
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/jfr/internal/tool/XMLWriter;
protected void print(java.util.List<jdk.jfr.consumer.RecordedEvent>);
descriptor: (Ljava/util/List;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 3
StackMap locals: jdk.jfr.internal.tool.XMLWriter java.util.List top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.consumer.RecordedEvent
astore 2
start local 2 2: aload 0
aload 2
invokevirtual jdk.jfr.internal.tool.XMLWriter.printEvent:(Ljdk/jfr/consumer/RecordedEvent;)V
end local 2 3: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/jfr/internal/tool/XMLWriter;
0 5 1 events Ljava/util/List<Ljdk/jfr/consumer/RecordedEvent;>;
2 3 2 event Ljdk/jfr/consumer/RecordedEvent;
Signature: (Ljava/util/List<Ljdk/jfr/consumer/RecordedEvent;>;)V
MethodParameters:
Name Flags
events
private void printEvent(jdk.jfr.consumer.RecordedEvent);
descriptor: (Ljdk/jfr/consumer/RecordedEvent;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual jdk.jfr.consumer.RecordedEvent.getEventType:()Ljdk/jfr/EventType;
astore 2
start local 2 1: aload 0
invokevirtual jdk.jfr.internal.tool.XMLWriter.printIndent:()V
2: aload 0
ldc "<event"
invokevirtual jdk.jfr.internal.tool.XMLWriter.print:(Ljava/lang/String;)V
3: aload 0
ldc "type"
aload 2
invokevirtual jdk.jfr.EventType.getName:()Ljava/lang/String;
invokevirtual jdk.jfr.internal.tool.XMLWriter.printAttribute:(Ljava/lang/String;Ljava/lang/String;)V
4: aload 0
ldc ">"
invokevirtual jdk.jfr.internal.tool.XMLWriter.print:(Ljava/lang/String;)V
5: aload 0
invokevirtual jdk.jfr.internal.tool.XMLWriter.println:()V
6: aload 0
invokevirtual jdk.jfr.internal.tool.XMLWriter.indent:()V
7: aload 1
invokevirtual jdk.jfr.consumer.RecordedEvent.getFields:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 10
StackMap locals: jdk.jfr.internal.tool.XMLWriter jdk.jfr.consumer.RecordedEvent jdk.jfr.EventType top java.util.Iterator
StackMap stack:
8: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.ValueDescriptor
astore 3
start local 3 9: aload 0
aload 3
aload 0
aload 1
aload 3
invokevirtual jdk.jfr.internal.tool.XMLWriter.getValue:(Ljdk/jfr/consumer/RecordedObject;Ljdk/jfr/ValueDescriptor;)Ljava/lang/Object;
iconst_m1
invokevirtual jdk.jfr.internal.tool.XMLWriter.printValueDescriptor:(Ljdk/jfr/ValueDescriptor;Ljava/lang/Object;I)V
end local 3 10: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 8
11: aload 0
invokevirtual jdk.jfr.internal.tool.XMLWriter.retract:()V
12: aload 0
invokevirtual jdk.jfr.internal.tool.XMLWriter.printIndent:()V
13: aload 0
ldc "</event>"
invokevirtual jdk.jfr.internal.tool.XMLWriter.println:(Ljava/lang/String;)V
14: aload 0
invokevirtual jdk.jfr.internal.tool.XMLWriter.println:()V
15: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Ljdk/jfr/internal/tool/XMLWriter;
0 16 1 event Ljdk/jfr/consumer/RecordedEvent;
1 16 2 type Ljdk/jfr/EventType;
9 10 3 v Ljdk/jfr/ValueDescriptor;
MethodParameters:
Name Flags
event
private void printAttribute(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iconst_5
anewarray java.lang.String
dup
iconst_0
ldc " "
aastore
dup
iconst_1
aload 1
aastore
dup
iconst_2
ldc "=\""
aastore
dup
iconst_3
aload 2
aastore
dup
iconst_4
ldc "\""
aastore
invokevirtual jdk.jfr.internal.tool.XMLWriter.print:([Ljava/lang/String;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/jfr/internal/tool/XMLWriter;
0 2 1 name Ljava/lang/String;
0 2 2 value Ljava/lang/String;
MethodParameters:
Name Flags
name
value
public void printObject(jdk.jfr.consumer.RecordedObject);
descriptor: (Ljdk/jfr/consumer/RecordedObject;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual jdk.jfr.internal.tool.XMLWriter.println:()V
1: aload 0
invokevirtual jdk.jfr.internal.tool.XMLWriter.indent:()V
2: aload 1
invokevirtual jdk.jfr.consumer.RecordedObject.getFields:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 5
StackMap locals: jdk.jfr.internal.tool.XMLWriter jdk.jfr.consumer.RecordedObject top java.util.Iterator
StackMap stack:
3: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.ValueDescriptor
astore 2
start local 2 4: aload 0
aload 2
aload 0
aload 1
aload 2
invokevirtual jdk.jfr.internal.tool.XMLWriter.getValue:(Ljdk/jfr/consumer/RecordedObject;Ljdk/jfr/ValueDescriptor;)Ljava/lang/Object;
iconst_m1
invokevirtual jdk.jfr.internal.tool.XMLWriter.printValueDescriptor:(Ljdk/jfr/ValueDescriptor;Ljava/lang/Object;I)V
end local 2 5: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
6: aload 0
invokevirtual jdk.jfr.internal.tool.XMLWriter.retract:()V
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/jfr/internal/tool/XMLWriter;
0 8 1 struct Ljdk/jfr/consumer/RecordedObject;
4 5 2 v Ljdk/jfr/ValueDescriptor;
MethodParameters:
Name Flags
struct
private void printArray(jdk.jfr.ValueDescriptor, java.lang.Object[]);
descriptor: (Ljdk/jfr/ValueDescriptor;[Ljava/lang/Object;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual jdk.jfr.internal.tool.XMLWriter.println:()V
1: aload 0
invokevirtual jdk.jfr.internal.tool.XMLWriter.indent:()V
2: iconst_0
istore 3
start local 3 3: iconst_0
istore 4
start local 4 4: goto 10
5: StackMap locals: int int
StackMap stack:
aload 2
iload 4
aaload
astore 5
start local 5 6: aload 5
instanceof jdk.jfr.consumer.RecordedFrame
ifeq 7
iload 3
aload 0
invokevirtual jdk.jfr.internal.tool.XMLWriter.getStackDepth:()I
if_icmpge 8
7: StackMap locals: java.lang.Object
StackMap stack:
aload 0
aload 1
aload 2
iload 4
aaload
iload 4
invokevirtual jdk.jfr.internal.tool.XMLWriter.printValueDescriptor:(Ljdk/jfr/ValueDescriptor;Ljava/lang/Object;I)V
8: StackMap locals:
StackMap stack:
iinc 3 1
end local 5 9: iinc 4 1
StackMap locals:
StackMap stack:
10: iload 4
aload 2
arraylength
if_icmplt 5
end local 4 11: aload 0
invokevirtual jdk.jfr.internal.tool.XMLWriter.retract:()V
12: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljdk/jfr/internal/tool/XMLWriter;
0 13 1 v Ljdk/jfr/ValueDescriptor;
0 13 2 array [Ljava/lang/Object;
3 13 3 depth I
4 11 4 index I
6 9 5 arrayElement Ljava/lang/Object;
MethodParameters:
Name Flags
v
array
private void printValueDescriptor(jdk.jfr.ValueDescriptor, java.lang.Object, int);
descriptor: (Ljdk/jfr/ValueDescriptor;Ljava/lang/Object;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 3
iconst_m1
if_icmpeq 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: istore 4
start local 4 3: iload 4
ifeq 4
aconst_null
goto 5
StackMap locals: int
StackMap stack:
4: aload 1
invokevirtual jdk.jfr.ValueDescriptor.getName:()Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
5: astore 5
start local 5 6: aload 1
invokevirtual jdk.jfr.ValueDescriptor.isArray:()Z
ifeq 12
iload 4
ifne 12
7: aload 0
ldc "array"
aload 5
aload 2
iload 3
invokevirtual jdk.jfr.internal.tool.XMLWriter.printBeginElement:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;I)Z
ifeq 11
8: aload 0
aload 1
aload 2
checkcast java.lang.Object[]
invokevirtual jdk.jfr.internal.tool.XMLWriter.printArray:(Ljdk/jfr/ValueDescriptor;[Ljava/lang/Object;)V
9: aload 0
invokevirtual jdk.jfr.internal.tool.XMLWriter.printIndent:()V
10: aload 0
ldc "array"
invokevirtual jdk.jfr.internal.tool.XMLWriter.printEndElement:(Ljava/lang/String;)V
11: StackMap locals: java.lang.String
StackMap stack:
return
12: StackMap locals:
StackMap stack:
aload 1
invokevirtual jdk.jfr.ValueDescriptor.getFields:()Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifne 18
13: aload 0
ldc "struct"
aload 5
aload 2
iload 3
invokevirtual jdk.jfr.internal.tool.XMLWriter.printBeginElement:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;I)Z
ifeq 17
14: aload 0
aload 2
checkcast jdk.jfr.consumer.RecordedObject
invokevirtual jdk.jfr.internal.tool.XMLWriter.printObject:(Ljdk/jfr/consumer/RecordedObject;)V
15: aload 0
invokevirtual jdk.jfr.internal.tool.XMLWriter.printIndent:()V
16: aload 0
ldc "struct"
invokevirtual jdk.jfr.internal.tool.XMLWriter.printEndElement:(Ljava/lang/String;)V
17: StackMap locals:
StackMap stack:
return
18: StackMap locals:
StackMap stack:
aload 0
ldc "value"
aload 5
aload 2
iload 3
invokevirtual jdk.jfr.internal.tool.XMLWriter.printBeginElement:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;I)Z
ifeq 21
19: aload 0
aload 2
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokevirtual jdk.jfr.internal.tool.XMLWriter.printEscaped:(Ljava/lang/String;)V
20: aload 0
ldc "value"
invokevirtual jdk.jfr.internal.tool.XMLWriter.printEndElement:(Ljava/lang/String;)V
21: StackMap locals:
StackMap stack:
return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Ljdk/jfr/internal/tool/XMLWriter;
0 22 1 vd Ljdk/jfr/ValueDescriptor;
0 22 2 value Ljava/lang/Object;
0 22 3 index I
3 22 4 arrayElement Z
6 22 5 name Ljava/lang/String;
MethodParameters:
Name Flags
vd
value
index
private boolean printBeginElement(java.lang.String, java.lang.String, java.lang.Object, int);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;I)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=6, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokevirtual jdk.jfr.internal.tool.XMLWriter.printIndent:()V
1: aload 0
iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "<"
aastore
dup
iconst_1
aload 1
aastore
invokevirtual jdk.jfr.internal.tool.XMLWriter.print:([Ljava/lang/String;)V
2: aload 2
ifnull 4
3: aload 0
ldc "name"
aload 2
invokevirtual jdk.jfr.internal.tool.XMLWriter.printAttribute:(Ljava/lang/String;Ljava/lang/String;)V
4: StackMap locals:
StackMap stack:
iload 4
iconst_m1
if_icmpeq 6
5: aload 0
ldc "index"
iload 4
invokestatic java.lang.Integer.toString:(I)Ljava/lang/String;
invokevirtual jdk.jfr.internal.tool.XMLWriter.printAttribute:(Ljava/lang/String;Ljava/lang/String;)V
6: StackMap locals:
StackMap stack:
aload 3
ifnonnull 10
7: aload 0
ldc "xsi:nil"
ldc "true"
invokevirtual jdk.jfr.internal.tool.XMLWriter.printAttribute:(Ljava/lang/String;Ljava/lang/String;)V
8: aload 0
ldc "/>"
invokevirtual jdk.jfr.internal.tool.XMLWriter.println:(Ljava/lang/String;)V
9: iconst_0
ireturn
10: StackMap locals:
StackMap stack:
aload 3
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.isArray:()Z
ifeq 13
11: aload 3
checkcast java.lang.Object[]
astore 5
start local 5 12: aload 0
ldc "size"
aload 5
arraylength
invokestatic java.lang.Integer.toString:(I)Ljava/lang/String;
invokevirtual jdk.jfr.internal.tool.XMLWriter.printAttribute:(Ljava/lang/String;Ljava/lang/String;)V
end local 5 13: StackMap locals:
StackMap stack:
aload 0
ldc ">"
invokevirtual jdk.jfr.internal.tool.XMLWriter.print:(Ljava/lang/String;)V
14: iconst_1
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Ljdk/jfr/internal/tool/XMLWriter;
0 15 1 elementName Ljava/lang/String;
0 15 2 name Ljava/lang/String;
0 15 3 value Ljava/lang/Object;
0 15 4 index I
12 13 5 array [Ljava/lang/Object;
MethodParameters:
Name Flags
elementName
name
value
index
private void printEndElement(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ldc "</"
invokevirtual jdk.jfr.internal.tool.XMLWriter.print:(Ljava/lang/String;)V
1: aload 0
aload 1
invokevirtual jdk.jfr.internal.tool.XMLWriter.print:(Ljava/lang/String;)V
2: aload 0
ldc ">"
invokevirtual jdk.jfr.internal.tool.XMLWriter.println:(Ljava/lang/String;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/jfr/internal/tool/XMLWriter;
0 4 1 elementName Ljava/lang/String;
MethodParameters:
Name Flags
elementName
private void printEscaped(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: goto 4
2: StackMap locals: int
StackMap stack:
aload 0
aload 1
iload 2
invokevirtual java.lang.String.charAt:(I)C
invokevirtual jdk.jfr.internal.tool.XMLWriter.printEscaped:(C)V
3: iinc 2 1
StackMap locals:
StackMap stack:
4: iload 2
aload 1
invokevirtual java.lang.String.length:()I
if_icmplt 2
end local 2 5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/jfr/internal/tool/XMLWriter;
0 6 1 text Ljava/lang/String;
1 5 2 i I
MethodParameters:
Name Flags
text
private void printEscaped(char);
descriptor: (C)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iload 1
bipush 34
if_icmpne 3
1: aload 0
ldc """
invokevirtual jdk.jfr.internal.tool.XMLWriter.print:(Ljava/lang/String;)V
2: return
3: StackMap locals:
StackMap stack:
iload 1
bipush 38
if_icmpne 6
4: aload 0
ldc "&"
invokevirtual jdk.jfr.internal.tool.XMLWriter.print:(Ljava/lang/String;)V
5: return
6: StackMap locals:
StackMap stack:
iload 1
bipush 39
if_icmpne 9
7: aload 0
ldc "'"
invokevirtual jdk.jfr.internal.tool.XMLWriter.print:(Ljava/lang/String;)V
8: return
9: StackMap locals:
StackMap stack:
iload 1
bipush 60
if_icmpne 12
10: aload 0
ldc "<"
invokevirtual jdk.jfr.internal.tool.XMLWriter.print:(Ljava/lang/String;)V
11: return
12: StackMap locals:
StackMap stack:
iload 1
bipush 62
if_icmpne 15
13: aload 0
ldc ">"
invokevirtual jdk.jfr.internal.tool.XMLWriter.print:(Ljava/lang/String;)V
14: return
15: StackMap locals:
StackMap stack:
iload 1
bipush 127
if_icmple 20
16: aload 0
ldc "&#"
invokevirtual jdk.jfr.internal.tool.XMLWriter.print:(Ljava/lang/String;)V
17: aload 0
iload 1
invokevirtual jdk.jfr.internal.tool.XMLWriter.print:(I)V
18: aload 0
bipush 59
invokevirtual jdk.jfr.internal.tool.XMLWriter.print:(C)V
19: return
20: StackMap locals:
StackMap stack:
aload 0
iload 1
invokevirtual jdk.jfr.internal.tool.XMLWriter.print:(C)V
21: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Ljdk/jfr/internal/tool/XMLWriter;
0 22 1 c C
MethodParameters:
Name Flags
c
}
SourceFile: "XMLWriter.java"