Class BreakpointLocationValidator


  • public final class BreakpointLocationValidator
    extends Object
    Validator utility class for breakpoint location validation.
    Restriction:
    This class is not intended to be sub-classed by clients.
    Restriction:
    This class is not intended to be instantiated by clients.
    • Method Detail

      • getValidLocation

        public static int getValidLocation​(Module module,
                                           int line)
        Get valid location of module.

        Returns next valid line number (or just the same as given), that belongs to method, or returns just this line, if there aren't methods next to this line.

        Parameters:
        module - BSL module, cannot be null
        line - line number of module
        Returns:
        next valid line number
      • getValidLocationInsideMethod

        public static int getValidLocationInsideMethod​(Module module,
                                                       int line)
        Get valid location of module inside method.

        Returns next valid line number (or just the same as given), that belongs to method.

        Parameters:
        module - BSL module, cannot be null
        line - line number of module
        Returns:
        next valid line number