static CallSite |
LambdaMetafactory.altMetafactory(MethodHandles.Lookup caller,
String invokedName,
MethodType invokedType,
Object... args) |
Facilitates the creation of simple "function objects" that implement one
or more interfaces by delegation to a provided MethodHandle ,
after appropriate type adaptation and partial evaluation of arguments.
|
static VarHandle |
ConstantBootstraps.arrayVarHandle(MethodHandles.Lookup lookup,
String name,
Class<VarHandle> type,
Class<?> arrayClass) |
|
static <E extends Enum<E>> E |
ConstantBootstraps.enumConstant(MethodHandles.Lookup lookup,
String name,
Class<E> type) |
Returns an enum constant of the type specified by type
with the name specified by name .
|
static VarHandle |
ConstantBootstraps.fieldVarHandle(MethodHandles.Lookup lookup,
String name,
Class<VarHandle> type,
Class<?> declaringClass,
Class<?> fieldType) |
|
static Object |
ConstantBootstraps.getStaticFinal(MethodHandles.Lookup lookup,
String name,
Class<?> type) |
Returns the value of a static final field declared in the class which
is the same as the field's type (or, for primitive-valued fields,
declared in the wrapper class.)
|
static Object |
ConstantBootstraps.getStaticFinal(MethodHandles.Lookup lookup,
String name,
Class<?> type,
Class<?> declaringClass) |
Returns the value of a static final field.
|
static Object |
ConstantBootstraps.invoke(MethodHandles.Lookup lookup,
String name,
Class<?> type,
MethodHandle handle,
Object... args) |
Returns the result of invoking a method handle with the provided
arguments.
|
static CallSite |
StringConcatFactory.makeConcat(MethodHandles.Lookup lookup,
String name,
MethodType concatType) |
Facilitates the creation of optimized String concatenation methods, that
can be used to efficiently concatenate a known number of arguments of
known types, possibly after type adaptation and partial evaluation of
arguments.
|
static CallSite |
StringConcatFactory.makeConcatWithConstants(MethodHandles.Lookup lookup,
String name,
MethodType concatType,
String recipe,
Object... constants) |
Facilitates the creation of optimized String concatenation methods, that
can be used to efficiently concatenate a known number of arguments of
known types, possibly after type adaptation and partial evaluation of
arguments.
|
static CallSite |
LambdaMetafactory.metafactory(MethodHandles.Lookup caller,
String invokedName,
MethodType invokedType,
MethodType samMethodType,
MethodHandle implMethod,
MethodType instantiatedMethodType) |
Facilitates the creation of simple "function objects" that implement one
or more interfaces by delegation to a provided MethodHandle ,
after appropriate type adaptation and partial evaluation of arguments.
|
static Object |
ConstantBootstraps.nullConstant(MethodHandles.Lookup lookup,
String name,
Class<?> type) |
Returns a null object reference for the reference type specified
by type .
|
static Class<?> |
ConstantBootstraps.primitiveClass(MethodHandles.Lookup lookup,
String name,
Class<?> type) |
Returns a Class mirror for the primitive type whose type
descriptor is specified by name .
|
static MethodHandles.Lookup |
MethodHandles.privateLookupIn(Class<?> targetClass,
MethodHandles.Lookup lookup) |
Returns a lookup object with full capabilities to emulate all
supported bytecode behaviors, including
private access, on a target class.
|
<T extends Member> T |
MethodHandleInfo.reflectAs(Class<T> expected,
MethodHandles.Lookup lookup) |
Reflects the underlying member as a method, constructor, or field object.
|
static VarHandle |
ConstantBootstraps.staticFieldVarHandle(MethodHandles.Lookup lookup,
String name,
Class<VarHandle> type,
Class<?> declaringClass,
Class<?> fieldType) |
|