Enum Class FilterType

java.lang.Object
java.lang.Enum<FilterType>
com.perfino.annotation.FilterType
All Implemented Interfaces:
Serializable, Comparable<FilterType>, Constable

public enum FilterType extends Enum<FilterType>
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.
  • Enum Constant Details

    • 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 the Inheritance.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 the Inheritance.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

      public static FilterType[] 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

      public static FilterType valueOf(String name)
      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 name
      NullPointerException - if the argument is null