Class StringSwitchJavacFilter
java.lang.Object
org.jacoco.core.internal.analysis.filter.StringSwitchJavacFilter
- All Implemented Interfaces:
IFilter
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidfilter(org.objectweb.asm.tree.AbstractInsnNode start, IFilterOutput output) javac generates two switches.voidfilter(org.objectweb.asm.tree.MethodNode methodNode, IFilterContext context, IFilterOutput output) This method is called for every method.
-
Constructor Details
-
StringSwitchJavacFilter
public StringSwitchJavacFilter()
-
-
Method Details
-
filter
public void filter(org.objectweb.asm.tree.MethodNode methodNode, IFilterContext context, IFilterOutput output) Description copied from interface:IFilterThis method is called for every method. The filter implementation is expected to inspect the provided method and report its result to the givenIFilterOutputinstance. -
filter
javac generates two switches. First one byString.hashCode(). Number of handlers in the second switch is equal to number of handlers in source code, so it is enough to completely filter-out first switch. Handler for default case of the first switch - is the second switch.
-