Package spoon.reflect.visitor.filter
Class LambdaFilter
java.lang.Object
spoon.reflect.visitor.filter.LambdaFilter
This filter matches all the
CtLambda elements, which implements defined interface(s)-
Constructor Summary
ConstructorsConstructorDescriptionUseaddImplementingInterface(CtTypeInformation)to define set of interfaces whose lambdas it is search forLambdaFilter(CtInterface<?> iface) Matches all lambdas implementing `iface` UseaddImplementingInterface(CtTypeInformation)to define set of interfaces whose lambdas it is search forLambdaFilter(CtTypeReference<?> iface) Matches all lambdas implementing `iface` UseaddImplementingInterface(CtTypeInformation)to define set of interfaces whose lambdas it is search for -
Method Summary
Modifier and TypeMethodDescriptionaddImplementingInterface(CtTypeInformation typeInfo) Allows to search for lambdas implemented by different interfaces.booleanTells if the given element matches.
-
Constructor Details
-
LambdaFilter
public LambdaFilter()UseaddImplementingInterface(CtTypeInformation)to define set of interfaces whose lambdas it is search for -
LambdaFilter
Matches all lambdas implementing `iface` UseaddImplementingInterface(CtTypeInformation)to define set of interfaces whose lambdas it is search for -
LambdaFilter
Matches all lambdas implementing `iface` UseaddImplementingInterface(CtTypeInformation)to define set of interfaces whose lambdas it is search for
-
-
Method Details
-
addImplementingInterface
Allows to search for lambdas implemented by different interfaces.- Parameters:
typeInfo- interface whose lambda implementations it is searching for
-
matches
Description copied from interface:FilterTells if the given element matches.
-