Package com.smeup.kokos.sdk.rpgle
Class RpgCompilerMgr
java.lang.Object
com.smeup.kokos.sdk.rpgle.RpgCompilerMgr
- Author:
- marco.lanari
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.RpgCompilerMgr(Supplier<com.smeup.rpgparser.execution.Configuration> configurationSupplier) Create an instance of RpgCompilerMgr -
Method Summary
Modifier and TypeMethodDescriptionvoidcompile(RpgCompilerMgr.ResourceInfo src, RpgCompilerMgr.ResourceInfo bin, com.smeup.rpgparser.utils.Format format, boolean muteSupport, List<com.smeup.rpgparser.rpginterop.RpgProgramFinder> programFinders, Consumer<Boolean> skipped) 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.voidcompile(File src, File bin, com.smeup.rpgparser.utils.Format format, boolean muteSupport, List<com.smeup.rpgparser.rpginterop.RpgProgramFinder> programFinders) Deprecated.voidcompile(File src, File bin, com.smeup.rpgparser.utils.Format format, boolean muteSupport, List<com.smeup.rpgparser.rpginterop.RpgProgramFinder> programFinders, Consumer<Boolean> skipped) Deprecated.
-
Constructor Details
-
RpgCompilerMgr
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 referencebin- compiled file referenceformat- compilation formatmuteSupport- Enable mute supportprogramFinders- program finder, it needed to include copyskipped- 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 Deprecated.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 compulebin- compiled fileformat- compilation formatmuteSupport- Enable mute supportprogramFinders- program finder, it needed to include copyskipped- 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
-
compile(ResourceInfo, ResourceInfo, Format, boolean, List, Consumer)instead.