Package org.jacoco.core.internal.instr
Class ProbeArrayStrategyFactory
- java.lang.Object
-
- org.jacoco.core.internal.instr.ProbeArrayStrategyFactory
-
public final class ProbeArrayStrategyFactory extends java.lang.Object
Factory to find a suitable strategy to access the probe array for a given class.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ProbeArrayStrategyFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IProbeArrayStrategy
createFor(long classId, org.objectweb.asm.ClassReader reader, IExecutionDataAccessorGenerator accessorGenerator)
Creates a suitable strategy instance for the class described by the given reader.private static ProbeCounter
getProbeCounter(org.objectweb.asm.ClassReader reader)
private static boolean
isInterfaceOrModule(org.objectweb.asm.ClassReader reader)
-
-
-
Method Detail
-
createFor
public static IProbeArrayStrategy createFor(long classId, org.objectweb.asm.ClassReader reader, IExecutionDataAccessorGenerator accessorGenerator)
Creates a suitable strategy instance for the class described by the given reader. Created instance must be used only to process a class or interface for which it has been created and must be used only once.- Parameters:
classId
- class identifierreader
- reader to get information about the classaccessorGenerator
- accessor to the coverage runtime- Returns:
- strategy instance
-
isInterfaceOrModule
private static boolean isInterfaceOrModule(org.objectweb.asm.ClassReader reader)
-
getProbeCounter
private static ProbeCounter getProbeCounter(org.objectweb.asm.ClassReader reader)
-
-