Class NoneProbeArrayStrategy

java.lang.Object
org.jacoco.core.internal.instr.NoneProbeArrayStrategy
All Implemented Interfaces:
IProbeArrayStrategy

class NoneProbeArrayStrategy extends Object implements IProbeArrayStrategy
The strategy does not emit any code at all. This is used for interface types without any code.
  • Constructor Details

    • NoneProbeArrayStrategy

      NoneProbeArrayStrategy()
  • Method Details

    • storeInstance

      public int storeInstance(org.objectweb.asm.MethodVisitor mv, boolean clinit, int variable)
      Description copied from interface: IProbeArrayStrategy
      Creates code that stores the probe array instance in the given variable.
      Specified by:
      storeInstance in interface IProbeArrayStrategy
      Parameters:
      mv - visitor to create code
      clinit - true in case of <clinit> method
      variable - variable index to store probe array to
      Returns:
      maximum stack size required by the generated code
    • addMembers

      public void addMembers(org.objectweb.asm.ClassVisitor delegate, int probeCount)
      Description copied from interface: IProbeArrayStrategy
      Adds additional class members required by this strategy. This method is called after all original members of the class has been processed.
      Specified by:
      addMembers in interface IProbeArrayStrategy
      Parameters:
      delegate - visitor to create fields and methods
      probeCount - total number of probes required for this class