Class TryWithResourcesJavacFilter
java.lang.Object
org.jacoco.core.internal.analysis.filter.TryWithResourcesJavacFilter
- All Implemented Interfaces:
IFilter
Filters code which is generated for try-with-resources statement by javac
versions from 7 to 10.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
javac from JDK 7 and 8 generates bytecode that is equivalent to the compilation of source code that is described in JLS 14.20.3. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
filter
(org.objectweb.asm.tree.MethodNode methodNode, IFilterContext context, IFilterOutput output) This method is called for every method.
-
Constructor Details
-
TryWithResourcesJavacFilter
public TryWithResourcesJavacFilter()
-
-
Method Details
-
filter
public void filter(org.objectweb.asm.tree.MethodNode methodNode, IFilterContext context, IFilterOutput output) Description copied from interface:IFilter
This method is called for every method. The filter implementation is expected to inspect the provided method and report its result to the givenIFilterOutput
instance.
-