Top Inners Fields Constructors Methods
java.lang.invoke

pack-priv final Class VarHandleByteArrayAsShorts

extends VarHandleByteArrayBase
Class Inheritance
Imports
jdk.internal.access.JavaNioAccess, .SharedSecrets, jdk.internal.foreign.AbstractMemorySegmentImpl, .MemorySessionImpl, jdk.internal.misc.ScopedMemoryAccess, .Unsafe, jdk.internal.util.Preconditions, jdk.internal.vm.annotation.ForceInline, java.lang.foreign.MemorySegment, java.nio.ByteBuffer, .ReadOnlyBufferException, java.util.List, .Objects, java.util.function.BiFunction

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
pack-priv abstract static class
pack-priv static class

Field Summary

Modifier and TypeField and Description
pack-priv static final int
pack-priv static final JavaNioAccess
pack-priv static final ScopedMemoryAccess
Inherited from java.lang.invoke.VarHandleByteArrayBase:
BEBUFFER_ADDRESSBUFFER_LIMITBYTE_BUFFER_HBBYTE_BUFFER_IS_READ_ONLY

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static short
convEndian(boolean big, short n)

Inherited from java.lang.invoke.VarHandleByteArrayBase:
newIllegalStateExceptionForMisalignedAccess

Field Detail

ALIGNback to summary
pack-priv static final int ALIGN
NIO_ACCESSback to summary
pack-priv static final JavaNioAccess NIO_ACCESS
SCOPED_MEMORY_ACCESSback to summary
pack-priv static final ScopedMemoryAccess SCOPED_MEMORY_ACCESS

Constructor Detail

VarHandleByteArrayAsShortsback to summary
pack-priv VarHandleByteArrayAsShorts()

Method Detail

convEndianback to summary
pack-priv static short convEndian(boolean big, short n)
Annotations
@ForceInline
java.lang.invoke back to summary

pack-priv final Class VarHandleByteArrayAsShorts.ArrayHandle

extends ByteArrayViewVarHandle
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv static final VarForm
Inherited from java.lang.invoke.VarHandleByteArrayAsShorts.ByteArrayViewVarHandle:
be

Constructor Summary

AccessConstructor and Description
pack-priv
ArrayHandle(boolean be)

private
ArrayHandle(boolean be, boolean exact)

Method Summary

Modifier and TypeMethod and Description
pack-priv final MethodType
pack-priv static short
get(VarHandle ob, Object oba, int index)

pack-priv static int
index(byte[] ba, int index)

pack-priv static void
set(VarHandle ob, Object oba, int index, short value)

public VarHandleByteArrayAsShorts.ArrayHandle
withInvokeBehavior()

Implements abstract java.lang.invoke.VarHandle.withInvokeBehavior.

Returns a VarHandle, with access to the same variable(s) as this VarHandle, but whose invocation behavior of access mode methods is adjusted to invoke behavior.

public VarHandleByteArrayAsShorts.ArrayHandle
withInvokeExactBehavior()

Implements abstract java.lang.invoke.VarHandle.withInvokeExactBehavior.

Returns a VarHandle, with access to the same variable(s) as this VarHandle, but whose invocation behavior of access mode methods is adjusted to invoke-exact behavior.

Field Detail

FORMback to summary
pack-priv static final VarForm FORM

Constructor Detail

ArrayHandleback to summary
pack-priv ArrayHandle(boolean be)
ArrayHandleback to summary
private ArrayHandle(boolean be, boolean exact)

Method Detail

accessModeTypeUncachedback to summary
pack-priv final MethodType accessModeTypeUncached(VarHandle.AccessType at)

Implements abstract java.lang.invoke.VarHandle.accessModeTypeUncached.

Annotations
@Override
getback to summary
pack-priv static short get(VarHandle ob, Object oba, int index)
Annotations
@ForceInline
indexback to summary
pack-priv static int index(byte[] ba, int index)
Annotations
@ForceInline
setback to summary
pack-priv static void set(VarHandle ob, Object oba, int index, short value)
Annotations
@ForceInline
withInvokeBehaviorback to summary
public VarHandleByteArrayAsShorts.ArrayHandle withInvokeBehavior()

Implements abstract java.lang.invoke.VarHandle.withInvokeBehavior.

Doc from java.lang.invoke.VarHandle.withInvokeBehavior.

Returns a VarHandle, with access to the same variable(s) as this VarHandle, but whose invocation behavior of access mode methods is adjusted to invoke behavior.

