Enum Class DatePrototypeBuiltins.DatePrototype
java.lang.Object
java.lang.Enum<DatePrototypeBuiltins.DatePrototype>
com.oracle.truffle.js.builtins.DatePrototypeBuiltins.DatePrototype
- All Implemented Interfaces:
BuiltinEnum<DatePrototypeBuiltins.DatePrototype>,Serializable,Comparable<DatePrototypeBuiltins.DatePrototype>,Constable
- Enclosing class:
DatePrototypeBuiltins
public static enum DatePrototypeBuiltins.DatePrototype
extends Enum<DatePrototypeBuiltins.DatePrototype>
implements BuiltinEnum<DatePrototypeBuiltins.DatePrototype>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptioncreateNode(JSContext context, JSBuiltin builtin, boolean construct, boolean newTarget) intintbooleanisAnnexB()Returns the enum constant of this class with the specified name.static DatePrototypeBuiltins.DatePrototype[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface com.oracle.truffle.js.runtime.builtins.BuiltinEnum
args, asEnum, getKey, getName, isAOTSupported, isConfigurable, isConstructor, isEnabled, isEnumerable, isGetter, isNewTargetConstructor, isOptional, isSetter, isWritable, prependAccessorPrefix
-
Enum Constant Details
-
valueOf
-
toString
-
toDateString
-
toTimeString
-
toLocaleString
-
toLocaleDateString
-
toLocaleTimeString
-
toUTCString
-
toISOString
-
getTime
-
getFullYear
-
getUTCFullYear
-
getMonth
-
getUTCMonth
-
getDate
-
getUTCDate
-
getDay
-
getUTCDay
-
getHours
-
getUTCHours
-
getMinutes
-
getUTCMinutes
-
getSeconds
-
getUTCSeconds
-
getMilliseconds
-
getUTCMilliseconds
-
setTime
-
setDate
-
setUTCDate
-
setFullYear
-
setUTCFullYear
-
setMonth
-
setUTCMonth
-
setHours
-
setUTCHours
-
setMinutes
-
setUTCMinutes
-
setSeconds
-
setUTCSeconds
-
setMilliseconds
-
setUTCMilliseconds
-
getTimezoneOffset
-
toJSON
-
_toPrimitive
-
getYear
-
setYear
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getLength
public int getLength()- Specified by:
getLengthin interfaceBuiltinEnum<DatePrototypeBuiltins.DatePrototype>
-
isAnnexB
public boolean isAnnexB()- Specified by:
isAnnexBin interfaceBuiltinEnum<DatePrototypeBuiltins.DatePrototype>
-
getECMAScriptVersion
public int getECMAScriptVersion()- Specified by:
getECMAScriptVersionin interfaceBuiltinEnum<DatePrototypeBuiltins.DatePrototype>
-
createNode
public Object createNode(JSContext context, JSBuiltin builtin, boolean construct, boolean newTarget) - Specified by:
createNodein interfaceBuiltinEnum<DatePrototypeBuiltins.DatePrototype>
-