Class LambdaFilter

java.lang.Object
spoon.reflect.visitor.filter.LambdaFilter
All Implemented Interfaces:
Filter<CtLambda<?>>

public class LambdaFilter extends Object implements Filter<CtLambda<?>>
This filter matches all the CtLambda elements, which implements defined interface(s)
  • Constructor Details

  • Method Details

    • addImplementingInterface

      public LambdaFilter addImplementingInterface(CtTypeInformation typeInfo)
      Allows to search for lambdas implemented by different interfaces.
      Parameters:
      typeInfo - interface whose lambda implementations it is searching for
    • matches

      public boolean matches(CtLambda<?> lambda)
      Description copied from interface: Filter
      Tells if the given element matches.
      Specified by:
      matches in interface Filter<CtLambda<?>>
      Parameters:
      lambda - - the element to be checked for a match. Parameter element is never null if Query is used.