Enum FilteringOperator

java.lang.Object
java.lang.Enum<FilteringOperator>
spoon.reflect.visitor.filter.FilteringOperator
All Implemented Interfaces:
Serializable, Comparable<FilteringOperator>

public enum FilteringOperator extends Enum<FilteringOperator>
This enumeration defines the possible composition operators for filters. It is used in CompositeFilter.
See Also:
Filter
  • Enum Constant Details

    • UNION

      public static final FilteringOperator UNION
      Defines the union of several filters: it matches if one of the filters matches.
    • INTERSECTION

      public static final FilteringOperator INTERSECTION
      Defines the intersection of several filters: it matches if all the filters match.
    • SUBSTRACTION

      public static final FilteringOperator SUBSTRACTION
      Defines the substraction of several filters to one filter: it matches if the first filter matches and all the others do not match.
  • Method Details

    • values

      public static FilteringOperator[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static FilteringOperator valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null