Class DebuggingProgram
- java.lang.Object
-
- com.smeup.jardis.jariko.dap.model.AbstractDebuggingSource
-
- com.smeup.jardis.jariko.dap.model.DebuggingProgram
-
- All Implemented Interfaces:
DebuggingSource
public class DebuggingProgram extends AbstractDebuggingSource
- Author:
- lana
-
-
Field Summary
-
Fields inherited from class com.smeup.jardis.jariko.dap.model.AbstractDebuggingSource
uniqueReferenceIdSupplier
-
-
Constructor Summary
Constructors Constructor Description DebuggingProgram(com.smeup.jardis.core.dap.model.Source source, String name, Supplier<Integer> uniqueReferenceIdSupplier, com.smeup.rpgparser.interpreter.SystemInterface systemInterface, Function<String,com.smeup.rpgparser.parsing.ast.CompilationUnit> compilationUnitSupplier, Function<String,com.smeup.jardis.core.dap.model.Source> sourceSupplier, Consumer<DebuggingCopyInProgram> debuggingCopyCreated)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanBreak(com.smeup.rpgparser.parsing.facade.SourceReference sourceReference)List<com.smeup.rpgparser.parsing.facade.SourceReference>getBreakpoints()com.smeup.rpgparser.parsing.ast.CompilationUnitgetCompilationUnit()JarikoVariablegetIndicator(String indicatorName)Retrieves the indicator variable associated with the specified indicator name.com.smeup.rpgparser.parsing.facade.SourceReferencegetSourceReference()List<com.smeup.rpgparser.parsing.facade.SourceReference>getStatements()com.smeup.rpgparser.interpreter.ISymbolTablegetSymbolTable()Map<Integer,List<JarikoVariable>>getVariables()Retrieves a mapping of stack frame IDs to lists ofJarikoVariableobjects.DebuggingCopyInProgramonEnterCopy(com.smeup.rpgparser.parsing.facade.CopyId copyId)voidsetBreakpoints(List<com.smeup.rpgparser.parsing.facade.SourceReference> breakpoints)voidsetCurrentLine(com.smeup.rpgparser.parsing.facade.SourceReference currentLine)voidsetInterpreterCore(com.smeup.rpgparser.interpreter.InterpreterCore interpreterCore)voidsetSymbolTable(com.smeup.rpgparser.interpreter.ISymbolTable symbolTable)StringsetVariable(com.smeup.jardis.core.dap.model.SetVariableArguments setVariableArguments)-
Methods inherited from class com.smeup.jardis.jariko.dap.model.AbstractDebuggingSource
getName, getSource, getStackFrameId, getUniqueReferenceId, toString
-
-
-
-
Constructor Detail
-
DebuggingProgram
public DebuggingProgram(com.smeup.jardis.core.dap.model.Source source, String name, Supplier<Integer> uniqueReferenceIdSupplier, com.smeup.rpgparser.interpreter.SystemInterface systemInterface, Function<String,com.smeup.rpgparser.parsing.ast.CompilationUnit> compilationUnitSupplier, Function<String,com.smeup.jardis.core.dap.model.Source> sourceSupplier, Consumer<DebuggingCopyInProgram> debuggingCopyCreated)- Parameters:
source- Sourcename- Program name, does not contain extensioncompilationUnitSupplier- compilation unit supplier for program name
-
-
Method Detail
-
getBreakpoints
public List<com.smeup.rpgparser.parsing.facade.SourceReference> getBreakpoints()
-
getSourceReference
public com.smeup.rpgparser.parsing.facade.SourceReference getSourceReference()
-
canBreak
public boolean canBreak(com.smeup.rpgparser.parsing.facade.SourceReference sourceReference)
-
getVariables
public Map<Integer,List<JarikoVariable>> getVariables()
Retrieves a mapping of stack frame IDs to lists ofJarikoVariableobjects. Each stack frame ID is associated with a list of variables present in that frame.- Returns:
- a
Mapwhere the keys areIntegerstack frame IDs and the values areListobjects containingJarikoVariableinstances for the corresponding stack frame.
-
setVariable
public String setVariable(com.smeup.jardis.core.dap.model.SetVariableArguments setVariableArguments)
- Returns:
- null if variable setting does not succeed
-
getIndicator
public JarikoVariable getIndicator(String indicatorName)
Retrieves the indicator variable associated with the specified indicator name.- Parameters:
indicatorName- the name of the indicator to retrieve.- Returns:
- the
JarikoVariablecorresponding to the specified indicator name.
-
getSymbolTable
public com.smeup.rpgparser.interpreter.ISymbolTable getSymbolTable()
-
setSymbolTable
public void setSymbolTable(com.smeup.rpgparser.interpreter.ISymbolTable symbolTable)
-
setBreakpoints
public void setBreakpoints(List<com.smeup.rpgparser.parsing.facade.SourceReference> breakpoints)
-
setCurrentLine
public void setCurrentLine(com.smeup.rpgparser.parsing.facade.SourceReference currentLine)
-
getStatements
public List<com.smeup.rpgparser.parsing.facade.SourceReference> getStatements()
-
getCompilationUnit
public com.smeup.rpgparser.parsing.ast.CompilationUnit getCompilationUnit()
-
onEnterCopy
public DebuggingCopyInProgram onEnterCopy(com.smeup.rpgparser.parsing.facade.CopyId copyId)
-
setInterpreterCore
public void setInterpreterCore(com.smeup.rpgparser.interpreter.InterpreterCore interpreterCore)
-
-