Package spoon.reflect.visitor.filter
Enum FilteringOperator
- All Implemented Interfaces:
Serializable
,Comparable<FilteringOperator>
This enumeration defines the possible composition operators for filters. It
is used in
CompositeFilter
.- See Also:
Filter
-
Enum Constant Summary
Enum 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 FilteringOperator
Returns the enum constant of this type with the specified name.static FilteringOperator[]
values()
Returns an array containing the constants of this enum type, 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 type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException
- if the argument is null
-