Class KotlinGeneratedFilter

  • All Implemented Interfaces:
    IFilter

    public class KotlinGeneratedFilter
    extends java.lang.Object
    implements IFilter
    Filters methods generated by the Kotlin compiler. Kotlin classes are identified by the @kotlin.Metadata annotations. In such classes generated methods do not have line numbers.
    • Field Detail

      • KOTLIN_METADATA_DESC

        static final java.lang.String KOTLIN_METADATA_DESC
        See Also:
        Constant Field Values
    • Constructor Detail

      • KotlinGeneratedFilter

        public KotlinGeneratedFilter()
    • Method Detail

      • isKotlinClass

        static boolean isKotlinClass​(IFilterContext context)
      • 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
      • hasLineNumber

        private boolean hasLineNumber​(org.objectweb.asm.tree.MethodNode methodNode)