Package com.offbynull.coroutines.user
Class SerializedState.FrameInterceptPoint
- java.lang.Object
-
- com.offbynull.coroutines.user.SerializedState.FrameInterceptPoint
-
- Enclosing class:
- SerializedState
public static final class SerializedState.FrameInterceptPoint extends java.lang.Object
Frame intercept point.What's the difference between
SerializedState.FrameUpdatePoint
andSerializedState.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.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
className
private int
continuationPointId
private SerializedState.FrameModifier
frameModifier
private int
methodId
-
Constructor Summary
Constructors Constructor Description FrameInterceptPoint(java.lang.String className, int methodId, int continuationPointId, SerializedState.FrameModifier frameModifier)
Constructs aSerializedState.FrameInterceptPoint
object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) SerializationUtils.FrameUpdatePointKey
toKey()
java.lang.String
toString()
(package private) SerializationUtils.FrameUpdatePointValue
toValue()
-
-
-
Field Detail
-
className
private final java.lang.String className
-
methodId
private final int methodId
-
continuationPointId
private final int continuationPointId
-
frameModifier
private final SerializedState.FrameModifier frameModifier
-
-
Constructor Detail
-
FrameInterceptPoint
public FrameInterceptPoint(java.lang.String className, int methodId, int continuationPointId, SerializedState.FrameModifier frameModifier)
Constructs aSerializedState.FrameInterceptPoint
object.- Parameters:
className
- class name for the continuation pointmethodId
- method id (used to identify method)continuationPointId
- continuation point IDframeModifier
- logic to modify the frame's contents to the new version- Throws:
java.lang.NullPointerException
- if any argument isnull
java.lang.IllegalArgumentException
- ifcontinuationPointId < 0
, or ifoldMethodId == @code newMethodId
-
-
Method Detail
-
toKey
SerializationUtils.FrameUpdatePointKey toKey()
-
toValue
SerializationUtils.FrameUpdatePointValue toValue()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-