public class Lambdas extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Lambdas.Kind
The kind of lambda.
|
static class |
Lambdas.LambdaInfo |
Constructor and Description |
---|
Lambdas() |
Modifier and Type | Method and Description |
---|---|
static Method |
getFunctionalMethod(SerializedLambda serializedLambda) |
static Method |
getImplementationMethod(SerializedLambda serializedLambda) |
static Method |
getMethod(Class<?> clazz,
String methodName) |
static Method |
getMethod(String className,
String methodName) |
static SerializedLambda |
getSerializedLambda(Object lambda)
Tries to get a SerializedLambda from an Object by searching the class
hierarchy for a
writeReplace method. |
static Lambdas.LambdaInfo |
reflect(Object lambda) |
public static Lambdas.LambdaInfo reflect(Object lambda)
public static SerializedLambda getSerializedLambda(Object lambda)
writeReplace
method. The lambda must
be serializable in order for this method to return a value.lambda
- An object that is an instance of a functional interface.public static Method getFunctionalMethod(SerializedLambda serializedLambda) throws NoSuchMethodException, ClassNotFoundException
public static Method getImplementationMethod(SerializedLambda serializedLambda) throws NoSuchMethodException, ClassNotFoundException
public static Method getMethod(String className, String methodName) throws NoSuchMethodException, ClassNotFoundException
public static Method getMethod(Class<?> clazz, String methodName) throws NoSuchMethodException, ClassNotFoundException
Copyright © 2019 ninjaframework. All rights reserved.