Class InstrumentationConfig.Builder

  • Enclosing class:
    InstrumentationConfig

    public static class InstrumentationConfig.Builder
    extends Object
    Builder for InstrumentationConfig instances.
    • Constructor Detail

      • Builder

        public Builder()
    • 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