Enum Class TypedArrayFactory
- All Implemented Interfaces:
PrototypeSupplier, Serializable, Comparable<TypedArrayFactory>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionfinal TypedArraycreateArrayType(byte bufferType, boolean offset, boolean fixedLength) final intfinal bytefinal intfinal JSDynamicObjectgetIntrinsicDefaultProto(JSRealm realm) final com.oracle.truffle.api.strings.TruffleStringgetName()final booleanisBigInt()final booleanisFloat()static TypedArrayFactoryReturns the enum constant of this class with the specified name.static TypedArrayFactory[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Int8Array
-
Uint8Array
-
Uint8ClampedArray
-
Int16Array
-
Uint16Array
-
Int32Array
-
Uint32Array
-
Float32Array
-
Float64Array
-
BigInt64Array
-
BigUint64Array
-
Float16Array
-
-
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
-
createArrayType
-
getBytesPerElement
public final int getBytesPerElement() -
getBytesPerElementShift
public final byte getBytesPerElementShift() -
getFactoryIndex
public final int getFactoryIndex() -
getName
public final com.oracle.truffle.api.strings.TruffleString getName() -
getIntrinsicDefaultProto
- Specified by:
getIntrinsicDefaultProtoin interfacePrototypeSupplier
-
isBigInt
public final boolean isBigInt() -
isFloat
public final boolean isFloat()
-