Record Class SyntheticModuleRecord.SharedData
java.lang.Object
java.lang.Record
com.oracle.truffle.js.runtime.objects.SyntheticModuleRecord.SharedData
- Enclosing class:
SyntheticModuleRecord
-
Constructor Summary
ConstructorsConstructorDescriptionSharedData(List<com.oracle.truffle.api.strings.TruffleString> exportNames, com.oracle.truffle.api.frame.FrameDescriptor frameDescriptor) Creates an instance of aSharedDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.List<com.oracle.truffle.api.strings.TruffleString> Returns the value of theexportNamesrecord component.com.oracle.truffle.api.frame.FrameDescriptorReturns the value of theframeDescriptorrecord component.fromExportNames(List<com.oracle.truffle.api.strings.TruffleString> exportNames) final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SharedData
public SharedData(List<com.oracle.truffle.api.strings.TruffleString> exportNames, com.oracle.truffle.api.frame.FrameDescriptor frameDescriptor) Creates an instance of aSharedDatarecord class.- Parameters:
exportNames- the value for theexportNamesrecord componentframeDescriptor- the value for theframeDescriptorrecord component
-
-
Method Details
-
fromExportNames
public static SyntheticModuleRecord.SharedData fromExportNames(List<com.oracle.truffle.api.strings.TruffleString> exportNames) -
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). -
exportNames
Returns the value of theexportNamesrecord component.- Returns:
- the value of the
exportNamesrecord component
-
frameDescriptor
public com.oracle.truffle.api.frame.FrameDescriptor frameDescriptor()Returns the value of theframeDescriptorrecord component.- Returns:
- the value of the
frameDescriptorrecord component
-