| Package | Description |
|---|---|
| java.lang.invoke |
| Modifier and Type | Method and Description |
|---|---|
MethodType |
MethodType.appendParameterTypes(Class<?>... ptypesToInsert)
Finds or creates a method type with additional parameter types.
|
MethodType |
MethodType.appendParameterTypes(List<Class<?>> ptypesToInsert)
Finds or creates a method type with additional parameter types.
|
MethodType |
MethodType.changeParameterType(int num,
Class<?> nptype)
Finds or creates a method type with a single different parameter type.
|
MethodType |
MethodType.changeReturnType(Class<?> nrtype)
Finds or creates a method type with a different return type.
|
MethodType |
MethodType.dropParameterTypes(int start,
int end)
Finds or creates a method type with some parameter types omitted.
|
MethodType |
MethodType.erase()
Erases all reference types to
Object. |
static MethodType |
MethodType.fromMethodDescriptorString(String descriptor,
ClassLoader loader)
Finds or creates an instance of a method type, given the spelling of its bytecode descriptor.
|
MethodType |
MethodType.generic()
Converts all types, both reference and primitive, to
Object. |
static MethodType |
MethodType.genericMethodType(int objectArgCount)
Finds or creates a method type whose components are all
Object. |
static MethodType |
MethodType.genericMethodType(int objectArgCount,
boolean finalArray)
Finds or creates a method type whose components are
Object with an optional trailing Object[] array. |
MethodType |
MethodType.insertParameterTypes(int num,
Class<?>... ptypesToInsert)
Finds or creates a method type with additional parameter types.
|
MethodType |
MethodType.insertParameterTypes(int num,
List<Class<?>> ptypesToInsert)
Finds or creates a method type with additional parameter types.
|
static MethodType |
MethodType.methodType(Class<?> rtype)
Finds or creates a method type with the given components.
|
static MethodType |
MethodType.methodType(Class<?> rtype,
Class<?> ptype0)
Finds or creates a method type with the given components.
|
static MethodType |
MethodType.methodType(Class<?> rtype,
Class<?>[] ptypes)
Finds or creates an instance of the given method type.
|
static MethodType |
MethodType.methodType(Class<?> rtype,
Class<?> ptype0,
Class<?>... ptypes)
Finds or creates a method type with the given components.
|
static MethodType |
MethodType.methodType(Class<?> rtype,
List<Class<?>> ptypes)
Finds or creates a method type with the given components.
|
static MethodType |
MethodType.methodType(Class<?> rtype,
MethodType ptypes)
Finds or creates a method type with the given components.
|
MethodType |
MethodHandle.type()
Reports the type of this method handle.
|
MethodType |
CallSite.type()
Returns the type of this call site's target.
|
MethodType |
MethodType.unwrap()
Converts all wrapper types to their corresponding primitive types.
|
MethodType |
MethodType.wrap()
Converts all primitive types to their corresponding wrapper types.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
MethodHandle |
MethodHandle.asType(MethodType newType)
Produces an adapter method handle which adapts the type of the
current method handle to a new type.
|
MethodHandle |
MethodHandles.Lookup.bind(Object receiver,
String name,
MethodType type)
Produces an early-bound method handle for a non-static method.
|
MethodHandle |
MethodHandles.Lookup.findConstructor(Class<?> refc,
MethodType type)
Produces a method handle which creates an object and initializes it, using
the constructor of the specified type.
|
MethodHandle |
MethodHandles.Lookup.findSpecial(Class<?> refc,
String name,
MethodType type,
Class<?> specialCaller)
Produces an early-bound method handle for a virtual method.
|
MethodHandle |
MethodHandles.Lookup.findStatic(Class<?> refc,
String name,
MethodType type)
Produces a method handle for a static method.
|
MethodHandle |
MethodHandles.Lookup.findVirtual(Class<?> refc,
String name,
MethodType type)
Produces a method handle for a virtual method.
|
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 MethodType |
MethodType.methodType(Class<?> rtype,
MethodType ptypes)
Finds or creates a method type with the given components.
|
Copyright © 2019 API Design. All Rights Reserved.