Class ExcludeOptions

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

public class ExcludeOptions extends Object implements Serializable, com.dynatrace.tools.android.api.ExcludeOptions
DSL object for excluding classes and methods from instrumentation.
See Also:
  • Constructor Details

    • ExcludeOptions

      public ExcludeOptions(org.gradle.internal.reflect.Instantiator instantiator)
  • Method Details

    • packages

      public void packages(String excludedPackage)
      Specifies a package that should be excluded.

      Sub packages are automatically excluded

      Parameters:
      excludedPackage - package that should be excluded
    • packages

      public void packages(String... packages)
      Specifies packages that should be excluded.

      Sub packages are automatically excluded

      Parameters:
      packages - packages that should be excluded
    • classes

      public void classes(String excludedClass)
      Specifies a class that should be excluded.

      Inner classes are automatically excluded

      Parameters:
      excludedClass - class that should be excluded
    • classes

      public void classes(String... classes)
      Specifies classes that should be excluded.

      Inner classes are automatically excluded

      Parameters:
      classes - classes that should be excluded
    • methods

      public void methods(String method)
      Specifies a method that should be excluded.
      Parameters:
      method - method that should be excluded
    • methods

      public void methods(String... methods)
      Specifies methods that should be excluded.
      Parameters:
      methods - methods that should be excluded
    • filter

      public void filter(Action<? super ExcludeFilterOptions> action)
      Specifies a custom exclude filter that will exclude methods based on their class, name and description.

      Filter strings are evaluated as regular expressions

      Parameters:
      action - custom filter action
    • getPackages

      public List<String> getPackages()
      Specifies packages that should be excluded.

      Sub packages are automatically excluded

      Specified by:
      getPackages in interface com.dynatrace.tools.android.api.ExcludeOptions
      Returns:
      packages that should be excluded
    • getClasses

      public List<String> getClasses()
      Specifies classes that should be excluded.

      Inner classes are automatically excluded

      Specified by:
      getClasses in interface com.dynatrace.tools.android.api.ExcludeOptions
      Returns:
      classes that should be excluded
    • getMethods

      public List<String> getMethods()
      Specifies methods that should be excluded.
      Specified by:
      getMethods in interface com.dynatrace.tools.android.api.ExcludeOptions
      Returns:
      methods that should be excluded
    • getFilters

      public List<ExcludeFilterOptions> getFilters()
      Specifies and adds a custom exclude filter that will exclude methods based on their class, name and description.

      Filter strings are evaluated as regular expressions

      Specified by:
      getFilters in interface com.dynatrace.tools.android.api.ExcludeOptions
      Returns:
      list of custom filters
    • 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