Package com.perfino.annotation
Enum Class FilterType
- All Implemented Interfaces:
Serializable
,Comparable<FilterType>
,Constable
Filter type for filter expressions in
Inheritance.filter()
.
If filter expressions are used to limit the processing of derived classes,
the default type of the filter expression is a wildcard
filter.
In addition, a regular expression
filter is also available for handling
more complicated scenarios.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic FilterType
Returns the enum constant of this class with the specified name.static FilterType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
REGEX
Regular expression type for filter expressions. The class is only instrumented if the fully qualified class name matches the regular expression in theInheritance.filter()
parameter.Examples:
- .*Executor\d
- Class name ends with Executor and a single digit
- (?!com\.mycorp\.).*
- Package does not start with "com.mycorp"
- (com\.first\.|com\.second.\).*
- Package starts with "com.first." or "com.second."
-
WILDCARD
Wildcard expression type for filter expressions. The class is only instrumented if the fully qualified class name matches the wildcard expression in theInheritance.filter()
parameter.Examples:
- *
- All classes
- *Processor
- Class name ends with "Processor"
- com.mycorp.*
- Package name starts with "com.mycorp."
- *Executor?
- Class name ends with "Executor" and a single other character afterwards
-
-
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
-