Class JSDateTimeFormat
java.lang.Object
com.oracle.truffle.js.runtime.builtins.JSClass
com.oracle.truffle.js.runtime.builtins.JSNonProxy
com.oracle.truffle.js.runtime.builtins.intl.JSDateTimeFormat
- All Implemented Interfaces:
JSConstructorFactory, JSConstructorFactory.WithFunctions, PrototypeSupplier
public final class JSDateTimeFormat
extends JSNonProxy
implements JSConstructorFactory.WithFunctions, PrototypeSupplier
-
Nested Class Summary
Nested ClassesNested 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 JSDateTimeFormatstatic 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 JSDateTimeFormatObjectstatic JSDateTimeFormatObjectcreate(JSContext context, JSRealm realm, JSDynamicObject proto) static JSConstructorcreateConstructor(JSRealm realm) createPrototype(JSRealm realm, JSFunctionObject ctor) static com.oracle.truffle.api.strings.TruffleStringformat(JSDateTimeFormatObject numberFormatObj, Object n) static com.oracle.truffle.api.strings.TruffleStringformatRange(JSDateTimeFormatObject dateTimeFormat, double startDate, double endDate) static JSDynamicObjectformatRangeToParts(JSContext context, JSRealm realm, JSDateTimeFormatObject dateTimeFormat, double startDate, double endDate) static JSDynamicObjectformatToParts(JSContext context, JSRealm realm, JSDateTimeFormatObject numberFormatObj, Object n, String source) com.oracle.truffle.api.strings.TruffleStringstatic org.graalvm.shadowed.com.ibm.icu.text.DateFormatgetIntrinsicDefaultProto(JSRealm realm) Allows invokevirtual of this method instead of invokeinterface.static booleanisJSDateTimeFormat(Object obj) com.oracle.truffle.api.object.ShapemakeInitialShape(JSContext ctx, JSDynamicObject prototype) static JSObjectresolvedOptions(JSContext context, JSRealm realm, JSDateTimeFormatObject dateTimeFormatObj) static voidsetupInternalDateTimeFormat(JSContext ctx, JSDateTimeFormat.InternalState state, String[] locales, String weekdayOpt, String eraOpt, String yearOpt, String monthOpt, String dayOpt, String dayPeriodOpt, String hourOpt, String hcOpt, Boolean hour12Opt, String minuteOpt, String secondOpt, int fractionalSecondDigitsOpt, String tzNameOpt, org.graalvm.shadowed.com.ibm.icu.util.TimeZone timeZone, String timeZoneId, String calendarOpt, String numberingSystemOpt, String dateStyleOpt, String timeStyleOpt) 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
-
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 -
INSTANCE
-
-
Method Details
-
isJSDateTimeFormat
-
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 ctx, JSDynamicObject prototype) - Overrides:
makeInitialShapein classJSClass
-
createConstructor
-
create
-
create
public static JSDateTimeFormatObject create(JSContext context, JSRealm realm, JSDynamicObject proto) -
setupInternalDateTimeFormat
public static void setupInternalDateTimeFormat(JSContext ctx, JSDateTimeFormat.InternalState state, String[] locales, String weekdayOpt, String eraOpt, String yearOpt, String monthOpt, String dayOpt, String dayPeriodOpt, String hourOpt, String hcOpt, Boolean hour12Opt, String minuteOpt, String secondOpt, int fractionalSecondDigitsOpt, String tzNameOpt, org.graalvm.shadowed.com.ibm.icu.util.TimeZone timeZone, String timeZoneId, String calendarOpt, String numberingSystemOpt, String dateStyleOpt, String timeStyleOpt) -
getAvailableNamedTimeZoneIdentifier
-
getDateFormatProperty
public static org.graalvm.shadowed.com.ibm.icu.text.DateFormat getDateFormatProperty(JSDateTimeFormatObject obj) -
format
public static com.oracle.truffle.api.strings.TruffleString format(JSDateTimeFormatObject numberFormatObj, Object n) -
formatToParts
public static JSDynamicObject formatToParts(JSContext context, JSRealm realm, JSDateTimeFormatObject numberFormatObj, Object n, String source) -
formatRange
public static com.oracle.truffle.api.strings.TruffleString formatRange(JSDateTimeFormatObject dateTimeFormat, double startDate, double endDate) -
formatRangeToParts
public static JSDynamicObject formatRangeToParts(JSContext context, JSRealm realm, JSDateTimeFormatObject dateTimeFormat, double startDate, double endDate) -
resolvedOptions
public static JSObject resolvedOptions(JSContext context, JSRealm realm, JSDateTimeFormatObject dateTimeFormatObj) -
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:
-