src/jdk.jfr/share/classes/jdk/jfr/consumer/RecordedFrame.java
branchJEP-349-branch
changeset 57460 bcbc53560c77
parent 50113 caf115bb98ad
child 58112 e7754025004b
equal deleted inserted replaced
57459:df39f8d8f4d6 57460:bcbc53560c77
    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 frame in a stack trace.
    33  * A recorded frame in a stack trace.
    36  *
    34  *
    37  * @since 9
    35  * @since 9
    38  */
    36  */
    39 public final class RecordedFrame extends RecordedObject {
    37 public final class RecordedFrame extends RecordedObject {
    40 
    38 
    41     static ObjectFactory<RecordedFrame> createFactory(Type type, TimeConverter timeConverter) {
    39     static ObjectFactory<RecordedFrame> createFactory(Type type, TimeConverter timeConverter) {
    42         return new ObjectFactory<RecordedFrame>(type) {
    40         return new ObjectFactory<RecordedFrame>(type, timeConverter) {
    43             @Override
    41             @Override
    44             RecordedFrame createTyped(List<ValueDescriptor> desc, long id, Object[] object) {
    42             RecordedFrame createTyped(ObjectContext objectContext, long id, Object[] values) {
    45                 return new RecordedFrame(desc, object, timeConverter);
    43                 return new RecordedFrame(objectContext, values);
    46             }
    44             }
    47         };
    45         };
    48     }
    46     }
    49 
    47 
    50     // package private
    48     // package private
    51     RecordedFrame(List<ValueDescriptor> desc, Object[] objects, TimeConverter timeConverter) {
    49     RecordedFrame(ObjectContext objectContext, Object[] objects) {
    52         super(desc, objects, timeConverter);
    50         super(objectContext, objects);
    53     }
    51     }
    54 
    52 
    55     /**
    53     /**
    56      * Returns {@code true} if this is a Java frame, {@code false} otherwise.
    54      * Returns {@code true} if this is a Java frame, {@code false} otherwise.
    57      * <p>
    55      * <p>