Record Class SyntheticModuleRecord.SharedData

java.lang.Object
java.lang.Record
com.oracle.truffle.js.runtime.objects.SyntheticModuleRecord.SharedData
Enclosing class:
SyntheticModuleRecord

public static record SyntheticModuleRecord.SharedData(List<com.oracle.truffle.api.strings.TruffleString> exportNames, com.oracle.truffle.api.frame.FrameDescriptor frameDescriptor) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    SharedData(List<com.oracle.truffle.api.strings.TruffleString> exportNames, com.oracle.truffle.api.frame.FrameDescriptor frameDescriptor)
    Creates an instance of a SharedData record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    List<com.oracle.truffle.api.strings.TruffleString>
    Returns the value of the exportNames record component.
    com.oracle.truffle.api.frame.FrameDescriptor
    Returns the value of the frameDescriptor record component.
    fromExportNames(List<com.oracle.truffle.api.strings.TruffleString> exportNames)
     
    final int
    Returns a hash code value for this object.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SharedData

      public SharedData(List<com.oracle.truffle.api.strings.TruffleString> exportNames, com.oracle.truffle.api.frame.FrameDescriptor frameDescriptor)
      Creates an instance of a SharedData record class.
      Parameters:
      exportNames - the value for the exportNames record component
      frameDescriptor - the value for the frameDescriptor record component
  • Method Details

    • fromExportNames

      public static SyntheticModuleRecord.SharedData fromExportNames(List<com.oracle.truffle.api.strings.TruffleString> exportNames)
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • exportNames

      public List<com.oracle.truffle.api.strings.TruffleString> exportNames()
      Returns the value of the exportNames record component.
      Returns:
      the value of the exportNames record component
    • frameDescriptor

      public com.oracle.truffle.api.frame.FrameDescriptor frameDescriptor()
      Returns the value of the frameDescriptor record component.
      Returns:
      the value of the frameDescriptor record component