Modifier and Type | Class and Description |
---|---|
static class |
TypeExtractionUtils.LambdaExecutable
Similar to a Java 8 Executable but with a return type.
|
Modifier and Type | Method and Description |
---|---|
static TypeExtractionUtils.LambdaExecutable |
checkAndExtractLambda(Function function)
Checks if the given function has been implemented using a Java 8 lambda.
|
static List<Method> |
getAllDeclaredMethods(Class<?> clazz)
Returns all declared methods of a class including methods of superclasses.
|
static boolean |
isClassType(Type t)
Checks if a type can be converted to a Class.
|
static boolean |
sameTypeVars(Type t1,
Type t2)
Checks whether two types are type variables describing the same.
|
static Class<?> |
typeToClass(Type t)
Convert ParameterizedType or Class to a Class.
|
public static TypeExtractionUtils.LambdaExecutable checkAndExtractLambda(Function function) throws TypeExtractionException
TypeExtractionException
- lambda extraction is pretty hacky, it might fail for unknown JVM issues.public static List<Method> getAllDeclaredMethods(Class<?> clazz)
public static Class<?> typeToClass(Type t)
public static boolean isClassType(Type t)
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.