Package com.perfino.annotation
Enum FilterType
- java.lang.Object
-
- java.lang.Enum<FilterType>
-
- com.perfino.annotation.FilterType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<FilterType>
public enum FilterType extends java.lang.Enum<FilterType>
Filter type for filter expressions inInheritance.filter()
. If filter expressions are used to limit the processing of derived classes, the default type of the filter expression is awildcard
filter. In addition, aregular expression
filter is also available for handling more complicated scenarios.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FilterType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static FilterType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REGEX
public static final FilterType 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
public static final FilterType 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 Detail
-
values
public static FilterType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FilterType c : FilterType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FilterType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-