类的用途
jdk.jfr.AnnotationElement
使用 AnnotationElement 的包
-
AnnotationElement 在 jdk.jfr 中的用法
返回类型中包含 AnnotationElement 类型参数的 jdk.jfr 中的方法修饰符和类型方法描述AnnotationElement.getAnnotationElements()返回此AnnotationElement的不可变注解元素列表。EventType.getAnnotationElements()返回此事件类型的不可变注解元素列表。SettingDescriptor.getAnnotationElements()返回此值描述符的不可变注解元素列表。ValueDescriptor.getAnnotationElements()返回此值描述符的不可变注解元素列表。jdk.jfr 中的方法参数,类型参数为 AnnotationElement修饰符和类型方法描述static EventFactoryEventFactory.create(List<AnnotationElement> annotationElements, List<ValueDescriptor> fields) 创建一个EventFactory对象。jdk.jfr 中的构造函数参数,类型参数为 AnnotationElement修饰符构造方法描述ValueDescriptor(Class<?> type, String name, List<AnnotationElement> annotations) 构造一个值描述符,用于动态创建事件类型和注解。