public final class jdk.jfr.AnnotationElement
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: jdk.jfr.AnnotationElement
super_class: java.lang.Object
{
private final jdk.jfr.internal.Type type;
descriptor: Ljdk/jfr/internal/Type;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.List<java.lang.Object> annotationValues;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Ljava/lang/Object;>;
private final java.util.List<java.lang.String> annotationNames;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Ljava/lang/String;>;
private final boolean inBootClassLoader;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(jdk.jfr.internal.Type, java.util.List<java.lang.Object>, );
descriptor: (Ljdk/jfr/internal/Type;Ljava/util/List;Z)V
flags: (0x0000)
Code:
stack=5, locals=11, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 2
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
3: aload 0
aload 1
putfield jdk.jfr.AnnotationElement.type:Ljdk/jfr/internal/Type;
4: aload 2
invokeinterface java.util.List.size:()I
aload 1
invokevirtual jdk.jfr.internal.Type.getFields:()Ljava/util/List;
invokeinterface java.util.List.size:()I
if_icmpeq 16
5: new java.util.StringJoiner
dup
ldc ","
ldc "["
ldc "]"
invokespecial java.util.StringJoiner.<init>:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;)V
astore 4
start local 4 6: aload 1
invokevirtual jdk.jfr.internal.Type.getFields:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 9
StackMap locals: jdk.jfr.AnnotationElement jdk.jfr.internal.Type java.util.List int java.util.StringJoiner top java.util.Iterator
StackMap stack:
7: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.ValueDescriptor
astore 5
start local 5 8: aload 4
aload 5
invokevirtual jdk.jfr.ValueDescriptor.getName:()Ljava/lang/String;
invokevirtual java.util.StringJoiner.add:(Ljava/lang/CharSequence;)Ljava/util/StringJoiner;
pop
end local 5 9: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 7
10: new java.util.StringJoiner
dup
ldc ","
ldc "["
ldc "]"
invokespecial java.util.StringJoiner.<init>:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;)V
astore 5
start local 5 11: aload 2
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 7
goto 14
StackMap locals: jdk.jfr.AnnotationElement jdk.jfr.internal.Type java.util.List int java.util.StringJoiner java.util.StringJoiner top java.util.Iterator
StackMap stack:
12: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 6
start local 6 13: aload 4
aload 6
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.util.StringJoiner.add:(Ljava/lang/CharSequence;)Ljava/util/StringJoiner;
pop
end local 6 14: StackMap locals:
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 12
15: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Annotation "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " for "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual jdk.jfr.internal.Type.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " doesn't match number of values "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 5 end local 4 16: StackMap locals: jdk.jfr.AnnotationElement jdk.jfr.internal.Type java.util.List int
StackMap stack:
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 4
start local 4 17: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 5
start local 5 18: iconst_0
istore 6
start local 6 19: aload 1
invokevirtual jdk.jfr.internal.Type.getFields:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 8
goto 31
StackMap locals: jdk.jfr.AnnotationElement jdk.jfr.internal.Type java.util.List int java.util.List java.util.List int top java.util.Iterator
StackMap stack:
20: aload 8
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.ValueDescriptor
astore 7
start local 7 21: aload 2
iload 6
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
astore 9
start local 9 22: aload 9
ifnonnull 24
23: new java.lang.IllegalArgumentException
dup
ldc "Annotation value can't be null"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
24: StackMap locals: jdk.jfr.AnnotationElement jdk.jfr.internal.Type java.util.List int java.util.List java.util.List int jdk.jfr.ValueDescriptor java.util.Iterator java.lang.Object
StackMap stack:
aload 9
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
astore 10
start local 10 25: aload 7
invokevirtual jdk.jfr.ValueDescriptor.isArray:()Z
ifeq 27
26: aload 10
invokevirtual java.lang.Class.getComponentType:()Ljava/lang/Class;
astore 10
27: StackMap locals: java.lang.Class
StackMap stack:
aload 10
invokestatic jdk.jfr.internal.Utils.unboxType:(Ljava/lang/Class;)Ljava/lang/Class;
invokestatic jdk.jfr.AnnotationElement.checkType:(Ljava/lang/Class;)V
28: aload 4
aload 7
invokevirtual jdk.jfr.ValueDescriptor.getName:()Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
29: aload 5
aload 9
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
30: iinc 6 1
end local 10 end local 9 end local 7 31: StackMap locals: jdk.jfr.AnnotationElement jdk.jfr.internal.Type java.util.List int java.util.List java.util.List int top java.util.Iterator
StackMap stack:
aload 8
invokeinterface java.util.Iterator.hasNext:()Z
ifne 20
32: aload 0
aload 5
invokestatic jdk.jfr.internal.Utils.smallUnmodifiable:(Ljava/util/List;)Ljava/util/List;
putfield jdk.jfr.AnnotationElement.annotationValues:Ljava/util/List;
33: aload 0
aload 4
invokestatic jdk.jfr.internal.Utils.smallUnmodifiable:(Ljava/util/List;)Ljava/util/List;
putfield jdk.jfr.AnnotationElement.annotationNames:Ljava/util/List;
34: aload 0
iload 3
putfield jdk.jfr.AnnotationElement.inBootClassLoader:Z
35: return
end local 6 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 36 0 this Ljdk/jfr/AnnotationElement;
0 36 1 type Ljdk/jfr/internal/Type;
0 36 2 objects Ljava/util/List<Ljava/lang/Object;>;
0 36 3 boot Z
6 16 4 descriptors Ljava/util/StringJoiner;
8 9 5 v Ljdk/jfr/ValueDescriptor;
11 16 5 values Ljava/util/StringJoiner;
13 14 6 object Ljava/lang/Object;
17 36 4 n Ljava/util/List<Ljava/lang/String;>;
18 36 5 v Ljava/util/List<Ljava/lang/Object;>;
19 36 6 index I
21 31 7 valueDescriptor Ljdk/jfr/ValueDescriptor;
22 31 9 object Ljava/lang/Object;
25 31 10 valueType Ljava/lang/Class<*>;
Signature: (Ljdk/jfr/internal/Type;Ljava/util/List<Ljava/lang/Object;>;Z)V
MethodParameters:
Name Flags
type
objects
boot
public void <init>(java.lang.Class<? extends java.lang.annotation.Annotation>, java.util.Map<java.lang.String, java.lang.Object>);
descriptor: (Ljava/lang/Class;Ljava/util/Map;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=18, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 2
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
3: invokestatic jdk.jfr.internal.Utils.checkRegisterPermission:()V
4: new java.util.HashMap
dup
aload 2
invokespecial java.util.HashMap.<init>:(Ljava/util/Map;)V
astore 3
start local 3 5: aload 3
invokevirtual java.util.HashMap.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 5
goto 11
StackMap locals: jdk.jfr.AnnotationElement java.lang.Class java.util.Map java.util.HashMap top java.util.Iterator
StackMap stack:
6: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 4
start local 4 7: aload 4
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
ifnonnull 9
8: new java.lang.NullPointerException
dup
ldc "Name of annotation method can't be null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals: jdk.jfr.AnnotationElement java.lang.Class java.util.Map java.util.HashMap java.util.Map$Entry java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
ifnonnull 11
10: new java.lang.NullPointerException
dup
ldc "Return value for annotation method can't be null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
end local 4 11: StackMap locals: jdk.jfr.AnnotationElement java.lang.Class java.util.Map java.util.HashMap top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 6
12: ldc Ljdk/jfr/AnnotationElement;
aload 1
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 14
aload 1
invokevirtual java.lang.Class.isInterface:()Z
ifeq 14
13: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Must be interface extending "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc Ljava/lang/annotation/Annotation;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals: jdk.jfr.AnnotationElement java.lang.Class java.util.Map java.util.HashMap
StackMap stack:
aload 1
invokestatic jdk.jfr.AnnotationElement.isKnownJFRAnnotation:(Ljava/lang/Class;)Z
ifne 16
aload 1
ldc Ljdk/jfr/MetadataDefinition;
invokevirtual java.lang.Class.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
ifnonnull 16
15: new java.lang.IllegalArgumentException
dup
ldc "Annotation class must be annotated with jdk.jfr.MetadataDefinition to be valid"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
16: StackMap locals:
StackMap stack:
aload 1
invokestatic jdk.jfr.AnnotationElement.isKnownJFRAnnotation:(Ljava/lang/Class;)Z
ifeq 19
17: aload 0
new jdk.jfr.internal.Type
dup
aload 1
invokevirtual java.lang.Class.getCanonicalName:()Ljava/lang/String;
getstatic jdk.jfr.internal.Type.SUPER_TYPE_ANNOTATION:Ljava/lang/String;
aload 1
invokestatic jdk.jfr.internal.Type.getTypeId:(Ljava/lang/Class;)J
invokespecial jdk.jfr.internal.Type.<init>:(Ljava/lang/String;Ljava/lang/String;J)V
putfield jdk.jfr.AnnotationElement.type:Ljdk/jfr/internal/Type;
18: goto 20
19: StackMap locals:
StackMap stack:
aload 0
aload 1
invokestatic jdk.jfr.internal.TypeLibrary.createAnnotationType:(Ljava/lang/Class;)Ljdk/jfr/internal/Type;
putfield jdk.jfr.AnnotationElement.type:Ljdk/jfr/internal/Type;
20: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.Class.getDeclaredMethods:()[Ljava/lang/reflect/Method;
astore 4
start local 4 21: aload 4
arraylength
aload 3
invokevirtual java.util.HashMap.size:()I
if_icmpeq 23
22: new java.lang.IllegalArgumentException
dup
ldc "Number of declared methods must match size of value map"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
23: StackMap locals: java.lang.reflect.Method[]
StackMap stack:
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 5
start local 5 24: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 6
start local 6 25: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 7
start local 7 26: aload 4
dup
astore 11
arraylength
istore 10
iconst_0
istore 9
goto 61
StackMap locals: jdk.jfr.AnnotationElement java.lang.Class java.util.Map java.util.HashMap java.lang.reflect.Method[] java.util.List java.util.List java.util.Set top int int java.lang.reflect.Method[]
StackMap stack:
27: aload 11
iload 9
aaload
astore 8
start local 8 28: aload 8
invokevirtual java.lang.reflect.Method.getName:()Ljava/lang/String;
astore 12
start local 12 29: aload 3
aload 12
invokevirtual java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
astore 13
start local 13 30: aload 13
ifnonnull 32
31: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "No method in annotation interface "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " matching name "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 12
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
32: StackMap locals: jdk.jfr.AnnotationElement java.lang.Class java.util.Map java.util.HashMap java.lang.reflect.Method[] java.util.List java.util.List java.util.Set java.lang.reflect.Method int int java.lang.reflect.Method[] java.lang.String java.lang.Object
StackMap stack:
aload 13
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
astore 14
start local 14 33: aload 14
ldc Ljava/lang/Class;
if_acmpne 35
34: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Annotation value for "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 12
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " can't be class"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
35: StackMap locals: java.lang.Class
StackMap stack:
aload 13
instanceof java.lang.Enum
ifeq 37
36: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Annotation value for "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 12
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " can't be enum"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
37: StackMap locals:
StackMap stack:
aload 14
aload 13
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifne 39
38: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Return type of annotation "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 14
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " must match type of object"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 13
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
39: StackMap locals:
StackMap stack:
aload 14
invokevirtual java.lang.Class.isArray:()Z
ifeq 51
40: aload 14
invokevirtual java.lang.Class.getComponentType:()Ljava/lang/Class;
astore 15
start local 15 41: aload 15
invokestatic jdk.jfr.AnnotationElement.checkType:(Ljava/lang/Class;)V
42: aload 15
ldc Ljava/lang/String;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 53
43: aload 13
checkcast java.lang.String[]
astore 16
start local 16 44: iconst_0
istore 17
start local 17 45: goto 49
46: StackMap locals: java.lang.Class java.lang.String[] int
StackMap stack:
aload 16
iload 17
aaload
ifnonnull 48
47: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Annotation value for "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 12
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " contains null"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
48: StackMap locals:
StackMap stack:
iinc 17 1
StackMap locals:
StackMap stack:
49: iload 17
aload 16
arraylength
if_icmplt 46
end local 17 end local 16 end local 15 50: goto 53
51: StackMap locals:
StackMap stack:
aload 13
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokestatic jdk.jfr.internal.Utils.unboxType:(Ljava/lang/Class;)Ljava/lang/Class;
astore 14
52: aload 14
invokestatic jdk.jfr.AnnotationElement.checkType:(Ljava/lang/Class;)V
53: StackMap locals:
StackMap stack:
aload 7
aload 12
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 55
54: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Value with name '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 12
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "' already exists"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
55: StackMap locals:
StackMap stack:
aload 1
invokestatic jdk.jfr.AnnotationElement.isKnownJFRAnnotation:(Ljava/lang/Class;)Z
ifeq 58
56: new jdk.jfr.ValueDescriptor
dup
aload 14
aload 12
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
iconst_1
invokespecial jdk.jfr.ValueDescriptor.<init>:(Ljava/lang/Class;Ljava/lang/String;Ljava/util/List;Z)V
astore 15
start local 15 57: aload 0
getfield jdk.jfr.AnnotationElement.type:Ljdk/jfr/internal/Type;
aload 15
invokevirtual jdk.jfr.internal.Type.add:(Ljdk/jfr/ValueDescriptor;)V
end local 15 58: StackMap locals:
StackMap stack:
aload 5
aload 12
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
59: aload 6
aload 13
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 14 end local 13 end local 12 end local 8 60: iinc 9 1
StackMap locals: jdk.jfr.AnnotationElement java.lang.Class java.util.Map java.util.HashMap java.lang.reflect.Method[] java.util.List java.util.List java.util.Set top int int java.lang.reflect.Method[]
StackMap stack:
61: iload 9
iload 10
if_icmplt 27
62: aload 0
aload 6
invokestatic jdk.jfr.internal.Utils.smallUnmodifiable:(Ljava/util/List;)Ljava/util/List;
putfield jdk.jfr.AnnotationElement.annotationValues:Ljava/util/List;
63: aload 0
aload 5
invokestatic jdk.jfr.internal.Utils.smallUnmodifiable:(Ljava/util/List;)Ljava/util/List;
putfield jdk.jfr.AnnotationElement.annotationNames:Ljava/util/List;
64: aload 0
aload 1
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
ifnonnull 65
iconst_1
goto 66
StackMap locals: jdk.jfr.AnnotationElement java.lang.Class java.util.Map java.util.HashMap java.lang.reflect.Method[] java.util.List java.util.List java.util.Set
StackMap stack: jdk.jfr.AnnotationElement
65: iconst_0
StackMap locals: jdk.jfr.AnnotationElement java.lang.Class java.util.Map java.util.HashMap java.lang.reflect.Method[] java.util.List java.util.List java.util.Set
StackMap stack: jdk.jfr.AnnotationElement int
66: putfield jdk.jfr.AnnotationElement.inBootClassLoader:Z
67: return
end local 7 end local 6 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 68 0 this Ljdk/jfr/AnnotationElement;
0 68 1 annotationType Ljava/lang/Class<+Ljava/lang/annotation/Annotation;>;
0 68 2 values Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;
5 68 3 map Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;
7 11 4 entry Ljava/util/Map$Entry<Ljava/lang/String;Ljava/lang/Object;>;
21 68 4 methods [Ljava/lang/reflect/Method;
24 68 5 n Ljava/util/List<Ljava/lang/String;>;
25 68 6 v Ljava/util/List<Ljava/lang/Object;>;
26 68 7 nameSet Ljava/util/Set<Ljava/lang/String;>;
28 60 8 method Ljava/lang/reflect/Method;
29 60 12 fieldName Ljava/lang/String;
30 60 13 object Ljava/lang/Object;
33 60 14 fieldType Ljava/lang/Class<*>;
41 50 15 componentType Ljava/lang/Class<*>;
44 50 16 stringArray [Ljava/lang/String;
45 50 17 i I
57 58 15 vd Ljdk/jfr/ValueDescriptor;
Signature: (Ljava/lang/Class<+Ljava/lang/annotation/Annotation;>;Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;)V
MethodParameters:
Name Flags
annotationType
values
public void <init>(java.lang.Class<? extends java.lang.annotation.Annotation>, );
descriptor: (Ljava/lang/Class;Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
ldc "value"
aload 2
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
invokestatic java.util.Collections.singletonMap:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;
invokespecial jdk.jfr.AnnotationElement.<init>:(Ljava/lang/Class;Ljava/util/Map;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/jfr/AnnotationElement;
0 2 1 annotationType Ljava/lang/Class<+Ljava/lang/annotation/Annotation;>;
0 2 2 value Ljava/lang/Object;
Signature: (Ljava/lang/Class<+Ljava/lang/annotation/Annotation;>;Ljava/lang/Object;)V
MethodParameters:
Name Flags
annotationType
value
public void <init>(java.lang.Class<? extends java.lang.annotation.Annotation>);
descriptor: (Ljava/lang/Class;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic java.util.Collections.emptyMap:()Ljava/util/Map;
invokespecial jdk.jfr.AnnotationElement.<init>:(Ljava/lang/Class;Ljava/util/Map;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/jfr/AnnotationElement;
0 2 1 annotationType Ljava/lang/Class<+Ljava/lang/annotation/Annotation;>;
Signature: (Ljava/lang/Class<+Ljava/lang/annotation/Annotation;>;)V
MethodParameters:
Name Flags
annotationType
public java.util.List<java.lang.Object> getValues();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.jfr.AnnotationElement.annotationValues:Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jfr/AnnotationElement;
Signature: ()Ljava/util/List<Ljava/lang/Object;>;
public java.util.List<jdk.jfr.ValueDescriptor> getValueDescriptors();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.jfr.AnnotationElement.type:Ljdk/jfr/internal/Type;
invokevirtual jdk.jfr.internal.Type.getFields:()Ljava/util/List;
invokestatic java.util.Collections.unmodifiableList:(Ljava/util/List;)Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jfr/AnnotationElement;
Signature: ()Ljava/util/List<Ljdk/jfr/ValueDescriptor;>;
public java.util.List<jdk.jfr.AnnotationElement> getAnnotationElements();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.jfr.AnnotationElement.type:Ljdk/jfr/internal/Type;
invokevirtual jdk.jfr.internal.Type.getAnnotationElements:()Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jfr/AnnotationElement;
Signature: ()Ljava/util/List<Ljdk/jfr/AnnotationElement;>;
public java.lang.String getTypeName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.jfr.AnnotationElement.type:Ljdk/jfr/internal/Type;
invokevirtual jdk.jfr.internal.Type.getName:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jfr/AnnotationElement;
public java.lang.Object getValue(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: iconst_0
istore 2
start local 2 2: aload 0
getfield jdk.jfr.AnnotationElement.annotationNames:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 7
StackMap locals: jdk.jfr.AnnotationElement java.lang.String int top java.util.Iterator
StackMap stack:
3: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 4: aload 1
aload 3
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 6
5: aload 0
getfield jdk.jfr.AnnotationElement.annotationValues:Ljava/util/List;
iload 2
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
areturn
6: StackMap locals: jdk.jfr.AnnotationElement java.lang.String int java.lang.String java.util.Iterator
StackMap stack:
iinc 2 1
end local 3 7: StackMap locals: jdk.jfr.AnnotationElement java.lang.String int top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
8: new java.util.StringJoiner
dup
ldc ","
ldc "["
ldc "]"
invokespecial java.util.StringJoiner.<init>:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;)V
astore 3
start local 3 9: aload 0
getfield jdk.jfr.AnnotationElement.type:Ljdk/jfr/internal/Type;
invokevirtual jdk.jfr.internal.Type.getFields:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 12
StackMap locals: jdk.jfr.AnnotationElement java.lang.String int java.util.StringJoiner top java.util.Iterator
StackMap stack:
10: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.ValueDescriptor
astore 4
start local 4 11: aload 3
aload 4
invokevirtual jdk.jfr.ValueDescriptor.getName:()Ljava/lang/String;
invokevirtual java.util.StringJoiner.add:(Ljava/lang/CharSequence;)Ljava/util/StringJoiner;
pop
end local 4 12: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 10
13: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "No value with name '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "'. Valid names are "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Ljdk/jfr/AnnotationElement;
0 14 1 name Ljava/lang/String;
2 14 2 index I
4 7 3 n Ljava/lang/String;
9 14 3 valueNames Ljava/util/StringJoiner;
11 12 4 v Ljdk/jfr/ValueDescriptor;
MethodParameters:
Name Flags
name
public boolean hasValue(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
getfield jdk.jfr.AnnotationElement.annotationNames:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 5
StackMap locals: jdk.jfr.AnnotationElement java.lang.String top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 2
start local 2 3: aload 1
aload 2
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 5
4: iconst_1
ireturn
end local 2 5: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
6: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/jfr/AnnotationElement;
0 7 1 name Ljava/lang/String;
3 5 2 n Ljava/lang/String;
MethodParameters:
Name Flags
name
public final <A> A getAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation>);
descriptor: (Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
getfield jdk.jfr.AnnotationElement.type:Ljdk/jfr/internal/Type;
aload 1
invokevirtual jdk.jfr.internal.Type.getAnnotation:(Ljava/lang/Class;)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/jfr/AnnotationElement;
0 2 1 annotationType Ljava/lang/Class<+Ljava/lang/annotation/Annotation;>;
Signature: <A:Ljava/lang/Object;>(Ljava/lang/Class<+Ljava/lang/annotation/Annotation;>;)TA;
MethodParameters:
Name Flags
annotationType
public long getTypeId();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.jfr.AnnotationElement.type:Ljdk/jfr/internal/Type;
invokevirtual jdk.jfr.internal.Type.getId:()J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jfr/AnnotationElement;
jdk.jfr.internal.Type getType();
descriptor: ()Ljdk/jfr/internal/Type;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.jfr.AnnotationElement.type:Ljdk/jfr/internal/Type;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jfr/AnnotationElement;
private static void checkType(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Class.isPrimitive:()Z
ifeq 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
ldc Ljava/lang/String;
if_acmpne 4
3: return
4: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "Only primitives types or java.lang.String are allowed"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 type Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)V
MethodParameters:
Name Flags
type
private static boolean isKnownJFRAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation>);
descriptor: (Ljava/lang/Class;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc Ljdk/jfr/Registered;
if_acmpne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
ldc Ljdk/jfr/Threshold;
if_acmpne 4
3: iconst_1
ireturn
4: StackMap locals:
StackMap stack:
aload 0
ldc Ljdk/jfr/StackTrace;
if_acmpne 6
5: iconst_1
ireturn
6: StackMap locals:
StackMap stack:
aload 0
ldc Ljdk/jfr/Period;
if_acmpne 8
7: iconst_1
ireturn
8: StackMap locals:
StackMap stack:
aload 0
ldc Ljdk/jfr/Enabled;
if_acmpne 10
9: iconst_1
ireturn
10: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 annotationType Ljava/lang/Class<+Ljava/lang/annotation/Annotation;>;
Signature: (Ljava/lang/Class<+Ljava/lang/annotation/Annotation;>;)Z
MethodParameters:
Name Flags
annotationType
boolean isInBoot();
descriptor: ()Z
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.jfr.AnnotationElement.inBootClassLoader:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jfr/AnnotationElement;
}
SourceFile: "AnnotationElement.java"
InnerClasses:
public abstract Entry = java.util.Map$Entry of java.util.Map