Class InstrumentationConfig


  • public class InstrumentationConfig
    extends Object
    Configuration holder for instrumentation settings.
    • Method Detail

      • isSkipAbstract

        public boolean isSkipAbstract()
        Returns:
        whether abstract methods are skipped
      • setSkipAbstract

        public void setSkipAbstract​(boolean skipAbstract)
        Sets whether abstract methods are skipped.
        Parameters:
        skipAbstract - true to skip abstract methods
      • isSkipNative

        public boolean isSkipNative()
        Returns:
        whether native methods are skipped
      • setSkipNative

        public void setSkipNative​(boolean skipNative)
        Sets whether native methods are skipped.
        Parameters:
        skipNative - true to skip native methods
      • isSkipSynthetic

        public boolean isSkipSynthetic()
        Returns:
        whether synthetic methods are skipped
      • setSkipSynthetic

        public void setSkipSynthetic​(boolean skipSynthetic)
        Sets whether synthetic methods are skipped.
        Parameters:
        skipSynthetic - true to skip synthetic methods
      • isSkipConstructors

        public boolean isSkipConstructors()
        Returns:
        whether constructors are skipped
      • setSkipConstructors

        public void setSkipConstructors​(boolean skipConstructors)
        Sets whether constructors are skipped.
        Parameters:
        skipConstructors - true to skip constructors
      • isSkipStaticInitializers

        public boolean isSkipStaticInitializers()
        Returns:
        whether static initializers are skipped
      • setSkipStaticInitializers

        public void setSkipStaticInitializers​(boolean skipStaticInitializers)
        Sets whether static initializers are skipped.
        Parameters:
        skipStaticInitializers - true to skip static initializers
      • isSkipBridge

        public boolean isSkipBridge()
        Returns:
        whether bridge methods are skipped
      • setSkipBridge

        public void setSkipBridge​(boolean skipBridge)
        Sets whether bridge methods are skipped.
        Parameters:
        skipBridge - true to skip bridge methods
      • isVerbose

        public boolean isVerbose()
        Returns:
        whether instrumentation progress is logged
      • setVerbose

        public void setVerbose​(boolean verbose)
        Sets whether instrumentation progress is logged.
        Parameters:
        verbose - true to log progress
      • isFailOnError

        public boolean isFailOnError()
        Returns:
        whether instrumentation fails on the first error rather than continuing
      • setFailOnError

        public void setFailOnError​(boolean failOnError)
        Sets whether instrumentation fails on the first error rather than continuing.
        Parameters:
        failOnError - true to fail on the first error
      • defaults

        public static InstrumentationConfig defaults()
        Creates a default configuration.
        Returns:
        a configuration with default settings
      • instrumentAll

        public static InstrumentationConfig instrumentAll()
        Creates a configuration that instruments everything.
        Returns:
        a configuration with all skip flags disabled