final class jdk.jfr.internal.MetadataWriter
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.jfr.internal.MetadataWriter
super_class: java.lang.Object
{
private final jdk.jfr.internal.MetadataDescriptor$Element metadata;
descriptor: Ljdk/jfr/internal/MetadataDescriptor$Element;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final jdk.jfr.internal.MetadataDescriptor$Element root;
descriptor: Ljdk/jfr/internal/MetadataDescriptor$Element;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(jdk.jfr.internal.MetadataDescriptor);
descriptor: (Ljdk/jfr/internal/MetadataDescriptor;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new jdk.jfr.internal.MetadataDescriptor$Element
dup
ldc "metadata"
invokespecial jdk.jfr.internal.MetadataDescriptor$Element.<init>:(Ljava/lang/String;)V
putfield jdk.jfr.internal.MetadataWriter.metadata:Ljdk/jfr/internal/MetadataDescriptor$Element;
2: aload 0
new jdk.jfr.internal.MetadataDescriptor$Element
dup
ldc "root"
invokespecial jdk.jfr.internal.MetadataDescriptor$Element.<init>:(Ljava/lang/String;)V
putfield jdk.jfr.internal.MetadataWriter.root:Ljdk/jfr/internal/MetadataDescriptor$Element;
3: aload 1
invokevirtual jdk.jfr.internal.MetadataDescriptor.getTypes:()Ljava/util/Collection;
aload 0
invokedynamic accept(Ljdk/jfr/internal/MetadataWriter;)Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
jdk/jfr/internal/MetadataWriter.lambda$0(Ljdk/jfr/internal/Type;)V (7)
(Ljdk/jfr/internal/Type;)V
invokeinterface java.util.Collection.forEach:(Ljava/util/function/Consumer;)V
4: aload 0
getfield jdk.jfr.internal.MetadataWriter.root:Ljdk/jfr/internal/MetadataDescriptor$Element;
aload 0
getfield jdk.jfr.internal.MetadataWriter.metadata:Ljdk/jfr/internal/MetadataDescriptor$Element;
invokevirtual jdk.jfr.internal.MetadataDescriptor$Element.add:(Ljdk/jfr/internal/MetadataDescriptor$Element;)V
5: new jdk.jfr.internal.MetadataDescriptor$Element
dup
ldc "region"
invokespecial jdk.jfr.internal.MetadataDescriptor$Element.<init>:(Ljava/lang/String;)V
astore 2
start local 2 6: aload 2
ldc "locale"
aload 1
getfield jdk.jfr.internal.MetadataDescriptor.locale:Ljava/lang/String;
invokevirtual jdk.jfr.internal.MetadataDescriptor$Element.addAttribute:(Ljava/lang/String;Ljava/lang/Object;)V
7: aload 2
ldc "gmtOffset"
aload 1
getfield jdk.jfr.internal.MetadataDescriptor.gmtOffset:J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokevirtual jdk.jfr.internal.MetadataDescriptor$Element.addAttribute:(Ljava/lang/String;Ljava/lang/Object;)V
8: aload 0
getfield jdk.jfr.internal.MetadataWriter.root:Ljdk/jfr/internal/MetadataDescriptor$Element;
aload 2
invokevirtual jdk.jfr.internal.MetadataDescriptor$Element.add:(Ljdk/jfr/internal/MetadataDescriptor$Element;)V
9: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljdk/jfr/internal/MetadataWriter;
0 10 1 descriptor Ljdk/jfr/internal/MetadataDescriptor;
6 10 2 region Ljdk/jfr/internal/MetadataDescriptor$Element;
MethodParameters:
Name Flags
descriptor
public void writeBinary(java.io.DataOutput);
descriptor: (Ljava/io/DataOutput;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=8, args_size=2
start local 0 start local 1 0: new java.util.HashSet
dup
sipush 1000
invokespecial java.util.HashSet.<init>:(I)V
astore 2
start local 2 1: aload 0
aload 0
getfield jdk.jfr.internal.MetadataWriter.root:Ljdk/jfr/internal/MetadataDescriptor$Element;
aload 2
invokevirtual jdk.jfr.internal.MetadataWriter.buildStringPool:(Ljdk/jfr/internal/MetadataDescriptor$Element;Ljava/util/Set;)V
2: new java.util.LinkedHashMap
dup
aload 2
invokeinterface java.util.Set.size:()I
invokespecial java.util.LinkedHashMap.<init>:(I)V
astore 3
start local 3 3: iconst_0
istore 4
start local 4 4: aload 2
invokeinterface java.util.Set.size:()I
istore 5
start local 5 5: aload 0
aload 1
iload 5
invokevirtual jdk.jfr.internal.MetadataWriter.writeInt:(Ljava/io/DataOutput;I)V
6: aload 2
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 7
goto 11
StackMap locals: jdk.jfr.internal.MetadataWriter java.io.DataOutput java.util.Set java.util.HashMap int int top java.util.Iterator
StackMap stack:
7: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 6
start local 6 8: aload 3
aload 6
iload 4
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual java.util.HashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
9: aload 0
aload 1
aload 6
invokevirtual jdk.jfr.internal.MetadataWriter.writeString:(Ljava/io/DataOutput;Ljava/lang/String;)V
10: iinc 4 1
end local 6 11: StackMap locals:
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 7
12: aload 0
aload 1
aload 0
getfield jdk.jfr.internal.MetadataWriter.root:Ljdk/jfr/internal/MetadataDescriptor$Element;
aload 3
invokevirtual jdk.jfr.internal.MetadataWriter.write:(Ljava/io/DataOutput;Ljdk/jfr/internal/MetadataDescriptor$Element;Ljava/util/HashMap;)V
13: 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 14 0 this Ljdk/jfr/internal/MetadataWriter;
0 14 1 output Ljava/io/DataOutput;
1 14 2 stringPool Ljava/util/Set<Ljava/lang/String;>;
3 14 3 lookup Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Integer;>;
4 14 4 index I
5 14 5 poolSize I
8 11 6 s Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
output
private void writeString(java.io.DataOutput, java.lang.String);
descriptor: (Ljava/io/DataOutput;Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ifnonnull 3
1: aload 1
iconst_0
invokeinterface java.io.DataOutput.writeByte:(I)V
2: return
3: StackMap locals:
StackMap stack:
aload 1
iconst_4
invokeinterface java.io.DataOutput.writeByte:(I)V
4: aload 2
invokevirtual java.lang.String.length:()I
istore 3
start local 3 5: aload 0
aload 1
iload 3
invokevirtual jdk.jfr.internal.MetadataWriter.writeInt:(Ljava/io/DataOutput;I)V
6: iconst_0
istore 4
start local 4 7: goto 10
8: StackMap locals: int int
StackMap stack:
aload 0
aload 1
aload 2
iload 4
invokevirtual java.lang.String.charAt:(I)C
invokevirtual jdk.jfr.internal.MetadataWriter.writeInt:(Ljava/io/DataOutput;I)V
9: iinc 4 1
StackMap locals:
StackMap stack:
10: iload 4
iload 3
if_icmplt 8
end local 4 11: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljdk/jfr/internal/MetadataWriter;
0 12 1 out Ljava/io/DataOutput;
0 12 2 s Ljava/lang/String;
5 12 3 length I
7 11 4 i I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
out
s
private void writeInt(java.io.DataOutput, int);
descriptor: (Ljava/io/DataOutput;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: iload 2
i2l
ldc 4294967295
land
lstore 3
start local 3 1: lload 3
ldc 128
lcmp
ifge 4
2: aload 1
lload 3
l2i
i2b
invokeinterface java.io.DataOutput.write:(I)V
3: return
4: StackMap locals: long
StackMap stack:
aload 1
lload 3
ldc 128
lor
l2i
i2b
invokeinterface java.io.DataOutput.write:(I)V
5: lload 3
bipush 7
lshr
lstore 3
6: lload 3
ldc 128
lcmp
ifge 9
7: aload 1
lload 3
l2i
i2b
invokeinterface java.io.DataOutput.write:(I)V
8: return
9: StackMap locals:
StackMap stack:
aload 1
lload 3
ldc 128
lor
l2i
i2b
invokeinterface java.io.DataOutput.write:(I)V
10: lload 3
bipush 7
lshr
lstore 3
11: lload 3
ldc 128
lcmp
ifge 14
12: aload 1
lload 3
l2i
i2b
invokeinterface java.io.DataOutput.write:(I)V
13: return
14: StackMap locals:
StackMap stack:
aload 1
lload 3
ldc 128
lor
l2i
i2b
invokeinterface java.io.DataOutput.write:(I)V
15: lload 3
bipush 7
lshr
lstore 3
16: lload 3
ldc 128
lcmp
ifge 19
17: aload 1
lload 3
l2i
i2b
invokeinterface java.io.DataOutput.write:(I)V
18: return
19: StackMap locals:
StackMap stack:
lload 3
bipush 7
lshr
lstore 3
20: aload 1
lload 3
l2i
i2b
invokeinterface java.io.DataOutput.write:(I)V
21: return
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/MetadataWriter;
0 22 1 out Ljava/io/DataOutput;
0 22 2 v I
1 22 3 s J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
out
v
private void buildStringPool(jdk.jfr.internal.MetadataDescriptor$Element, java.util.Set<java.lang.String>);
descriptor: (Ljdk/jfr/internal/MetadataDescriptor$Element;Ljava/util/Set;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 2
aload 1
getfield jdk.jfr.internal.MetadataDescriptor$Element.name:Ljava/lang/String;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
1: aload 1
getfield jdk.jfr.internal.MetadataDescriptor$Element.attributes:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 5
StackMap locals: jdk.jfr.internal.MetadataWriter jdk.jfr.internal.MetadataDescriptor$Element java.util.Set top java.util.Iterator
StackMap stack:
2: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.internal.MetadataDescriptor$Attribute
astore 3
start local 3 3: aload 2
aload 3
getfield jdk.jfr.internal.MetadataDescriptor$Attribute.name:Ljava/lang/String;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
4: aload 2
aload 3
getfield jdk.jfr.internal.MetadataDescriptor$Attribute.value:Ljava/lang/String;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
end local 3 5: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
6: aload 1
getfield jdk.jfr.internal.MetadataDescriptor$Element.elements:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 9
StackMap locals:
StackMap stack:
7: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.internal.MetadataDescriptor$Element
astore 3
start local 3 8: aload 0
aload 3
aload 2
invokevirtual jdk.jfr.internal.MetadataWriter.buildStringPool:(Ljdk/jfr/internal/MetadataDescriptor$Element;Ljava/util/Set;)V
end local 3 9: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 7
10: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljdk/jfr/internal/MetadataWriter;
0 11 1 element Ljdk/jfr/internal/MetadataDescriptor$Element;
0 11 2 pool Ljava/util/Set<Ljava/lang/String;>;
3 5 3 a Ljdk/jfr/internal/MetadataDescriptor$Attribute;
8 9 3 child Ljdk/jfr/internal/MetadataDescriptor$Element;
Signature: (Ljdk/jfr/internal/MetadataDescriptor$Element;Ljava/util/Set<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
element
pool
private void write(java.io.DataOutput, jdk.jfr.internal.MetadataDescriptor$Element, java.util.HashMap<java.lang.String, java.lang.Integer>);
descriptor: (Ljava/io/DataOutput;Ljdk/jfr/internal/MetadataDescriptor$Element;Ljava/util/HashMap;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 3
aload 2
getfield jdk.jfr.internal.MetadataDescriptor$Element.name:Ljava/lang/String;
invokevirtual java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
invokevirtual jdk.jfr.internal.MetadataWriter.writeInt:(Ljava/io/DataOutput;I)V
1: aload 0
aload 1
aload 2
getfield jdk.jfr.internal.MetadataDescriptor$Element.attributes:Ljava/util/List;
invokeinterface java.util.List.size:()I
invokevirtual jdk.jfr.internal.MetadataWriter.writeInt:(Ljava/io/DataOutput;I)V
2: aload 2
getfield jdk.jfr.internal.MetadataDescriptor$Element.attributes:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 6
StackMap locals: jdk.jfr.internal.MetadataWriter java.io.DataOutput jdk.jfr.internal.MetadataDescriptor$Element java.util.HashMap top java.util.Iterator
StackMap stack:
3: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.internal.MetadataDescriptor$Attribute
astore 4
start local 4 4: aload 0
aload 1
aload 3
aload 4
getfield jdk.jfr.internal.MetadataDescriptor$Attribute.name:Ljava/lang/String;
invokevirtual java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
invokevirtual jdk.jfr.internal.MetadataWriter.writeInt:(Ljava/io/DataOutput;I)V
5: aload 0
aload 1
aload 3
aload 4
getfield jdk.jfr.internal.MetadataDescriptor$Attribute.value:Ljava/lang/String;
invokevirtual java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
invokevirtual jdk.jfr.internal.MetadataWriter.writeInt:(Ljava/io/DataOutput;I)V
end local 4 6: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
7: aload 0
aload 1
aload 2
getfield jdk.jfr.internal.MetadataDescriptor$Element.elements:Ljava/util/List;
invokeinterface java.util.List.size:()I
invokevirtual jdk.jfr.internal.MetadataWriter.writeInt:(Ljava/io/DataOutput;I)V
8: aload 2
getfield jdk.jfr.internal.MetadataDescriptor$Element.elements:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 11
StackMap locals:
StackMap stack:
9: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.internal.MetadataDescriptor$Element
astore 4
start local 4 10: aload 0
aload 1
aload 4
aload 3
invokevirtual jdk.jfr.internal.MetadataWriter.write:(Ljava/io/DataOutput;Ljdk/jfr/internal/MetadataDescriptor$Element;Ljava/util/HashMap;)V
end local 4 11: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 9
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/MetadataWriter;
0 13 1 output Ljava/io/DataOutput;
0 13 2 element Ljdk/jfr/internal/MetadataDescriptor$Element;
0 13 3 lookup Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Integer;>;
4 6 4 a Ljdk/jfr/internal/MetadataDescriptor$Attribute;
10 11 4 child Ljdk/jfr/internal/MetadataDescriptor$Element;
Exceptions:
throws java.io.IOException
Signature: (Ljava/io/DataOutput;Ljdk/jfr/internal/MetadataDescriptor$Element;Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Integer;>;)V
MethodParameters:
Name Flags
output
element
lookup
private void makeTypeElement(jdk.jfr.internal.MetadataDescriptor$Element, jdk.jfr.internal.Type);
descriptor: (Ljdk/jfr/internal/MetadataDescriptor$Element;Ljdk/jfr/internal/Type;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ldc "class"
invokevirtual jdk.jfr.internal.MetadataDescriptor$Element.newChild:(Ljava/lang/String;)Ljdk/jfr/internal/MetadataDescriptor$Element;
astore 3
start local 3 1: aload 3
ldc "name"
aload 2
invokevirtual jdk.jfr.internal.Type.getName:()Ljava/lang/String;
invokevirtual jdk.jfr.internal.MetadataDescriptor$Element.addAttribute:(Ljava/lang/String;Ljava/lang/Object;)V
2: aload 2
invokevirtual jdk.jfr.internal.Type.getSuperType:()Ljava/lang/String;
astore 4
start local 4 3: aload 4
ifnull 5
4: aload 3
ldc "superType"
aload 4
invokevirtual jdk.jfr.internal.MetadataDescriptor$Element.addAttribute:(Ljava/lang/String;Ljava/lang/Object;)V
5: StackMap locals: jdk.jfr.internal.MetadataDescriptor$Element java.lang.String
StackMap stack:
aload 2
invokevirtual jdk.jfr.internal.Type.isSimpleType:()Z
ifeq 7
6: aload 3
ldc "simpleType"
iconst_1
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
invokevirtual jdk.jfr.internal.MetadataDescriptor$Element.addAttribute:(Ljava/lang/String;Ljava/lang/Object;)V
7: StackMap locals:
StackMap stack:
aload 3
ldc "id"
aload 2
invokevirtual jdk.jfr.internal.Type.getId:()J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokevirtual jdk.jfr.internal.MetadataDescriptor$Element.addAttribute:(Ljava/lang/String;Ljava/lang/Object;)V
8: aload 2
instanceof jdk.jfr.internal.PlatformEventType
ifeq 13
9: aload 2
checkcast jdk.jfr.internal.PlatformEventType
invokevirtual jdk.jfr.internal.PlatformEventType.getSettings:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 12
StackMap locals: jdk.jfr.internal.MetadataWriter jdk.jfr.internal.MetadataDescriptor$Element jdk.jfr.internal.Type jdk.jfr.internal.MetadataDescriptor$Element java.lang.String top java.util.Iterator
StackMap stack:
10: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.SettingDescriptor
astore 5
start local 5 11: aload 0
aload 3
aload 5
invokevirtual jdk.jfr.internal.MetadataWriter.makeSettingElement:(Ljdk/jfr/internal/MetadataDescriptor$Element;Ljdk/jfr/SettingDescriptor;)V
end local 5 12: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 10
13: StackMap locals: jdk.jfr.internal.MetadataWriter jdk.jfr.internal.MetadataDescriptor$Element jdk.jfr.internal.Type jdk.jfr.internal.MetadataDescriptor$Element java.lang.String
StackMap stack:
aload 2
invokevirtual jdk.jfr.internal.Type.getFields:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 16
StackMap locals: jdk.jfr.internal.MetadataWriter jdk.jfr.internal.MetadataDescriptor$Element jdk.jfr.internal.Type jdk.jfr.internal.MetadataDescriptor$Element java.lang.String top java.util.Iterator
StackMap stack:
14: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.ValueDescriptor
astore 5
start local 5 15: aload 0
aload 3
aload 5
invokevirtual jdk.jfr.internal.MetadataWriter.makeFieldElement:(Ljdk/jfr/internal/MetadataDescriptor$Element;Ljdk/jfr/ValueDescriptor;)V
end local 5 16: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 14
17: aload 2
invokevirtual jdk.jfr.internal.Type.getAnnotationElements:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 20
StackMap locals:
StackMap stack:
18: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.AnnotationElement
astore 5
start local 5 19: aload 0
aload 3
aload 5
invokevirtual jdk.jfr.internal.MetadataWriter.makeAnnotation:(Ljdk/jfr/internal/MetadataDescriptor$Element;Ljdk/jfr/AnnotationElement;)V
end local 5 20: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 18
21: return
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/MetadataWriter;
0 22 1 root Ljdk/jfr/internal/MetadataDescriptor$Element;
0 22 2 type Ljdk/jfr/internal/Type;
1 22 3 element Ljdk/jfr/internal/MetadataDescriptor$Element;
3 22 4 superType Ljava/lang/String;
11 12 5 v Ljdk/jfr/SettingDescriptor;
15 16 5 v Ljdk/jfr/ValueDescriptor;
19 20 5 a Ljdk/jfr/AnnotationElement;
MethodParameters:
Name Flags
root
type
private void makeSettingElement(jdk.jfr.internal.MetadataDescriptor$Element, jdk.jfr.SettingDescriptor);
descriptor: (Ljdk/jfr/internal/MetadataDescriptor$Element;Ljdk/jfr/SettingDescriptor;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ldc "setting"
invokevirtual jdk.jfr.internal.MetadataDescriptor$Element.newChild:(Ljava/lang/String;)Ljdk/jfr/internal/MetadataDescriptor$Element;
astore 3
start local 3 1: aload 3
ldc "name"
aload 2
invokevirtual jdk.jfr.SettingDescriptor.getName:()Ljava/lang/String;
invokevirtual jdk.jfr.internal.MetadataDescriptor$Element.addAttribute:(Ljava/lang/String;Ljava/lang/Object;)V
2: aload 3
ldc "class"
aload 2
invokevirtual jdk.jfr.SettingDescriptor.getTypeId:()J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokevirtual jdk.jfr.internal.MetadataDescriptor$Element.addAttribute:(Ljava/lang/String;Ljava/lang/Object;)V
3: aload 3
ldc "defaultValue"
aload 2
invokevirtual jdk.jfr.SettingDescriptor.getDefaultValue:()Ljava/lang/String;
invokevirtual jdk.jfr.internal.MetadataDescriptor$Element.addAttribute:(Ljava/lang/String;Ljava/lang/Object;)V
4: aload 2
invokevirtual jdk.jfr.SettingDescriptor.getAnnotationElements:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 7
StackMap locals: jdk.jfr.internal.MetadataWriter jdk.jfr.internal.MetadataDescriptor$Element jdk.jfr.SettingDescriptor jdk.jfr.internal.MetadataDescriptor$Element top java.util.Iterator
StackMap stack:
5: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.AnnotationElement
astore 4
start local 4 6: aload 0
aload 3
aload 4
invokevirtual jdk.jfr.internal.MetadataWriter.makeAnnotation:(Ljdk/jfr/internal/MetadataDescriptor$Element;Ljdk/jfr/AnnotationElement;)V
end local 4 7: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
8: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/jfr/internal/MetadataWriter;
0 9 1 typeElement Ljdk/jfr/internal/MetadataDescriptor$Element;
0 9 2 s Ljdk/jfr/SettingDescriptor;
1 9 3 element Ljdk/jfr/internal/MetadataDescriptor$Element;
6 7 4 a Ljdk/jfr/AnnotationElement;
MethodParameters:
Name Flags
typeElement
s
private void makeFieldElement(jdk.jfr.internal.MetadataDescriptor$Element, jdk.jfr.ValueDescriptor);
descriptor: (Ljdk/jfr/internal/MetadataDescriptor$Element;Ljdk/jfr/ValueDescriptor;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ldc "field"
invokevirtual jdk.jfr.internal.MetadataDescriptor$Element.newChild:(Ljava/lang/String;)Ljdk/jfr/internal/MetadataDescriptor$Element;
astore 3
start local 3 1: aload 3
ldc "name"
aload 2
invokevirtual jdk.jfr.ValueDescriptor.getName:()Ljava/lang/String;
invokevirtual jdk.jfr.internal.MetadataDescriptor$Element.addAttribute:(Ljava/lang/String;Ljava/lang/Object;)V
2: aload 3
ldc "class"
aload 2
invokevirtual jdk.jfr.ValueDescriptor.getTypeId:()J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokevirtual jdk.jfr.internal.MetadataDescriptor$Element.addAttribute:(Ljava/lang/String;Ljava/lang/Object;)V
3: aload 2
invokevirtual jdk.jfr.ValueDescriptor.isArray:()Z
ifeq 5
4: aload 3
ldc "dimension"
iconst_1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual jdk.jfr.internal.MetadataDescriptor$Element.addAttribute:(Ljava/lang/String;Ljava/lang/Object;)V
5: StackMap locals: jdk.jfr.internal.MetadataDescriptor$Element
StackMap stack:
invokestatic jdk.jfr.internal.PrivateAccess.getInstance:()Ljdk/jfr/internal/PrivateAccess;
aload 2
invokevirtual jdk.jfr.internal.PrivateAccess.isConstantPool:(Ljdk/jfr/ValueDescriptor;)Z
ifeq 7
6: aload 3
ldc "constantPool"
iconst_1
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
invokevirtual jdk.jfr.internal.MetadataDescriptor$Element.addAttribute:(Ljava/lang/String;Ljava/lang/Object;)V
7: StackMap locals:
StackMap stack:
aload 2
invokevirtual jdk.jfr.ValueDescriptor.getAnnotationElements:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 10
StackMap locals: jdk.jfr.internal.MetadataWriter jdk.jfr.internal.MetadataDescriptor$Element jdk.jfr.ValueDescriptor jdk.jfr.internal.MetadataDescriptor$Element top java.util.Iterator
StackMap stack:
8: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.AnnotationElement
astore 4
start local 4 9: aload 0
aload 3
aload 4
invokevirtual jdk.jfr.internal.MetadataWriter.makeAnnotation:(Ljdk/jfr/internal/MetadataDescriptor$Element;Ljdk/jfr/AnnotationElement;)V
end local 4 10: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 8
11: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljdk/jfr/internal/MetadataWriter;
0 12 1 typeElement Ljdk/jfr/internal/MetadataDescriptor$Element;
0 12 2 v Ljdk/jfr/ValueDescriptor;
1 12 3 element Ljdk/jfr/internal/MetadataDescriptor$Element;
9 10 4 a Ljdk/jfr/AnnotationElement;
MethodParameters:
Name Flags
typeElement
v
private void makeAnnotation(jdk.jfr.internal.MetadataDescriptor$Element, jdk.jfr.AnnotationElement);
descriptor: (Ljdk/jfr/internal/MetadataDescriptor$Element;Ljdk/jfr/AnnotationElement;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=9, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ldc "annotation"
invokevirtual jdk.jfr.internal.MetadataDescriptor$Element.newChild:(Ljava/lang/String;)Ljdk/jfr/internal/MetadataDescriptor$Element;
astore 3
start local 3 1: aload 3
ldc "class"
aload 2
invokevirtual jdk.jfr.AnnotationElement.getTypeId:()J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokevirtual jdk.jfr.internal.MetadataDescriptor$Element.addAttribute:(Ljava/lang/String;Ljava/lang/Object;)V
2: aload 2
invokevirtual jdk.jfr.AnnotationElement.getValues:()Ljava/util/List;
astore 4
start local 4 3: iconst_0
istore 5
start local 5 4: aload 2
invokevirtual jdk.jfr.AnnotationElement.getValueDescriptors:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 7
goto 11
StackMap locals: jdk.jfr.internal.MetadataWriter jdk.jfr.internal.MetadataDescriptor$Element jdk.jfr.AnnotationElement jdk.jfr.internal.MetadataDescriptor$Element java.util.List int top java.util.Iterator
StackMap stack:
5: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.ValueDescriptor
astore 6
start local 6 6: aload 4
iload 5
iinc 5 1
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
astore 8
start local 8 7: aload 6
invokevirtual jdk.jfr.ValueDescriptor.isArray:()Z
ifeq 10
8: aload 3
aload 3
aload 6
invokevirtual jdk.jfr.ValueDescriptor.getName:()Ljava/lang/String;
aload 8
invokevirtual jdk.jfr.internal.MetadataDescriptor$Element.addArrayAttribute:(Ljdk/jfr/internal/MetadataDescriptor$Element;Ljava/lang/String;Ljava/lang/Object;)V
9: goto 11
10: StackMap locals: jdk.jfr.internal.MetadataWriter jdk.jfr.internal.MetadataDescriptor$Element jdk.jfr.AnnotationElement jdk.jfr.internal.MetadataDescriptor$Element java.util.List int jdk.jfr.ValueDescriptor java.util.Iterator java.lang.Object
StackMap stack:
aload 3
aload 6
invokevirtual jdk.jfr.ValueDescriptor.getName:()Ljava/lang/String;
aload 8
invokevirtual jdk.jfr.internal.MetadataDescriptor$Element.addAttribute:(Ljava/lang/String;Ljava/lang/Object;)V
end local 8 end local 6 11: StackMap locals: jdk.jfr.internal.MetadataWriter jdk.jfr.internal.MetadataDescriptor$Element jdk.jfr.AnnotationElement jdk.jfr.internal.MetadataDescriptor$Element java.util.List int top java.util.Iterator
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
12: 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 13 0 this Ljdk/jfr/internal/MetadataWriter;
0 13 1 entity Ljdk/jfr/internal/MetadataDescriptor$Element;
0 13 2 annotation Ljdk/jfr/AnnotationElement;
1 13 3 element Ljdk/jfr/internal/MetadataDescriptor$Element;
3 13 4 values Ljava/util/List<Ljava/lang/Object;>;
4 13 5 index I
6 11 6 v Ljdk/jfr/ValueDescriptor;
7 11 8 value Ljava/lang/Object;
MethodParameters:
Name Flags
entity
annotation
private void lambda$0(jdk.jfr.internal.Type);
descriptor: (Ljdk/jfr/internal/Type;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 0
getfield jdk.jfr.internal.MetadataWriter.metadata:Ljdk/jfr/internal/MetadataDescriptor$Element;
aload 1
invokevirtual jdk.jfr.internal.MetadataWriter.makeTypeElement:(Ljdk/jfr/internal/MetadataDescriptor$Element;Ljdk/jfr/internal/Type;)V
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jfr/internal/MetadataWriter;
0 1 1 type Ljdk/jfr/internal/Type;
}
SourceFile: "MetadataWriter.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
final Attribute = jdk.jfr.internal.MetadataDescriptor$Attribute of jdk.jfr.internal.MetadataDescriptor
final Element = jdk.jfr.internal.MetadataDescriptor$Element of jdk.jfr.internal.MetadataDescriptor