Record Class CyclicModuleRecord.LoadedModuleRequest
java.lang.Object
java.lang.Record
com.oracle.truffle.js.runtime.objects.CyclicModuleRecord.LoadedModuleRequest
- Enclosing class:
CyclicModuleRecord
-
Constructor Summary
ConstructorsConstructorDescriptionLoadedModuleRequest(com.oracle.truffle.api.strings.TruffleString specifier, Map<com.oracle.truffle.api.strings.TruffleString, com.oracle.truffle.api.strings.TruffleString> attributes) Creates an instance of aLoadedModuleRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionMap<com.oracle.truffle.api.strings.TruffleString, com.oracle.truffle.api.strings.TruffleString> Returns the value of theattributesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.of(Module.ModuleRequest request) Only keep specifier and import attributes for loaded module lookup, drop import phase.com.oracle.truffle.api.strings.TruffleStringReturns the value of thespecifierrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LoadedModuleRequest
public LoadedModuleRequest(com.oracle.truffle.api.strings.TruffleString specifier, Map<com.oracle.truffle.api.strings.TruffleString, com.oracle.truffle.api.strings.TruffleString> attributes) Creates an instance of aLoadedModuleRequestrecord class.- Parameters:
specifier- the value for thespecifierrecord componentattributes- the value for theattributesrecord component
-
-
Method Details
-
of
Only keep specifier and import attributes for loaded module lookup, drop import phase. See ModuleRequestsEqual. -
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). -
specifier
public com.oracle.truffle.api.strings.TruffleString specifier()Returns the value of thespecifierrecord component.- Returns:
- the value of the
specifierrecord component
-
attributes
public Map<com.oracle.truffle.api.strings.TruffleString, com.oracle.truffle.api.strings.TruffleString> attributes()Returns the value of theattributesrecord component.- Returns:
- the value of the
attributesrecord component
-