Class MethodLineMapComputer

java.lang.Object
com._1c.g5.v8.dt.internal.profiling.ui.MethodLineMapComputer

public class MethodLineMapComputer extends Object
Computes BSL modules methods by line numbers. May perfrom initial lookup of all BSL module method line number or lookup method by demand.
  • Constructor Details

    • MethodLineMapComputer

      public MethodLineMapComputer(Module module)
      Create instance of MethodLineMapComputer.
      Parameters:
      module - the BSL module to create computer for, cannot be null
  • Method Details

    • lookupAll

      public void lookupAll()
      Perform lookup of all method modules.
    • getMethod

      public Method getMethod(int lineNumber)
      Returns method for the given line number.
      Parameters:
      lineNumber - the line number to get method for, cannot be null
      Returns:
      method for the given line number or null if not found
    • isMethodStaringLine

      public boolean isMethodStaringLine(int lineNumber)
      Checks if the line with passed line number contains the declaration of any method.
      Parameters:
      lineNumber - Line number to check.
      Returns:
      true if method declaration starts at this line, false otherwise.
    • getAll

      public List<Method> getAll()
      Gets all loaded methods.
      Returns:
      List with all methods. Cannot be null.