Enum Class TypedArrayFactory

java.lang.Object
java.lang.Enum<TypedArrayFactory>
com.oracle.truffle.js.runtime.array.TypedArrayFactory
All Implemented Interfaces:
PrototypeSupplier, Serializable, Comparable<TypedArrayFactory>, Constable

public enum TypedArrayFactory extends Enum<TypedArrayFactory> implements PrototypeSupplier
  • Enum Constant Details

  • Method Details

    • values

      public static TypedArrayFactory[] 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

      public static TypedArrayFactory valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • createArrayType

      public final TypedArray createArrayType(byte bufferType, boolean offset, boolean fixedLength)
    • 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

      public final JSDynamicObject getIntrinsicDefaultProto(JSRealm realm)
      Specified by:
      getIntrinsicDefaultProto in interface PrototypeSupplier
    • isBigInt

      public final boolean isBigInt()
    • isFloat

      public final boolean isFloat()