Interface IInvocationCountChecker


  • public interface IInvocationCountChecker
    Checks line invocation count for distortion (for example, lines with keyword "Do" or lines included in "#If ... Then ... #EndIf" block).
    • Method Detail

      • canCountInvocations

        boolean canCountInvocations​(ILineProfilingResult result,
                                    Module module)
        Checks if line result can be used to calculate the amount of method invocations.
        Parameters:
        result - the line profiling result to check, cannot be null
        module - the BSL modle containing the line associated with result. If the passed module is null then an attempt to look it up using line result information will be made
        Returns:
        true if line result can be used to calculate the amount of method invocations, false otherwise.
      • canCountInvocations

        boolean canCountInvocations​(ILineProfilingResult result,
                                    Module module,
                                    Method method)
        Checks if line result can be used to calculate the amount of method invocations.
        Parameters:
        result - the line profiling result to check, cannot be null
        module - the BSL modle containing the line associated with result, cannot be null
        method - the BSL modle method if it is already computed by the caller, cannot be null
        Returns:
        true if line result can be used to calculate the amount of method invocations, false otherwise.