Class InstrumentationConfig.Builder
- java.lang.Object
-
- com.tonic.analysis.instrumentation.InstrumentationConfig.Builder
-
- Enclosing class:
- InstrumentationConfig
public static class InstrumentationConfig.Builder extends Object
Builder for InstrumentationConfig instances.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstrumentationConfigbuild()Builds the configuration.InstrumentationConfig.BuilderfailOnError(boolean failOnError)Sets whether instrumentation fails on the first error rather than continuing.InstrumentationConfig.BuilderskipAbstract(boolean skipAbstract)Sets whether abstract methods are skipped.InstrumentationConfig.BuilderskipBridge(boolean skipBridge)Sets whether bridge methods are skipped.InstrumentationConfig.BuilderskipConstructors(boolean skipConstructors)Sets whether constructors are skipped.InstrumentationConfig.BuilderskipNative(boolean skipNative)Sets whether native methods are skipped.InstrumentationConfig.BuilderskipStaticInitializers(boolean skipStaticInitializers)Sets whether static initializers are skipped.InstrumentationConfig.BuilderskipSynthetic(boolean skipSynthetic)Sets whether synthetic methods are skipped.InstrumentationConfig.Builderverbose(boolean verbose)Sets whether instrumentation progress is logged.
-
-
-
Method Detail
-
skipAbstract
public InstrumentationConfig.Builder skipAbstract(boolean skipAbstract)
Sets whether abstract methods are skipped.- Parameters:
skipAbstract- true to skip abstract methods- Returns:
- this builder
-
skipNative
public InstrumentationConfig.Builder skipNative(boolean skipNative)
Sets whether native methods are skipped.- Parameters:
skipNative- true to skip native methods- Returns:
- this builder
-
skipSynthetic
public InstrumentationConfig.Builder skipSynthetic(boolean skipSynthetic)
Sets whether synthetic methods are skipped.- Parameters:
skipSynthetic- true to skip synthetic methods- Returns:
- this builder
-
skipConstructors
public InstrumentationConfig.Builder skipConstructors(boolean skipConstructors)
Sets whether constructors are skipped.- Parameters:
skipConstructors- true to skip constructors- Returns:
- this builder
-
skipStaticInitializers
public InstrumentationConfig.Builder skipStaticInitializers(boolean skipStaticInitializers)
Sets whether static initializers are skipped.- Parameters:
skipStaticInitializers- true to skip static initializers- Returns:
- this builder
-
skipBridge
public InstrumentationConfig.Builder skipBridge(boolean skipBridge)
Sets whether bridge methods are skipped.- Parameters:
skipBridge- true to skip bridge methods- Returns:
- this builder
-
verbose
public InstrumentationConfig.Builder verbose(boolean verbose)
Sets whether instrumentation progress is logged.- Parameters:
verbose- true to log progress- Returns:
- this builder
-
failOnError
public InstrumentationConfig.Builder failOnError(boolean failOnError)
Sets whether instrumentation fails on the first error rather than continuing.- Parameters:
failOnError- true to fail on the first error- Returns:
- this builder
-
build
public InstrumentationConfig build()
Builds the configuration.- Returns:
- the built InstrumentationConfig
-
-