APIdia Launch Partner
Top Description Fields Constructors Methods
jdk.incubator.vector

pack-priv final Enum LaneType

extends Enum<LaneType>
Class Inheritance
Imports
jdk.internal.vm.annotation.ForceInline, .Stable

Local type witness for primitive types int.class, etc. It caches all sorts of goodies that we can't put on java.lang.Class.

Field Summary

Modifier and TypeField and Description
pack-priv final Class<?>
private LaneType
private LaneType
public static final LaneType
private static final int
pack-priv final Class<?>
public static final LaneType
pack-priv final char
pack-priv final int
pack-priv final int
pack-priv final int
pack-priv final Class<?>
private static final LaneType[]
private static final LaneType[]
private static final LaneType[]
public static final LaneType
pack-priv final Class<?>
public static final LaneType
public static final LaneType
pack-priv final String
public static final LaneType
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv final int
pack-priv final char

Constructor Summary

AccessConstructor and Description
private
LaneType(Class<?> elementType, Class<?> genericElementType, Class<?> arrayType, char elementKind, int elementPrecision, int elementSize, Class<?> carrierType)

Method Summary

Modifier and TypeMethod and Description
pack-priv LaneType
pack-priv LaneType
private static RuntimeException
badElementType(Class<?> elementType, Object expected)

pack-priv LaneType
check(Class<?> expectedType)

pack-priv final LaneType
pack-priv static LaneType
forClassOrNull(Class<?> queryType)

Finds a LaneType for the given query-type.

pack-priv static LaneType
of(Class<?> elementType)

Decode a class mirror for an element type into an enum.

pack-priv static LaneType
private static LaneType
ofSlow(Class<?> elementType)

pack-priv static LaneType
ofSwitchKey(int sk)

public String
toString()

Overrides java.lang.Enum.toString.

Returns the name of this enum constant, as contained in the declaration.

public static LaneType
public static LaneType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinalvalueOf

Field Detail

arrayTypeback to summary
pack-priv final Class<?> arrayType
asFloatingback to summary
private LaneType asFloating
Annotations
@Stable
asIntegralback to summary
private LaneType asIntegral
Annotations
@Stable
BYTEback to summary
public static final LaneType BYTE
C0_MASKback to summary
private static final int C0_MASK
carrierTypeback to summary
pack-priv final Class<?> carrierType
DOUBLEback to summary
public static final LaneType DOUBLE
elementKindback to summary
pack-priv final char elementKind
elementPrecisionback to summary
pack-priv final int elementPrecision
elementSizeback to summary
pack-priv final int elementSize
elementSizeLog2back to summary
pack-priv final int elementSizeLog2
elementTypeback to summary
pack-priv final Class<?> elementType
ENUM_FROM_C0back to summary
private static final LaneType[] ENUM_FROM_C0
Annotations
@Stable
ENUM_FROM_SKback to summary
private static final LaneType[] ENUM_FROM_SK
Annotations
@Stable
ENUM_VALUESback to summary
private static final LaneType[] ENUM_VALUES
Annotations
@Stable
FLOATback to summary
public static final LaneType FLOAT
genericElementTypeback to summary
pack-priv final Class<?> genericElementType
INTback to summary
public static final LaneType INT
LONGback to summary
public static final LaneType LONG
printNameback to summary
pack-priv final String printName
SHORTback to summary
public static final LaneType SHORT
SK_BYTEback to summary
pack-priv static final int SK_BYTE
SK_DOUBLEback to summary
pack-priv static final int SK_DOUBLE
SK_FLOATback to summary
pack-priv static final int SK_FLOAT
SK_INTback to summary
pack-priv static final int SK_INT
SK_LIMITback to summary
pack-priv static final int SK_LIMIT
SK_LONGback to summary
pack-priv static final int SK_LONG
SK_SHORTback to summary
pack-priv static final int SK_SHORT
switchKeyback to summary
pack-priv final int switchKey
typeCharback to summary
pack-priv final char typeChar

Constructor Detail

LaneTypeback to summary
private LaneType(Class<?> elementType, Class<?> genericElementType, Class<?> arrayType, char elementKind, int elementPrecision, int elementSize, Class<?> carrierType)

Method Detail

asFloatingback to summary
pack-priv LaneType asFloating()
Annotations
@ForceInline
asIntegralback to summary
pack-priv LaneType asIntegral()
Annotations
@ForceInline
badElementTypeback to summary
private static RuntimeException badElementType(Class<?> elementType, Object expected)
checkback to summary
pack-priv LaneType check(Class<?> expectedType)
checkback to summary
pack-priv final LaneType check()
Annotations
@ForceInline
forClassOrNullback to summary
pack-priv static LaneType forClassOrNull(Class<?> queryType)

Finds a LaneType for the given query-type. The element type, box type, and array type are all matched. May be helpful for error messages.

ofback to summary
pack-priv static LaneType of(Class<?> elementType)

Decode a class mirror for an element type into an enum.

Annotations
@ForceInline
ofLaneTypeOrdinalback to summary
pack-priv static LaneType ofLaneTypeOrdinal(int lo)
Annotations
@ForceInline
ofSlowback to summary
private static LaneType ofSlow(Class<?> elementType)
ofSwitchKeyback to summary
pack-priv static LaneType ofSwitchKey(int sk)
Annotations
@ForceInline
toStringback to summary
public String toString()

Overrides java.lang.Enum.toString.

Doc from java.lang.Enum.toString.

Returns the name of this enum constant, as contained in the declaration. This method may be overridden, though it typically isn't necessary or desirable. An enum class should override this method when a more "programmer-friendly" string form exists.

Annotations
@Override
valueOfback to summary
public static LaneType valueOf(String name)
valuesback to summary
public static LaneType[] values()