24 */ |
24 */ |
25 |
25 |
26 package jdk.jfr.consumer; |
26 package jdk.jfr.consumer; |
27 |
27 |
28 import java.lang.reflect.Modifier; |
28 import java.lang.reflect.Modifier; |
29 import java.util.List; |
|
30 |
29 |
31 import jdk.jfr.ValueDescriptor; |
|
32 import jdk.jfr.internal.Type; |
30 import jdk.jfr.internal.Type; |
33 |
31 |
34 /** |
32 /** |
35 * A recorded method. |
33 * A recorded method. |
36 * |
34 * |
37 * @since 9 |
35 * @since 9 |
38 */ |
36 */ |
39 public final class RecordedMethod extends RecordedObject { |
37 public final class RecordedMethod extends RecordedObject { |
40 |
38 |
41 static ObjectFactory<RecordedMethod> createFactory(Type type, TimeConverter timeConverter) { |
39 static ObjectFactory<RecordedMethod> createFactory(Type type, TimeConverter timeConverter) { |
42 return new ObjectFactory<RecordedMethod>(type) { |
40 return new ObjectFactory<RecordedMethod>(type, timeConverter) { |
43 @Override |
41 @Override |
44 RecordedMethod createTyped(List<ValueDescriptor> desc, long id, Object[] object) { |
42 RecordedMethod createTyped(ObjectContext objectContext, long id, Object[] values) { |
45 return new RecordedMethod(desc, object, timeConverter); |
43 return new RecordedMethod(objectContext, values); |
46 } |
44 } |
47 }; |
45 }; |
48 } |
46 } |
49 |
47 |
50 private RecordedMethod(List<ValueDescriptor> descriptors, Object[] objects, TimeConverter timeConverter) { |
48 private RecordedMethod(ObjectContext objectContext, Object[] values) { |
51 super(descriptors, objects, timeConverter); |
49 super(objectContext, values); |
52 } |
50 } |
53 |
51 |
54 /** |
52 /** |
55 * Returns the class this method belongs to, if it belong to a Java frame. |
53 * Returns the class this method belongs to, if it belong to a Java frame. |
56 * <p> |
54 * <p> |