Class KotlinWhenFilter
java.lang.Object
org.jacoco.core.internal.analysis.filter.KotlinWhenFilter
- All Implemented Interfaces:
IFilter
Filters bytecode that Kotlin compiler generates for
when
expressions which list all cases of enum
or
sealed class
, i.e. which don't require explicit
else
.-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
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.private static org.objectweb.asm.tree.LabelNode
getDefaultLabel
(org.objectweb.asm.tree.AbstractInsnNode i) private static void
ignoreDefaultBranch
(org.objectweb.asm.tree.AbstractInsnNode switchNode, IFilterOutput output)
-
Field Details
-
EXCEPTION
- See Also:
-
-
Constructor Details
-
KotlinWhenFilter
public KotlinWhenFilter()
-
-
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. -
getDefaultLabel
private static org.objectweb.asm.tree.LabelNode getDefaultLabel(org.objectweb.asm.tree.AbstractInsnNode i) -
ignoreDefaultBranch
private static void ignoreDefaultBranch(org.objectweb.asm.tree.AbstractInsnNode switchNode, IFilterOutput output)
-