Package | Description |
---|---|
java.lang.invoke |
The
java.lang.invoke package contains dynamic language support provided directly by
the Java core class libraries and virtual machine. |
Modifier and Type | Method | Description |
---|---|---|
static VarHandle |
MethodHandles.arrayElementVarHandle(Class<?> arrayClass) |
Produces a VarHandle giving access to elements of an array type
T[] , supporting shape (T[], int : T) . |
static VarHandle |
MethodHandles.byteArrayViewVarHandle(Class<?> viewArrayClass,
ByteOrder byteOrder) |
Produces a VarHandle giving access to elements of a
byte[] array
viewed as if it were a different primitive array type, such as
int[] or long[] . |
static VarHandle |
MethodHandles.byteBufferViewVarHandle(Class<?> viewArrayClass,
ByteOrder byteOrder) |
Produces a VarHandle giving access to elements of a
ByteBuffer
viewed as if it were an array of elements of a different primitive
component type to that of byte , such as int[] or
long[] . |
VarHandle |
MethodHandles.Lookup.findStaticVarHandle(Class<?> decl,
String name,
Class<?> type) |
Produces a VarHandle giving access to a static field of type
T declared by a given declaring class, supporting shape
((empty) : T) . |
VarHandle |
MethodHandles.Lookup.findVarHandle(Class<?> recv,
String name,
Class<?> type) |
Produces a VarHandle giving access to non-static fields of type
T declared by a receiver class of type R , supporting
shape (R : T) . |
VarHandle |
MethodHandles.Lookup.unreflectVarHandle(Field f) |
Produces a VarHandle that accesses fields of type
T declared
by a class of type R , as described by the given reflected
field. |
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-internal+0-adhoc.mlchung.jdk9-jdeps