Class DebuggingProgram

    • 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 - Source
        name - Program name, does not contain extension
        compilationUnitSupplier - 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 of JarikoVariable objects. Each stack frame ID is associated with a list of variables present in that frame.
        Returns:
        a Map where the keys are Integer stack frame IDs and the values are List objects containing JarikoVariable instances 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 JarikoVariable corresponding 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)