Class KotlinWhenFilter

java.lang.Object
org.jacoco.core.internal.analysis.filter.KotlinWhenFilter
All Implemented Interfaces:
IFilter

final class KotlinWhenFilter extends Object implements IFilter
Filters bytecode that Kotlin compiler generates for when expressions and statements with subject of type enum class or sealed class.
  • Field Details

  • Constructor Details

    • KotlinWhenFilter

      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 given IFilterOutput instance.
      Specified by:
      filter in interface IFilter
      Parameters:
      methodNode - method to inspect
      context - context information for the method
      output - callback to report filtering results to
    • getDefaultLabel

      private static org.objectweb.asm.tree.LabelNode getDefaultLabel(org.objectweb.asm.tree.AbstractInsnNode i)