Class JSTemporalDuration
java.lang.Object
com.oracle.truffle.js.runtime.builtins.JSClass
com.oracle.truffle.js.runtime.builtins.JSNonProxy
com.oracle.truffle.js.runtime.builtins.temporal.JSTemporalDuration
- All Implemented Interfaces:
JSConstructorFactory, JSConstructorFactory.WithFunctions, PrototypeSupplier
public final class JSTemporalDuration
extends JSNonProxy
implements JSConstructorFactory.WithFunctions, PrototypeSupplier
-
Nested Class Summary
Nested classes/interfaces inherited from interface JSConstructorFactory
JSConstructorFactory.Default, JSConstructorFactory.WithFunctions, JSConstructorFactory.WithFunctionsAndSpecies -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.oracle.truffle.api.strings.TruffleStringstatic final JSTemporalDurationstatic final com.oracle.truffle.api.strings.TruffleStringstatic final com.oracle.truffle.api.strings.TruffleStringFields inherited from class JSNonProxy
GET_SYMBOL_SPECIES_NAME -
Method Summary
Modifier and TypeMethodDescriptionstatic JSConstructorcreateConstructor(JSRealm realm) static JSTemporalDurationObjectcreateNegatedTemporalDuration(JSContext context, JSRealm realm, JSTemporalDurationObject duration) createPrototype(JSRealm realm, JSFunctionObject constructor) static JSTemporalDurationObjectcreateTemporalDuration(JSContext context, JSRealm realm, double years, double months, double weeks, double days, double hours, double minutes, double seconds, double milliseconds, double microseconds, double nanoseconds, com.oracle.truffle.api.nodes.Node node, com.oracle.truffle.api.profiles.InlinedBranchProfile errorBranch) static JSTemporalDurationObjectcreateTemporalDuration(JSContext context, JSRealm realm, JSDynamicObject proto, double years, double months, double weeks, double days, double hours, double minutes, double seconds, double milliseconds, double microseconds, double nanoseconds, com.oracle.truffle.api.nodes.Node node, com.oracle.truffle.api.profiles.InlinedBranchProfile errorBranch) com.oracle.truffle.api.strings.TruffleStringgetIntrinsicDefaultProto(JSRealm realm) Allows invokevirtual of this method instead of invokeinterface.static booleancom.oracle.truffle.api.object.ShapemakeInitialShape(JSContext context, JSDynamicObject prototype) static JSTemporalDurationRecordparseTemporalDurationString(com.oracle.truffle.api.strings.TruffleString string) static com.oracle.truffle.api.strings.TruffleStringtemporalDurationToString(double yearsP, double monthsP, double weeksP, double daysP, double hoursP, double minutesP, double secondsP, double millisecondsP, double microsecondsP, double nanosecondsP, Object precision, JSNumberToBigIntNode toBigIntNode) Methods inherited from class JSNonProxy
checkProtoCycle, createSymbolSpeciesGetterFunction, defineOwnProperty, delete, delete, deletePropertyDefault, getHelper, getHelper, getMethodHelper, getOwnHelper, getOwnHelper, getOwnProperty, getOwnPropertyKeys, getPrototypeOf, hasOnlyShapeProperties, hasOwnProperty, hasOwnProperty, hasProperty, hasProperty, invokeAccessorPropertySetter, isExtensible, ordinaryGetOwnProperty, ordinaryGetOwnPropertyIntl, ordinaryIsExtensible, ordinaryOwnPropertyKeys, ordinaryOwnPropertyKeys, ordinaryOwnPropertyKeysSlow, ordinaryPreventExtensions, ordinarySet, ordinarySetIndex, ordinarySetWithReceiver, performOrdinarySetWithOwnDescriptor, preventExtensions, putConstructorSpeciesGetter, set, set, setIntegrityLevelFast, setPropertySlow, setPrototypeOf, testIntegrityLevelFast, usesOrdinaryGetOwnProperty, usesOrdinaryIsExtensibleMethods inherited from class JSClass
filterOwnPropertyKeys, get, get, isInstance, isInstance, isInstance, isInstance, ownPropertyKeys, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface JSConstructorFactory
createConstructorObject, fillConstructorMethods inherited from interface JSConstructorFactory.WithFunctions
createConstructorAndPrototype
-
Field Details
-
INSTANCE
-
CLASS_NAME
public static final com.oracle.truffle.api.strings.TruffleString CLASS_NAME -
PROTOTYPE_NAME
public static final com.oracle.truffle.api.strings.TruffleString PROTOTYPE_NAME -
TO_STRING_TAG
public static final com.oracle.truffle.api.strings.TruffleString TO_STRING_TAG
-
-
Method Details
-
createTemporalDuration
public static JSTemporalDurationObject createTemporalDuration(JSContext context, JSRealm realm, double years, double months, double weeks, double days, double hours, double minutes, double seconds, double milliseconds, double microseconds, double nanoseconds, com.oracle.truffle.api.nodes.Node node, com.oracle.truffle.api.profiles.InlinedBranchProfile errorBranch) -
createTemporalDuration
public static JSTemporalDurationObject createTemporalDuration(JSContext context, JSRealm realm, JSDynamicObject proto, double years, double months, double weeks, double days, double hours, double minutes, double seconds, double milliseconds, double microseconds, double nanoseconds, com.oracle.truffle.api.nodes.Node node, com.oracle.truffle.api.profiles.InlinedBranchProfile errorBranch) -
createNegatedTemporalDuration
public static JSTemporalDurationObject createNegatedTemporalDuration(JSContext context, JSRealm realm, JSTemporalDurationObject duration) -
getClassName
public com.oracle.truffle.api.strings.TruffleString getClassName()- Specified by:
getClassNamein interfaceJSConstructorFactory
-
createPrototype
- Specified by:
createPrototypein interfaceJSConstructorFactory
-
makeInitialShape
public com.oracle.truffle.api.object.Shape makeInitialShape(JSContext context, JSDynamicObject prototype) - Overrides:
makeInitialShapein classJSClass
-
getIntrinsicDefaultProto
Description copied from class:JSClassAllows invokevirtual of this method instead of invokeinterface. Classes overriding this method should implementPrototypeSupplier.- Specified by:
getIntrinsicDefaultProtoin interfacePrototypeSupplier- Overrides:
getIntrinsicDefaultProtoin classJSClass- See Also:
-
createConstructor
-
isJSTemporalDuration
-
parseTemporalDurationString
public static JSTemporalDurationRecord parseTemporalDurationString(com.oracle.truffle.api.strings.TruffleString string) -
temporalDurationToString
public static com.oracle.truffle.api.strings.TruffleString temporalDurationToString(double yearsP, double monthsP, double weeksP, double daysP, double hoursP, double minutesP, double secondsP, double millisecondsP, double microsecondsP, double nanosecondsP, Object precision, JSNumberToBigIntNode toBigIntNode)
-