Class SameFilter

All Implemented Interfaces:

public class SameFilter extends Object implements Filter<CtElement>
Finds the element given in parameter, useful for checking if an element is in an ancestor. Here "same" refers to the Junit meaning: same object memory, equals with ==
  • Constructor Details

    • SameFilter

      public SameFilter(CtElement argument2)
  • Method Details

    • matches

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