equal
deleted
inserted
replaced
47 import java.util.function.Predicate; |
47 import java.util.function.Predicate; |
48 import java.util.stream.Stream; |
48 import java.util.stream.Stream; |
49 |
49 |
50 import jdk.jfr.AnnotationElement; |
50 import jdk.jfr.AnnotationElement; |
51 import jdk.jfr.Description; |
51 import jdk.jfr.Description; |
52 import jdk.jfr.Event; |
|
53 import jdk.jfr.Label; |
52 import jdk.jfr.Label; |
54 import jdk.jfr.MetadataDefinition; |
53 import jdk.jfr.MetadataDefinition; |
55 import jdk.jfr.Name; |
54 import jdk.jfr.Name; |
56 import jdk.jfr.SettingDescriptor; |
55 import jdk.jfr.SettingDescriptor; |
57 import jdk.jfr.Timespan; |
56 import jdk.jfr.Timespan; |
238 } |
237 } |
239 |
238 |
240 // STRUCT |
239 // STRUCT |
241 String superType = null; |
240 String superType = null; |
242 boolean eventType = false; |
241 boolean eventType = false; |
243 if (Event.class.isAssignableFrom(clazz)) { |
242 if (jdk.internal.event.Event.class.isAssignableFrom(clazz)) { |
244 superType = Type.SUPER_TYPE_EVENT; |
243 superType = Type.SUPER_TYPE_EVENT; |
245 eventType= true; |
244 eventType= true; |
246 } |
245 } |
247 if (Control.class.isAssignableFrom(clazz)) { |
246 if (Control.class.isAssignableFrom(clazz)) { |
248 superType = Type.SUPER_TYPE_SETTING; |
247 superType = Type.SUPER_TYPE_SETTING; |
487 visited.add(ae); |
486 visited.add(ae); |
488 } |
487 } |
489 aQ.addAll(ae.getAnnotationElements()); |
488 aQ.addAll(ae.getAnnotationElements()); |
490 } |
489 } |
491 } |
490 } |
|
491 |
|
492 public void removeType(long id) { |
|
493 types.remove(id); |
|
494 } |
492 } |
495 } |