Class RpgCompilerMgr

java.lang.Object
com.smeup.kokos.sdk.rpgle.RpgCompilerMgr

public class RpgCompilerMgr extends Object
Author:
marco.lanari
  • Constructor Details

    • RpgCompilerMgr

      public RpgCompilerMgr(Supplier<com.smeup.rpgparser.execution.Configuration> configurationSupplier)
      Create an instance of RpgCompilerMgr
      Parameters:
      configurationSupplier - The supplier of configuration. This tecnicque allows to implement loading of resource in general in more efficient way because the configurationSupplier will be provide configuration just when necessary.
    • RpgCompilerMgr

      public RpgCompilerMgr()
      Deprecated.
      See Also:
  • Method Details

    • compile

      public void compile(RpgCompilerMgr.ResourceInfo src, RpgCompilerMgr.ResourceInfo bin, com.smeup.rpgparser.utils.Format format, boolean muteSupport, List<com.smeup.rpgparser.rpginterop.RpgProgramFinder> programFinders, Consumer<Boolean> skipped) throws Exception
      Compile src in bin, if the compilaton fails src path is added to unserialized sources list in order to deny compilation when you call again the compilation for that source. The compilation is made when bin does't exists or outdated and src does't belong to unserialized sources list or unserialized source is outdated
      Parameters:
      src - Source to compute reference
      bin - compiled file reference
      format - compilation format
      muteSupport - Enable mute support
      programFinders - program finder, it needed to include copy
      skipped - callback function called after compilation, it will be passed true if compilation is skipped
      Throws:
      Exception - if the compilation fails.
    • compile

      @Deprecated public void compile(File src, File bin, com.smeup.rpgparser.utils.Format format, boolean muteSupport, List<com.smeup.rpgparser.rpginterop.RpgProgramFinder> programFinders, Consumer<Boolean> skipped) throws Exception
      Compile src in bin, if the compilaton fails src path is added to unserialized sources list in order to deny compilation when you call again the compilation for that source. The compilation is made when bin does't exists or outdated and src does't belong to unserialized sources list or unserialized source is outdated
      Parameters:
      src - Source to compule
      bin - compiled file
      format - compilation format
      muteSupport - Enable mute support
      programFinders - program finder, it needed to include copy
      skipped - callback function called after compilation, it will be passed true if compilation is skipped
      Throws:
      Exception - if the compilation fails.
    • compile

      @Deprecated public void compile(File src, File bin, com.smeup.rpgparser.utils.Format format, boolean muteSupport, List<com.smeup.rpgparser.rpginterop.RpgProgramFinder> programFinders) throws Exception
      Deprecated.
      Throws:
      Exception