Package spoon.reflect.visitor.filter
Enum Class FilteringOperator
- All Implemented Interfaces:
Serializable,Comparable<FilteringOperator>,Constable
This enumeration defines the possible composition operators for filters. It
is used in
CompositeFilter.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDefines the intersection of several filters: it matches if all the filters match.Defines the substraction of several filters to one filter: it matches if the first filter matches and all the others do not match.Defines the union of several filters: it matches if one of the filters matches. -
Method Summary
Modifier and TypeMethodDescriptionstatic FilteringOperatorReturns the enum constant of this class with the specified name.static FilteringOperator[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNION
Defines the union of several filters: it matches if one of the filters matches. -
INTERSECTION
Defines the intersection of several filters: it matches if all the filters match. -
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
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-