Class ConstantFilter

java.lang.Object
fr.inria.rules.integraal.util.stream.filter.ConstantFilter
All Implemented Interfaces:
Filter<Substitution>

public class ConstantFilter extends Object implements Filter<Substitution>
Tests whether the values of a substitution are constants.
Author:
Florent Tornil
  • Constructor Details

    • ConstantFilter

      public ConstantFilter()
      Default constructor
  • Method Details

    • filter

      public boolean filter(Substitution s)
      Description copied from interface: Filter
      Return true if the element must be kept, false if it must be filtered
      Specified by:
      filter in interface Filter<Substitution>
      Parameters:
      s - the element to check
      Returns:
      true if the element must be kept, false if it must be filtered.