Class SerializedState.FrameInterceptPoint

java.lang.Object
com.offbynull.coroutines.user.SerializedState.FrameInterceptPoint
Enclosing class:
SerializedState

public static final class SerializedState.FrameInterceptPoint extends Object
Frame intercept point.

What's the difference between SerializedState.FrameUpdatePoint and SerializedState.FrameInterceptPoint? SerializedState.FrameUpdatePoint requires that the modifier change at least one of the following properties of the frame: class name, method id, or continuation point id. SerializedState.FrameInterceptPoint on the other hand requires that these properties remain the same.

Author:
Kasra Faghihi
  • Constructor Details

    • FrameInterceptPoint

      public FrameInterceptPoint(String className, int methodId, int continuationPointId, SerializedState.FrameModifier frameModifier)
      Parameters:
      className - class name for the continuation point
      methodId - method id (used to identify method)
      continuationPointId - continuation point ID
      frameModifier - logic to modify the frame's contents to the new version
      Throws:
      NullPointerException - if any argument is null
      IllegalArgumentException - if continuationPointId < 0, or if oldMethodId == @code newMethodId
  • Method Details