If this VarHandle already has invoke behavior this VarHandle is returned.

Invoking hasInvokeExactBehavior() on the returned var handle is guaranteed to return false.

Returns:VarHandleByteArrayAsShorts.ArrayHandle

a VarHandle with invoke behavior

Annotations
@Override
withInvokeExactBehaviorback to summary
public VarHandleByteArrayAsShorts.ArrayHandle withInvokeExactBehavior()

Implements abstract java.lang.invoke.VarHandle.withInvokeExactBehavior.

Doc from java.lang.invoke.VarHandle.withInvokeExactBehavior.

Returns a VarHandle, with access to the same variable(s) as this VarHandle, but whose invocation behavior of access mode methods is adjusted to invoke-exact behavior.

If this VarHandle already has invoke-exact behavior this VarHandle is returned.

Invoking hasInvokeExactBehavior() on the returned var handle is guaranteed to return true.

Returns:VarHandleByteArrayAsShorts.ArrayHandle

a VarHandle with invoke-exact behavior

Annotations
@Override
java.lang.invoke back to summary

pack-priv abstract sealed Class VarHandleByteArrayAsShorts.ByteArrayViewVarHandle

extends VarHandle
permits ArrayHandle, ByteBufferHandle
Class Inheritance
Known Direct Subclasses
java.lang.invoke.VarHandleByteArrayAsShorts.ArrayHandle, java.lang.invoke.VarHandleByteArrayAsShorts.ByteBufferHandle

Field Summary

Modifier and TypeField and Description
pack-priv final boolean
Inherited from java.lang.invoke.VarHandle:
exactmethodHandleTablemethodTypeTablevform

Constructor Summary

AccessConstructor and Description
pack-priv
ByteArrayViewVarHandle(VarForm form, boolean be, boolean exact)

Method Summary

Inherited from java.lang.invoke.VarHandle:
accessModeTypeaccessModeTypeaccessModeTypeUncachedaccessModeTypeUncachedacquireFenceasDirectcheckAccessModeThenIsDirectcompareAndExchangecompareAndExchangeAcquirecompareAndExchangeReleasecompareAndSetcoordinateTypesdescribeConstablefullFencegetgetAcquiregetAndAddgetAndAddAcquiregetAndAddReleasegetAndBitwiseAndgetAndBitwiseAndAcquiregetAndBitwiseAndReleasegetAndBitwiseOrgetAndBitwiseOrAcquiregetAndBitwiseOrReleasegetAndBitwiseXorgetAndBitwiseXorAcquiregetAndBitwiseXorReleasegetAndSetgetAndSetAcquiregetAndSetReleasegetMethodHandlegetMethodHandleUncachedgetOpaquegetVolatilehasInvokeExactBehaviorisAccessModeSupportedloadLoadFencereleaseFencesetsetOpaquesetReleasesetVolatilestoreStoreFencetargettoMethodHandletoStringupdateVarFormvarTypeweakCompareAndSetweakCompareAndSetAcquireweakCompareAndSetPlainweakCompareAndSetReleasewithInvokeBehaviorwithInvokeExactBehavior

Field Detail

beback to summary
pack-priv final boolean be

Constructor Detail

ByteArrayViewVarHandleback to summary
pack-priv ByteArrayViewVarHandle(VarForm form, boolean be, boolean exact)
java.lang.invoke back to summary

pack-priv final Class VarHandleByteArrayAsShorts.ByteBufferHandle

extends ByteArrayViewVarHandle
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv static final VarForm
Inherited from java.lang.invoke.VarHandleByteArrayAsShorts.ByteArrayViewVarHandle:
be

Constructor Summary

AccessConstructor and Description
pack-priv
ByteBufferHandle(boolean be)

private
ByteBufferHandle(boolean be, boolean exact)

Method Summary

Modifier and TypeMethod and Description
pack-priv final MethodType
pack-priv static long
address(ByteBuffer bb, int index)

pack-priv static Object
pack-priv static short
get(VarHandle ob, Object obb, int index)

pack-priv static short
getAcquire(VarHandle ob, Object obb, int index)

pack-priv static short
getOpaque(VarHandle ob, Object obb, int index)

pack-priv static short
getVolatile(VarHandle ob, Object obb, int index)

pack-priv static int
index(ByteBuffer bb, int index)

pack-priv static int
indexRO(ByteBuffer bb, int index)

pack-priv static MemorySessionImpl
pack-priv static void
set(VarHandle ob, Object obb, int index, short value)

