ExcludeOptions

API Documentation:ExcludeOptions

DSL object for excluding classes and methods from instrumentation

Properties

PropertyDescription
classes

Specifies classes that should be excluded

methods

Specifies methods that should be excluded

packages

Specifies packages that should be excluded

Methods

MethodDescription
classes(_class)

Specifies a class that should be excluded

classes(classes)

Specifies classes that should be excluded

filter(action)

Specifies a custom exclude filter that will exclude methods based on their class, name and description

methods(method)

Specifies a method that should be excluded

methods(methods)

Specifies methods that should be excluded

packages(_package)

Specifies a package that should be excluded

packages(packages)

Specifies packages that should be excluded

Script blocks

No script blocks

Property details

List<String> classes

Specifies classes that should be excluded

Inner classes are automatically excluded

List<String> methods

Specifies methods that should be excluded

List<String> packages

Specifies packages that should be excluded

Sub packages are automatically excluded

Method details

void classes(String _class)

Specifies a class that should be excluded

Inner classes are automatically excluded

void classes(String... classes)

Specifies classes that should be excluded

Inner classes are automatically excluded

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

void methods(String method)

Specifies a method that should be excluded

void methods(String... methods)

Specifies methods that should be excluded

void packages(String _package)

Specifies a package that should be excluded

Sub packages are automatically excluded

void packages(String... packages)

Specifies packages that should be excluded

Sub packages are automatically excluded