Class MethodLineMapComputer
java.lang.Object
com._1c.g5.v8.dt.internal.profiling.ui.MethodLineMapComputer
Computes BSL modules methods by line numbers. May perfrom initial lookup of all BSL module method
line number or lookup method by demand.
-
Constructor Summary
ConstructorsConstructorDescriptionMethodLineMapComputer
(Module module) Create instance ofMethodLineMapComputer
. -
Method Summary
Modifier and TypeMethodDescriptiongetAll()
Gets all loaded methods.getMethod
(int lineNumber) Returns method for the given line number.boolean
isMethodStaringLine
(int lineNumber) Checks if the line with passed line number contains the declaration of any method.void
Perform lookup of all method modules.
-
Constructor Details
-
MethodLineMapComputer
Create instance ofMethodLineMapComputer
.- Parameters:
module
- the BSL module to create computer for, cannot benull
-
-
Method Details
-
lookupAll
public void lookupAll()Perform lookup of all method modules. -
getMethod
Returns method for the given line number.- Parameters:
lineNumber
- the line number to get method for, cannot benull
- 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
Gets all loaded methods.- Returns:
- List with all methods. Cannot be
null
.
-