pack-priv static void
setOpaque(VarHandle ob, Object obb, int index, short value)

pack-priv static void
setRelease(VarHandle ob, Object obb, int index, short value)

pack-priv static void
setVolatile(VarHandle ob, Object obb, int index, short value)

public VarHandleByteArrayAsShorts.ByteBufferHandle
withInvokeBehavior()

Implements abstract java.lang.invoke.VarHandle.withInvokeBehavior.

Returns a VarHandle, with access to the same variable(s) as this VarHandle, but whose invocation behavior of access mode methods is adjusted to invoke behavior.

public VarHandleByteArrayAsShorts.ByteBufferHandle
withInvokeExactBehavior()

Implements abstract java.lang.invoke.VarHandle.withInvokeExactBehavior.

Returns a VarHandle, with access to the same variable(s) as this VarHandle, but whose invocation behavior of access mode methods is adjusted to invoke-exact behavior.

Field Detail

FORMback to summary
pack-priv static final VarForm FORM

Constructor Detail

ByteBufferHandleback to summary
pack-priv ByteBufferHandle(boolean be)
ByteBufferHandleback to summary
private ByteBufferHandle(boolean be, boolean exact)

Method Detail

accessModeTypeUncachedback to summary
pack-priv final MethodType accessModeTypeUncached(VarHandle.AccessType at)

Implements abstract java.lang.invoke.VarHandle.accessModeTypeUncached.

Annotations
@Override
addressback to summary
pack-priv static long address(ByteBuffer bb, int index)
Annotations
@ForceInline
checkNullHeapBaseback to summary
pack-priv static Object checkNullHeapBase(Object hb)
Annotations
@ForceInline
getback to summary
pack-priv static short get(VarHandle ob, Object obb, int index)
Annotations
@ForceInline
getAcquireback to summary
pack-priv static short getAcquire(VarHandle ob, Object obb, int index)
Annotations
@ForceInline
getOpaqueback to summary
pack-priv static short getOpaque(VarHandle ob, Object obb, int index)
Annotations
@ForceInline
getVolatileback to summary
pack-priv static short getVolatile(VarHandle ob, Object obb, int index)
Annotations
@ForceInline
indexback to summary
pack-priv static int index(ByteBuffer bb, int index)
Annotations
@ForceInline
indexROback to summary
pack-priv static int indexRO(ByteBuffer bb, int index)
Annotations
@ForceInline
sessionback to summary
pack-priv static MemorySessionImpl session(ByteBuffer bb)
Annotations
@ForceInline
setback to summary
pack-priv static void set(VarHandle ob, Object obb, int index, short value)
Annotations
@ForceInline
setOpaqueback to summary
pack-priv static void setOpaque(VarHandle ob, Object obb, int index, short value)
Annotations
@ForceInline
setReleaseback to summary
pack-priv static void setRelease(VarHandle ob, Object obb, int index, short value)
Annotations
@ForceInline
setVolatileback to summary
pack-priv static void setVolatile(VarHandle ob, Object obb, int index, short value)
Annotations
@ForceInline
withInvokeBehaviorback to summary
public VarHandleByteArrayAsShorts.ByteBufferHandle withInvokeBehavior()

Implements abstract java.lang.invoke.VarHandle.withInvokeBehavior.

Doc from java.lang.invoke.VarHandle.withInvokeBehavior.

Returns a VarHandle, with access to the same variable(s) as this VarHandle, but whose invocation behavior of access mode methods is adjusted to invoke behavior.

If this VarHandle already has invoke behavior this VarHandle is returned.

Invoking hasInvokeExactBehavior() on the returned var handle is guaranteed to return false.

Returns:VarHandleByteArrayAsShorts.ByteBufferHandle

a VarHandle with invoke behavior

Annotations
@Override
withInvokeExactBehaviorback to summary
public VarHandleByteArrayAsShorts.ByteBufferHandle withInvokeExactBehavior()

Implements abstract java.lang.invoke.VarHandle.withInvokeExactBehavior.

Doc from java.lang.invoke.VarHandle.withInvokeExactBehavior.

Returns a VarHandle, with access to the same variable(s) as this VarHandle, but whose invocation behavior of access mode methods is adjusted to invoke-exact behavior.

If this VarHandle already has invoke-exact behavior this VarHandle is returned.

Invoking hasInvokeExactBehavior() on the returned var handle is guaranteed to return true.

Returns:VarHandleByteArrayAsShorts.ByteBufferHandle

a VarHandle with invoke-exact behavior

Annotations
@Override