LambdaMetafactory
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Class | |
| pack-priv final MethodType[] | |
| pack-priv final MethodHandles. | |
| pack-priv final MethodType | |
| pack-priv final MethodType | |
| pack-priv final Class | |
| pack-priv final MethodHandle | |
| pack-priv final MethodHandleInfo | |
| pack-priv final boolean | |
| pack-priv final int | |
| pack-priv final MethodType | |
| pack-priv final Class | |
| pack-priv final String | |
| pack-priv final MethodType | |
| pack-priv final boolean | |
| pack-priv final Class |
| Access | Constructor and Description |
|---|---|
| pack-priv | AbstractValidatingLambdaMetafactory(MethodHandles.
Stacked automatically by VM; represents a lookup context
with the accessibility privileges of the caller. caller,Stacked automatically by VM; the signature of the
invoked method, which includes the expected static
type of the returned lambda object, and the static
types of the captured arguments for the lambda. In
the event that the implementation method is an
instance method, the first argument in the invocation
signature will correspond to the receiver. factoryType, String Name of the method in the functional interface to
which the lambda or method reference is being
converted, represented as a String. interfaceMethodName, MethodType Type of the method in the functional interface to
which the lambda or method reference is being
converted, represented as a MethodType. interfaceMethodType, MethodHandle The implementation method which should be called
(with suitable adaptation of argument types, return
types, and adjustment for captured arguments) when
methods of the resulting functional interface instance
are invoked. implementation, MethodType The signature of the primary functional
interface method after type variables are
substituted with their instantiation from
the capture site dynamicMethodType, boolean Should the lambda be made serializable? If set,
either the target type or one of the additional SAM
types must extend isSerializable, Class<?>[] Serializable.Additional interfaces which the lambda object
should implement. altInterfaces, MethodType[] Method types for additional signatures to be
implemented by invoking the implementation method altMethods)Meta-factory constructor. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv abstract CallSite | Returns: a CallSite, which, when invoked, will return an instance of the functional interfaceBuild the CallSite. |
| private void | checkDescriptor(MethodType descriptor)
Validate that the given descriptor's types are compatible with |
| private boolean | Returns: True if 'fromType' can be passed to an argument of 'toType'Type to convert from fromType, Class<?> Type to convert to toType, boolean If true, do strict checks, else allow that fromType may be parameterized strict)Check type adaptability for parameter types. |
| private boolean | Returns: True if 'fromType' can be converted to 'toType'Check type adaptability for return types -- special handling of void type) and parameterized fromType |
| private boolean | |
| pack-priv void |
| altInterfaces | back to summary |
|---|---|
| pack-priv final Class<?>[] altInterfaces | |
| altMethods | back to summary |
|---|---|
| pack-priv final MethodType[] altMethods | |
| caller | back to summary |
|---|---|
| pack-priv final MethodHandles. | |
| dynamicMethodType | back to summary |
|---|---|
| pack-priv final MethodType dynamicMethodType | |
| factoryType | back to summary |
|---|---|
| pack-priv final MethodType factoryType | |
| implClass | back to summary |
|---|---|
| pack-priv final Class<?> implClass | |
| implementation | back to summary |
|---|---|
| pack-priv final MethodHandle implementation | |
| implInfo | back to summary |
|---|---|
| pack-priv final MethodHandleInfo implInfo | |
| implIsInstanceMethod | back to summary |
|---|---|
| pack-priv final boolean implIsInstanceMethod | |
| implKind | back to summary |
|---|---|
| pack-priv final int implKind | |
| implMethodType | back to summary |
|---|---|
| pack-priv final MethodType implMethodType | |
| interfaceClass | back to summary |
|---|---|
| pack-priv final Class<?> interfaceClass | |
| interfaceMethodName | back to summary |
|---|---|
| pack-priv final String interfaceMethodName | |
| interfaceMethodType | back to summary |
|---|---|
| pack-priv final MethodType interfaceMethodType | |
| isSerializable | back to summary |
|---|---|
| pack-priv final boolean isSerializable | |
| targetClass | back to summary |
|---|---|
| pack-priv final Class<?> targetClass | |
| AbstractValidatingLambdaMetafactory | back to summary |
|---|---|
| pack-priv AbstractValidatingLambdaMetafactory(MethodHandles. Meta-factory constructor.
| |
| buildCallSite | back to summary |
|---|---|
| pack-priv abstract CallSite buildCallSite() throws LambdaConversionException Build the CallSite.
| |
| checkDescriptor | back to summary |
|---|---|
| private void checkDescriptor(MethodType descriptor) throws LambdaConversionException Validate that the given descriptor's types are compatible with | |
| isAdaptableTo | back to summary |
|---|---|
| private boolean isAdaptableTo(Class<?> fromType, Class<?> toType, boolean strict) Check type adaptability for parameter types. | |
| isAdaptableToAsReturn | back to summary |
|---|---|
| private boolean isAdaptableToAsReturn(Class<?> fromType, Class<?> toType) Check type adaptability for return types -- special handling of void type) and parameterized fromType
| |
| isAdaptableToAsReturnStrict | back to summary |
|---|---|
| private boolean isAdaptableToAsReturnStrict(Class<?> fromType, Class<?> toType) | |
| validateMetafactoryArgs | back to summary |
|---|---|
| pack-priv void validateMetafactoryArgs() throws LambdaConversionException Check the meta-factory arguments for errors
| |