public interface AssemblerCall
AssemblerCall
interface is used to invoke an assembler module. The assembler module
can have up to 10 input arguments of varying types. The module can also have one of eight different
return types, including void.
The following code example shows how an AssemblerCall
object is retrieved and used
to invoke an assembler module named MYMOD with an input parameter of type String:
Application app = ApplicationFactory.createApplication(); AssemblerCall asCall = app.getAssemblerCall(); asCall.setModuleName("MYMOD"); asCall.setReturnType(AssemblerCall.RETURN_VOID); asCall.setString(1, "CharacterInput"); asCall.invoke();
Modifier and Type | Field and Description |
---|---|
static int |
RETURN_BINARY
Constant indicating the return type for the exit is a byte array
|
static int |
RETURN_DOUBLE
Constant indicating the return type for the exit is a double
|
static int |
RETURN_FLOAT
Constant indicating the return type for the exit is a float
|
static int |
RETURN_INT
Constant indicating the return type for the exit is an integer
|
static int |
RETURN_LONG
Constant indicating the return type for the exit is a long
|
static int |
RETURN_SHORT
Constant indicating the return type for the exit is a short
|
static int |
RETURN_STRING
Constant indicating the return type for the exit is a String
|
static int |
RETURN_VOID
Constant indicating the return type for the exit is void
|
Modifier and Type | Method and Description |
---|---|
String |
getCharacterEncoding()
Retrieves the character encoding
|
String |
getModuleName()
Retrieves the name of the assembler module
|
int |
getReturnType()
Retrieves the return type of the exit routine.
|
Object |
invoke()
Invokes the exit routine.
|
void |
setBytes(int argument,
byte[] value)
Sets the designated argument with a
byte[] value. |
void |
setCharacterEncoding(String encoding)
Sets the character encoding to use for all character data passed to and returned from
the exit routine.
|
void |
setDouble(int argument,
double value)
Sets the designated argument with a
double value. |
void |
setFloat(int argument,
float value)
Sets the designated argument with a
float value. |
void |
setInt(int argument,
int value)
Sets the designated argument with an
int value. |
void |
setLong(int argument,
long value)
Sets the designated argument with a
long value. |
void |
setModuleName(String moduleName)
Sets the name of the assembler module to invoke.
|
void |
setReturnType(int returnType)
Sets the return type of the exit routine.
|
void |
setShort(int argument,
short value)
Sets the designated argument with a
short value. |
void |
setString(int argument,
String value)
Sets the designated argument with a
java.lang.String value. |
static final int RETURN_VOID
static final int RETURN_STRING
static final int RETURN_BINARY
static final int RETURN_SHORT
static final int RETURN_INT
static final int RETURN_LONG
static final int RETURN_FLOAT
static final int RETURN_DOUBLE
void setModuleName(String moduleName)
moduleName
- the name of the assembler module to invokeString getModuleName()
void setCharacterEncoding(String encoding)
encoding
- the character encoding (e.g.; Cp1047)String getCharacterEncoding()
void setReturnType(int returnType) throws DLIException
returnType
- the return type of the exit routineDLIException
int getReturnType()
void setString(int argument, String value) throws DLIException
java.lang.String
value.argument
- the index (1-10) of the argument to setvalue
- the value of the argumentDLIException
void setShort(int argument, short value) throws DLIException
short
value.argument
- the index (1-10) of the argument to setvalue
- the value of the argumentDLIException
void setInt(int argument, int value) throws DLIException
int
value.argument
- the index (1-10) of the argument to setvalue
- the value of the argumentDLIException
void setLong(int argument, long value) throws DLIException
long
value.argument
- the index (1-10) of the argument to setvalue
- the value of the argumentDLIException
void setFloat(int argument, float value) throws DLIException
float
value.argument
- the index (1-10) of the argument to setvalue
- the value of the argumentDLIException
void setDouble(int argument, double value) throws DLIException
double
value.argument
- the index (1-10) of the argument to setvalue
- the value of the argumentDLIException
void setBytes(int argument, byte[] value) throws DLIException
byte[]
value.argument
- the index (1-10) of the argument to setvalue
- the value of the argumentDLIException
Object invoke() throws DLIException
DLIException
(c) Copyright IBM Corporation 2008, 2017.