Package org.jacoco.core.internal.instr
Class ProbeArrayStrategyFactory
java.lang.Object
org.jacoco.core.internal.instr.ProbeArrayStrategyFactory
Factory to find a suitable strategy to access the probe array for a given
class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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)
-
Constructor Details
-
ProbeArrayStrategyFactory
private ProbeArrayStrategyFactory()
-
-
Method Details
-
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
-