Class SameFilter

java.lang.Object
spoon.reflect.visitor.filter.SameFilter
All Implemented Interfaces:
Filter<CtElement>

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>
      Parameters:
      element - - the element to be checked for a match. Parameter element is never null if Query is used.