Class InstrumentationConfig
- java.lang.Object
-
- com.tonic.analysis.instrumentation.InstrumentationConfig
-
public class InstrumentationConfig extends Object
Configuration holder for instrumentation settings.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInstrumentationConfig.BuilderBuilder for InstrumentationConfig instances.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InstrumentationConfig.Builderbuilder()Creates a new builder.static InstrumentationConfigdefaults()Creates a default configuration.static InstrumentationConfiginstrumentAll()Creates a configuration that instruments everything.booleanisFailOnError()booleanisSkipAbstract()booleanisSkipBridge()booleanisSkipConstructors()booleanisSkipNative()booleanisSkipStaticInitializers()booleanisSkipSynthetic()booleanisVerbose()voidsetFailOnError(boolean failOnError)Sets whether instrumentation fails on the first error rather than continuing.voidsetSkipAbstract(boolean skipAbstract)Sets whether abstract methods are skipped.voidsetSkipBridge(boolean skipBridge)Sets whether bridge methods are skipped.voidsetSkipConstructors(boolean skipConstructors)Sets whether constructors are skipped.voidsetSkipNative(boolean skipNative)Sets whether native methods are skipped.voidsetSkipStaticInitializers(boolean skipStaticInitializers)Sets whether static initializers are skipped.voidsetSkipSynthetic(boolean skipSynthetic)Sets whether synthetic methods are skipped.voidsetVerbose(boolean verbose)Sets whether instrumentation progress is logged.
-
-
-
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
-
builder
public static InstrumentationConfig.Builder builder()
Creates a new builder.- Returns:
- a new Builder
-
-