Class AbstractMatcher

java.lang.Object
org.jacoco.core.internal.analysis.filter.AbstractMatcher
Direct Known Subclasses:
AssertFilter.Matcher, EnumEmptyConstructorFilter.Matcher, KotlinCoroutineFilter.Matcher, KotlinDefaultArgumentsFilter.Matcher, KotlinDefaultMethodsFilter.Matcher, KotlinLateinitFilter.Matcher, KotlinNotNullOperatorFilter.Matcher, KotlinUnsafeCastOperatorFilter.Matcher, KotlinWhenFilter.Matcher, KotlinWhenStringFilter.Matcher, PrivateEmptyNoArgConstructorFilter.Matcher, RecordsFilter.Matcher, StringSwitchFilter.Matcher, StringSwitchJavacFilter.Matcher, SynchronizedFilter.Matcher, TryWithResourcesEcjFilter.Matcher, TryWithResourcesJavac11Filter.Matcher, TryWithResourcesJavacFilter.Matcher

abstract class AbstractMatcher extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) org.objectweb.asm.tree.AbstractInsnNode
     
    (package private) final Map<String,org.objectweb.asm.tree.VarInsnNode>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) final void
    firstIsALoad0(org.objectweb.asm.tree.MethodNode methodNode)
    Sets cursor to first instruction of method if it is ALOAD 0, otherwise sets it to null.
    (package private) final void
    Moves cursor to next instruction.
    (package private) final void
    nextIs(int opcode)
    Moves cursor to next instruction if it has given opcode, otherwise sets it to null.
    (package private) final void
    nextIsField(int opcode, String owner, String name, String descriptor)
    Moves cursor to next instruction if it is FieldInsnNode with given opcode, owner, name and descriptor, otherwise sets it to null.
    (package private) final void
    nextIsInvoke(int opcode, String owner, String name, String descriptor)
    Moves cursor to next instruction if it is MethodInsnNode with given opcode, owner, name and descriptor, otherwise sets it to null.
    (package private) final void
    Moves cursor to next instruction if it is TABLESWITCH or LOOKUPSWITCH, otherwise sets it to null.
    (package private) final void
    nextIsType(int opcode, String desc)
    Moves cursor to next instruction if it is TypeInsnNode with given opcode and operand, otherwise sets it to null.
    (package private) final void
    nextIsVar(int opcode, String name)
     
    (package private) final void
    Moves cursor through AbstractInsnNode.FRAME, AbstractInsnNode.LABEL, AbstractInsnNode.LINE.
    (package private) static org.objectweb.asm.tree.AbstractInsnNode
    skipNonOpcodes(org.objectweb.asm.tree.AbstractInsnNode cursor)
    Returns first instruction from given and following it that is not AbstractInsnNode.FRAME, AbstractInsnNode.LABEL, AbstractInsnNode.LINE.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • vars

      final Map<String,org.objectweb.asm.tree.VarInsnNode> vars
    • cursor

      org.objectweb.asm.tree.AbstractInsnNode cursor
  • Constructor Details

    • AbstractMatcher

      AbstractMatcher()
  • Method Details

    • firstIsALoad0

      final void firstIsALoad0(org.objectweb.asm.tree.MethodNode methodNode)
      Sets cursor to first instruction of method if it is ALOAD 0, otherwise sets it to null.
    • nextIsType

      final void nextIsType(int opcode, String desc)
      Moves cursor to next instruction if it is TypeInsnNode with given opcode and operand, otherwise sets it to null.
    • nextIsInvoke

      final void nextIsInvoke(int opcode, String owner, String name, String descriptor)
      Moves cursor to next instruction if it is MethodInsnNode with given opcode, owner, name and descriptor, otherwise sets it to null.
    • nextIsField

      final void nextIsField(int opcode, String owner, String name, String descriptor)
      Moves cursor to next instruction if it is FieldInsnNode with given opcode, owner, name and descriptor, otherwise sets it to null.
    • nextIsVar

      final void nextIsVar(int opcode, String name)
    • nextIsSwitch

      final void nextIsSwitch()
      Moves cursor to next instruction if it is TABLESWITCH or LOOKUPSWITCH, otherwise sets it to null.
    • nextIs

      final void nextIs(int opcode)
      Moves cursor to next instruction if it has given opcode, otherwise sets it to null.
    • next

      final void next()
      Moves cursor to next instruction.
    • skipNonOpcodes

      final void skipNonOpcodes()
      Moves cursor through AbstractInsnNode.FRAME, AbstractInsnNode.LABEL, AbstractInsnNode.LINE.
    • skipNonOpcodes

      static org.objectweb.asm.tree.AbstractInsnNode skipNonOpcodes(org.objectweb.asm.tree.AbstractInsnNode cursor)
      Returns first instruction from given and following it that is not AbstractInsnNode.FRAME, AbstractInsnNode.LABEL, AbstractInsnNode.LINE.