Package com.offbynull.coroutines.user
Class SerializedState.FrameUpdatePoint
java.lang.Object
com.offbynull.coroutines.user.SerializedState.FrameUpdatePoint
- Enclosing class:
SerializedState
Frame update 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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
private final int
private final SerializedState.FrameModifier
private final int
-
Constructor Summary
ConstructorsConstructorDescriptionFrameUpdatePoint
(String className, int methodId, int continuationPointId, SerializedState.FrameModifier frameModifier) Constructs aSerializedState.FrameUpdatePoint
object. -
Method Summary
Modifier and TypeMethodDescription(package private) SerializationUtils.FrameUpdatePointKey
toKey()
toString()
(package private) SerializationUtils.FrameUpdatePointValue
toValue()
-
Field Details
-
className
-
methodId
private final int methodId -
continuationPointId
private final int continuationPointId -
frameModifier
-
-
Constructor Details
-
FrameUpdatePoint
public FrameUpdatePoint(String className, int methodId, int continuationPointId, SerializedState.FrameModifier frameModifier) Constructs aSerializedState.FrameUpdatePoint
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:
NullPointerException
- if any argument isnull
IllegalArgumentException
- ifcontinuationPointId < 0
, or ifoldMethodId == @code newMethodId
-
-
Method Details
-
toKey
-
toValue
SerializationUtils.FrameUpdatePointValue toValue() -
toString
-