Class DebuggingSourcesMgr
- java.lang.Object
-
- com.smeup.jardis.jariko.dap.handler.DebuggingSourcesMgr
-
public class DebuggingSourcesMgr extends Object
- Author:
- lana
-
-
Constructor Summary
Constructors Constructor Description DebuggingSourcesMgr(JarikoDebugeeContext jarikoDebuggeeContext, Function<String,com.smeup.jardis.core.dap.model.Source> sourceSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DebuggingSourcegetDebuggingSource(int uniqueReferenceId)DebuggingSourcegetDebuggingSource(com.smeup.jardis.core.dap.model.Source source)DebuggingSourcegetDebuggingSource(String nameOrPath)Retrieves a DebuggingSource object associated with the given program or copy name or path.DebuggingSourcegetDebuggingSource(String programName, String functionName, com.smeup.rpgparser.interpreter.ISymbolTable symbolTable)Retrieves a DebuggingSource object associated with the specified program name and function name.Function<String,com.smeup.jardis.core.dap.model.Source>getSourceSupplier()
-
-
-
Constructor Detail
-
DebuggingSourcesMgr
public DebuggingSourcesMgr(JarikoDebugeeContext jarikoDebuggeeContext, Function<String,com.smeup.jardis.core.dap.model.Source> sourceSupplier)
-
-
Method Detail
-
getSourceSupplier
public Function<String,com.smeup.jardis.core.dap.model.Source> getSourceSupplier()
-
getDebuggingSource
public DebuggingSource getDebuggingSource(com.smeup.jardis.core.dap.model.Source source)
-
getDebuggingSource
public DebuggingSource getDebuggingSource(String nameOrPath)
Retrieves a DebuggingSource object associated with the given program or copy name or path. If a corresponding DebuggingSource does not exist, it creates a new one, associates it internally, and then returns the newly created DebuggingSource.- Parameters:
nameOrPath- the name or path of the program or copy for which the debugging source is to be retrieved or created- Returns:
- the DebuggingSource object associated with the specified name or path
-
getDebuggingSource
public DebuggingSource getDebuggingSource(String programName, String functionName, com.smeup.rpgparser.interpreter.ISymbolTable symbolTable)
Retrieves a DebuggingSource object associated with the specified program name and function name. If a corresponding DebuggingSource does not exist, it creates a new one, associates it internally, and then returns the newly created DebuggingSource object.- Parameters:
programName- the name of the program for which the debugging source is to be retrieved or createdfunctionName- the name of the function within the program for which the debugging source is to be retrieved or createdsymbolTable- the symbol table associated with the function being debugged- Returns:
- the DebuggingSource associated with the specified program and function names
-
getDebuggingSource
public DebuggingSource getDebuggingSource(int uniqueReferenceId)
-
-