Package com.smeup.kokos.sdk.rpgle.caller
Class KokosProgram
java.lang.Object
com.smeup.kokos.sdk.rpgle.caller.KokosProgram
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
£JAX_ACOL,£JAX_ADDCON,£JAX_ADDO,£JAX_AGRI,£JAX_AMES,£JAX_APOP_F,£JAX_APOP_I,£JAX_ARIG,£JAX_BMES,£JAX_CLOO,£JAX_FIN0,£JAX_IMP0,B£INZ0,B£SQLD01,Generic£JAX_VAR,KokosStatefulProgram
- Author:
- mattia.bonardi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionLinkedHashMap<String, com.smeup.rpgparser.interpreter.Value> callProgram(String programName, LinkedHashMap<String, com.smeup.rpgparser.interpreter.Value> programParams) Call program interfacevoidclose()abstract LinkedHashMap<String, com.smeup.rpgparser.interpreter.Value> execute(LinkedHashMap<String, com.smeup.rpgparser.interpreter.Value> params, com.smeup.kokos.sdk.model.ExecutionContext context) LinkedHashMap<String, com.smeup.rpgparser.interpreter.Value> execute(LinkedHashMap<String, com.smeup.rpgparser.interpreter.Value> params, ProgramCaller programCaller) com.smeup.kokos.sdk.fun.FungetFun()Return the last jax context element writtengetOut()getRpgProgramHelper(String programName) Return the instance of RpgProgramHelpercom.smeup.kokos.sdk.util.SmeupDataStructurePrinter
-
Constructor Details
-
KokosProgram
public KokosProgram()
-
-
Method Details
-
execute
public LinkedHashMap<String,com.smeup.rpgparser.interpreter.Value> execute(LinkedHashMap<String, com.smeup.rpgparser.interpreter.Value> params, ProgramCaller programCaller) throws Exception- Throws:
Exception
-
execute
public abstract LinkedHashMap<String,com.smeup.rpgparser.interpreter.Value> execute(LinkedHashMap<String, com.smeup.rpgparser.interpreter.Value> params, com.smeup.kokos.sdk.model.ExecutionContext context) throws Exception- Throws:
Exception
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getFun
public com.smeup.kokos.sdk.fun.Fun getFun() -
getOut
-
getSmeupDataStructurePrinter
public com.smeup.kokos.sdk.util.SmeupDataStructurePrinter getSmeupDataStructurePrinter() -
callProgram
public LinkedHashMap<String,com.smeup.rpgparser.interpreter.Value> callProgram(String programName, LinkedHashMap<String, com.smeup.rpgparser.interpreter.Value> programParams) throws ExceptionCall program interface- Parameters:
programName- the name of the programprogramParams- the entry of the program- Returns:
- entry
- Throws:
Exception- Exception
-
getRpgProgramHelper
Return the instance of RpgProgramHelper- Parameters:
programName- program name- Returns:
- program helper
-
getJaxContext
Return the last jax context element written- Returns:
- Jax context element
-