Record Class ImportCallNode.ContinueDynamicImportPayload
java.lang.Object
java.lang.Record
com.oracle.truffle.js.nodes.promise.ImportCallNode.ContinueDynamicImportPayload
- Enclosing class:
ImportCallNode
public static record ImportCallNode.ContinueDynamicImportPayload(PromiseCapabilityRecord promiseCapability, Module.ImportPhase phase, JSFunctionObject continueDynamicImportCallback)
extends Record
Payload to be passed via HostLoadImportedModule to FinishLoadingImportedModule.
-
Constructor Summary
ConstructorsConstructorDescriptionContinueDynamicImportPayload(PromiseCapabilityRecord promiseCapability, Module.ImportPhase phase, JSFunctionObject continueDynamicImportCallback) Creates an instance of aContinueDynamicImportPayloadrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontinueDynamicImportCallbackrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.phase()Returns the value of thephaserecord component.Returns the value of thepromiseCapabilityrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ContinueDynamicImportPayload
public ContinueDynamicImportPayload(PromiseCapabilityRecord promiseCapability, Module.ImportPhase phase, JSFunctionObject continueDynamicImportCallback) Creates an instance of aContinueDynamicImportPayloadrecord class.- Parameters:
promiseCapability- the value for thepromiseCapabilityrecord componentphase- the value for thephaserecord componentcontinueDynamicImportCallback- the value for thecontinueDynamicImportCallbackrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
promiseCapability
Returns the value of thepromiseCapabilityrecord component.- Returns:
- the value of the
promiseCapabilityrecord component
-
phase
Returns the value of thephaserecord component.- Returns:
- the value of the
phaserecord component
-
continueDynamicImportCallback
Returns the value of thecontinueDynamicImportCallbackrecord component.- Returns:
- the value of the
continueDynamicImportCallbackrecord component
-