Class ExcludeFilterOptions

java.lang.Object
com.dynatrace.tools.android.dsl.ExcludeFilterOptions
All Implemented Interfaces:
com.dynatrace.tools.android.api.ExcludeFilterOptions, Serializable

public class ExcludeFilterOptions extends Object implements Serializable, com.dynatrace.tools.android.api.ExcludeFilterOptions
DSL object for defining a custom exclude filter that is based on regular expressions

A custom exclude filter consists of a class name filter, a method name filter and a method description filter. Only classes/methods that match all three filter expressions will be excluded. An undefined filter is treated as ".*" (match all)

See Also:
  • Constructor Details

  • Method Details

    • getClassName

      public String getClassName()
      Specifies a class name filter in the form of a regular expression.

      A class name matches when the specified expression is found somewhere in the class name

      The default value is .* (matches any class name)

      Specified by:
      getClassName in interface com.dynatrace.tools.android.api.ExcludeFilterOptions
      Returns:
      class name filter regex
    • className

      public void className(String classNameFilter)
      Specifies a class name filter in the form of a regular expression.

      A class name matches when the specified expression is found somewhere in the class name

      The default value is .* (matches any class name)

      Parameters:
      classNameFilter - regular expression
    • getMethodName

      public String getMethodName()
      Specifies a method name filter in the form of a regular expression.

      A method name matches when the specified expression is found somewhere in the method name

      The default value is .* (matches any method name)

      Specified by:
      getMethodName in interface com.dynatrace.tools.android.api.ExcludeFilterOptions
      Returns:
      method name filter regex
    • methodName

      public void methodName(String methodNameFilter)
      Specifies a method name filter in the form of a regular expression.

      A method name matches when the specified expression is found somewhere in the method name

      The default value is .* (matches any method name)

      Parameters:
      methodNameFilter - regular expression
    • getMethodDescription

      public String getMethodDescription()
      Specifies a method description filter in the form of a regular expression.

      A method description matches when the specified expression is found somewhere in the method description

      The default value is .* (matches any method description)

      Specified by:
      getMethodDescription in interface com.dynatrace.tools.android.api.ExcludeFilterOptions
      Returns:
      method description filter regex
    • methodDescription

      public void methodDescription(String methodDescriptionFilter)
      Specifies a method description filter in the form of a regular expression.

      A method description matches when the specified expression is found somewhere in the method description

      The default value is .* (matches any method description)

      Parameters:
      methodDescriptionFilter - regular expression
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object