Enum FilterType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<FilterType>

    public enum FilterType
    extends java.lang.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 Summary

      Enum Constants 
      Enum Constant Description
      REGEX
      Regular expression type for filter expressions.
      WILDCARD
      Wildcard expression type for filter expressions.
    • 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.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • 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 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 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 name
        java.lang.NullPointerException - if the argument is null