Class JarikoDebugeeContext


  • public class JarikoDebugeeContext
    extends Object
    Author:
    lana
    • Constructor Detail

      • JarikoDebugeeContext

        public JarikoDebugeeContext​(com.smeup.rpgparser.execution.Configuration jarikoConfiguration,
                                    com.smeup.rpgparser.jvminterop.JavaSystemInterface javaSystemInterface,
                                    List<com.smeup.rpgparser.rpginterop.RpgProgramFinder> programFinders,
                                    Function<String,​URI> sourceUriSupplier)
      • JarikoDebugeeContext

        public JarikoDebugeeContext​(com.smeup.rpgparser.execution.Configuration jarikoConfiguration,
                                    com.smeup.rpgparser.jvminterop.JavaSystemInterface javaSystemInterface,
                                    List<com.smeup.rpgparser.rpginterop.RpgProgramFinder> programFinders)
        Creates an instance of JarikoDebugeeContext implements a sourceSupplier by using JarikoUtils.sourceUriSupplier(Supplier)
    • Method Detail

      • debuggable

        public void debuggable​(BiFunction<JarikoDebugeeContext,​String,​com.smeup.rpgparser.execution.CommandLineProgram> loadable,
                               BiFunction<JarikoDebugeeContext,​com.smeup.rpgparser.execution.CommandLineProgram,​com.smeup.rpgparser.execution.CommandLineParms> executable)
        Declares program as debuggable
        Parameters:
        loadable - Callback that returns an instance of loaded program
        executable - Callback that executes the program
      • getConfiguration

        public com.smeup.rpgparser.execution.Configuration getConfiguration()
      • getJavaSystemInterface

        public com.smeup.rpgparser.jvminterop.JavaSystemInterface getJavaSystemInterface()
      • getProgramFinders

        public List<com.smeup.rpgparser.rpginterop.RpgProgramFinder> getProgramFinders()
      • getExecutable

        public BiFunction<JarikoDebugeeContext,​com.smeup.rpgparser.execution.CommandLineProgram,​com.smeup.rpgparser.execution.CommandLineParms> getExecutable()
      • getJobId

        public String getJobId()
      • setJobId

        public void setJobId​(String jobId)
        Set the jobId. This property allows to pass to jardis a job identifier useful for example in the context of attaching program.
      • getSourceReferenceIds

        public Map<Integer,​URI> getSourceReferenceIds()
        Get the referenceId of the source code contained in jar
        Returns:
        a map of source code always not null where the key is a referenceId of the source code and the value its URI