Class CoverageInstrumenter
- java.lang.Object
-
- com.google.javascript.jscomp.bundle.CompilerBasedTransformer
-
- com.google.javascript.jscomp.bundle.CoverageInstrumenter
-
- All Implemented Interfaces:
Source.Transformer
@GwtIncompatible @Immutable public class CoverageInstrumenter extends CompilerBasedTransformer
A source transformer for instrmenting code for coverage data collection.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CoverageInstrumenter.CompilerSupplier
Supply options for coverage.-
Nested classes/interfaces inherited from class com.google.javascript.jscomp.bundle.CompilerBasedTransformer
CompilerBasedTransformer.CompileResult
-
-
Field Summary
Fields Modifier and Type Field Description static CoverageInstrumenter
INSTRUMENTER
-
Constructor Summary
Constructors Constructor Description CoverageInstrumenter(CompilerBasedTransformer.CompilerSupplier compilerSupplier)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CoverageInstrumenter.CompilerSupplier
compilerSupplier()
java.util.Optional<java.lang.String>
getRuntime()
java.lang.String
getTranformationName()
-
Methods inherited from class com.google.javascript.jscomp.bundle.CompilerBasedTransformer
transform
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.google.javascript.jscomp.bundle.Source.Transformer
andThen, asFunction, compose
-
-
-
-
Field Detail
-
INSTRUMENTER
public static final CoverageInstrumenter INSTRUMENTER
-
-
Constructor Detail
-
CoverageInstrumenter
public CoverageInstrumenter(CompilerBasedTransformer.CompilerSupplier compilerSupplier)
-
-
Method Detail
-
getRuntime
public java.util.Optional<java.lang.String> getRuntime()
- Specified by:
getRuntime
in classCompilerBasedTransformer
-
getTranformationName
public java.lang.String getTranformationName()
- Specified by:
getTranformationName
in classCompilerBasedTransformer
-
compilerSupplier
public static CoverageInstrumenter.CompilerSupplier compilerSupplier()
-
-