public final class JSTemporalDuration extends JSNonProxy implements JSConstructorFactory.WithFunctions, PrototypeSupplier
usesOrdinaryGetOwnPropertyJSConstructorFactory.Default, JSConstructorFactory.WithFunctions, JSConstructorFactory.WithFunctionsAndSpecies| Modifier and Type | Field and Description |
|---|---|
static com.oracle.truffle.api.strings.TruffleString |
CLASS_NAME |
static JSTemporalDuration |
INSTANCE |
static com.oracle.truffle.api.strings.TruffleString |
PROTOTYPE_NAME |
static com.oracle.truffle.api.strings.TruffleString |
TO_STRING_TAG |
GET_SYMBOL_SPECIES_NAME| Modifier and Type | Method and Description |
|---|---|
static JSConstructor |
createConstructor(JSRealm realm) |
static JSTemporalDurationObject |
createNegatedTemporalDuration(JSContext context,
JSRealm realm,
JSTemporalDurationObject duration) |
JSDynamicObject |
createPrototype(JSRealm realm,
JSFunctionObject constructor) |
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) |
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) |
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) |
com.oracle.truffle.api.strings.TruffleString |
getClassName() |
com.oracle.truffle.api.strings.TruffleString |
getClassName(JSDynamicObject object)
The [[Class]] internal property.
|
JSDynamicObject |
getIntrinsicDefaultProto(JSRealm realm)
Allows invokevirtual of this method instead of invokeinterface.
|
static boolean |
isJSTemporalDuration(Object obj) |
com.oracle.truffle.api.object.Shape |
makeInitialShape(JSContext context,
JSDynamicObject prototype) |
static JSTemporalDurationRecord |
parseTemporalDurationString(com.oracle.truffle.api.strings.TruffleString string) |
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) |
static JSTemporalDurationRecord |
toTemporalDurationRecord(JSDynamicObject temporalDurationLike) |
checkProtoCycle, createSymbolSpeciesGetterFunction, defineOwnProperty, delete, delete, deletePropertyDefault, getBuiltinToStringTag, getHelper, getHelper, getMethodHelper, getOwnHelper, getOwnHelper, getOwnProperty, getOwnPropertyKeys, getPrototypeOf, hasOnlyShapeProperties, hasOwnProperty, hasOwnProperty, hasProperty, hasProperty, invokeAccessorPropertySetter, isExtensible, ordinaryGetOwnProperty, ordinaryGetOwnPropertyIntl, ordinaryIsExtensible, ordinaryOwnPropertyKeys, ordinaryOwnPropertyKeys, ordinaryOwnPropertyKeysSlow, ordinarySet, ordinarySetIndex, ordinarySetWithReceiver, performOrdinarySetWithOwnDescriptor, preventExtensions, preventExtensionsImpl, putConstructorSpeciesGetter, set, set, setIntegrityLevel, setIntegrityLevelFast, setPropertySlow, setPrototypeOf, testIntegrityLevel, testIntegrityLevelFast, toDisplayStringImpl, toString, usesOrdinaryGetOwnProperty, usesOrdinaryIsExtensibledefaultToString, filterOwnPropertyKeys, formatToString, get, get, getToStringTag, isInstance, isInstance, isInstance, isInstance, ownPropertyKeys, testIntegrityLevelDefaultclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateConstructorAndPrototypecreateConstructorObject, fillConstructorpublic static final JSTemporalDuration INSTANCE
public static final com.oracle.truffle.api.strings.TruffleString CLASS_NAME
public static final com.oracle.truffle.api.strings.TruffleString PROTOTYPE_NAME
public static final com.oracle.truffle.api.strings.TruffleString TO_STRING_TAG
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)
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)
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)
public static JSTemporalDurationObject createNegatedTemporalDuration(JSContext context, JSRealm realm, JSTemporalDurationObject duration)
public com.oracle.truffle.api.strings.TruffleString getClassName(JSDynamicObject object)
JSClassgetClassName in class JSClassobject - object to be usedpublic com.oracle.truffle.api.strings.TruffleString getClassName()
getClassName in interface JSConstructorFactorypublic JSDynamicObject createPrototype(JSRealm realm, JSFunctionObject constructor)
createPrototype in interface JSConstructorFactorypublic com.oracle.truffle.api.object.Shape makeInitialShape(JSContext context, JSDynamicObject prototype)
makeInitialShape in class JSClasspublic JSDynamicObject getIntrinsicDefaultProto(JSRealm realm)
JSClassPrototypeSupplier.getIntrinsicDefaultProto in interface PrototypeSuppliergetIntrinsicDefaultProto in class JSClassPrototypeSupplier.getIntrinsicDefaultProto(com.oracle.truffle.js.runtime.JSRealm)public static JSConstructor createConstructor(JSRealm realm)
public static boolean isJSTemporalDuration(Object obj)
public static JSTemporalDurationRecord parseTemporalDurationString(com.oracle.truffle.api.strings.TruffleString string)
public static JSTemporalDurationRecord toTemporalDurationRecord(JSDynamicObject temporalDurationLike)
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)