Class Instrumenter.InstrumentationReport.Builder
- java.lang.Object
-
- com.tonic.analysis.instrumentation.Instrumenter.InstrumentationReport.Builder
-
- Enclosing class:
- Instrumenter.InstrumentationReport
public static final class Instrumenter.InstrumentationReport.Builder extends Object
Mutable accumulator for the report counters.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Instrumenter.InstrumentationReportbuild()Instrumenter.InstrumentationReport.BuilderclassesInstrumented(int classesInstrumented)Sets the number of classes that received at least one point.Instrumenter.InstrumentationReport.Buildererrors(int errors)Sets the number of methods that failed to instrument.Instrumenter.InstrumentationReport.BuildermethodsInstrumented(int methodsInstrumented)Sets the number of methods that received at least one point.Instrumenter.InstrumentationReport.BuildertotalInstrumentationPoints(int totalInstrumentationPoints)Sets the number of instrumentation points applied.
-
-
-
Method Detail
-
totalInstrumentationPoints
public Instrumenter.InstrumentationReport.Builder totalInstrumentationPoints(int totalInstrumentationPoints)
Sets the number of instrumentation points applied.- Parameters:
totalInstrumentationPoints- the point count- Returns:
- this builder
-
classesInstrumented
public Instrumenter.InstrumentationReport.Builder classesInstrumented(int classesInstrumented)
Sets the number of classes that received at least one point.- Parameters:
classesInstrumented- the class count- Returns:
- this builder
-
methodsInstrumented
public Instrumenter.InstrumentationReport.Builder methodsInstrumented(int methodsInstrumented)
Sets the number of methods that received at least one point.- Parameters:
methodsInstrumented- the method count- Returns:
- this builder
-
errors
public Instrumenter.InstrumentationReport.Builder errors(int errors)
Sets the number of methods that failed to instrument.- Parameters:
errors- the error count- Returns:
- this builder
-
build
public Instrumenter.InstrumentationReport build()
- Returns:
- an immutable report holding the accumulated counters
-
-