Class FunctionalInterfaceLogic
- java.lang.Object
-
- com.github.javaparser.resolution.logic.FunctionalInterfaceLogic
-
public final class FunctionalInterfaceLogic extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
JAVA_LANG_FUNCTIONAL_INTERFACE
private static java.util.List<java.lang.String>
OBJECT_PUBLIC_METHODS_SIGNATURES
-
Constructor Summary
Constructors Modifier Constructor Description private
FunctionalInterfaceLogic()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Optional<MethodUsage>
getFunctionalMethod(ResolvedReferenceTypeDeclaration typeDeclaration)
Get the functional method defined by the type, if any.static java.util.Optional<MethodUsage>
getFunctionalMethod(ResolvedType type)
Get the functional method defined by the type, if any.private static java.lang.String
getSignature(java.lang.reflect.Method m)
static boolean
isFunctionalInterfaceType(ResolvedType type)
private static boolean
isPublicMemberOfObject(MethodUsage m)
private static java.lang.String
toSignature(java.lang.reflect.Parameter p)
-
-
-
Method Detail
-
getFunctionalMethod
public static java.util.Optional<MethodUsage> getFunctionalMethod(ResolvedType type)
Get the functional method defined by the type, if any.
-
getFunctionalMethod
public static java.util.Optional<MethodUsage> getFunctionalMethod(ResolvedReferenceTypeDeclaration typeDeclaration)
Get the functional method defined by the type, if any.
-
isFunctionalInterfaceType
public static boolean isFunctionalInterfaceType(ResolvedType type)
-
getSignature
private static java.lang.String getSignature(java.lang.reflect.Method m)
-
toSignature
private static java.lang.String toSignature(java.lang.reflect.Parameter p)
-
isPublicMemberOfObject
private static boolean isPublicMemberOfObject(MethodUsage m)
-
-