public class InputParameter
extends java.lang.Object
For OO method calls, this ensures that the proper overloaded method is resolved, as this requires the conversion-time type, for both direct and dynamic calls.
| Modifier and Type | Field and Description |
|---|---|
private static CentralLogger |
LOG
Logger
|
| Constructor and Description |
|---|
InputParameter() |
| Modifier and Type | Method and Description |
|---|---|
static Resolvable |
arg(java.lang.Class<? extends BaseDataType> type,
BaseDataType value)
Cast the runtime value to the specified type.
|
static <T extends BaseDataType> |
cast(java.lang.Class<T> type,
BaseDataType value)
Cast the runtime value to the specified type.
|
private static <T extends BaseDataType> |
cast(java.lang.Class<T> type,
boolean error,
BaseDataType value,
java.lang.String errMsg,
int errNum)
Cast the runtime value to the specified type.
|
static <T extends BaseDataType> |
function(java.lang.Class<T> type,
BaseDataType value)
Cast the runtime value to the specified type.
|
static <T extends BaseDataType> |
procedure(java.lang.Class<T> type,
BaseDataType value)
Cast the runtime value to the specified type.
|
static <T extends BaseDataType> |
property(java.lang.Class<T> type,
BaseDataType value)
Cast the runtime value to the specified type.
|
private static final CentralLogger LOG
public static Resolvable arg(java.lang.Class<? extends BaseDataType> type, BaseDataType value)
This API is emitted when the target top-level block is a direct Java call for a legacy OO method.
type - The conversion-time type of the expression.value - The runtime value of the argument.public static <T extends BaseDataType> T function(java.lang.Class<T> type, BaseDataType value)
This API is emitted when the target top-level block is a function.
type - The conversion-time type of the expression.value - The runtime value of the argument.public static <T extends BaseDataType> T procedure(java.lang.Class<T> type, BaseDataType value)
This API is emitted when the target top-level block is from a RUN statement.
type - The conversion-time type of the expression.value - The runtime value of the argument.public static <T extends BaseDataType> T property(java.lang.Class<T> type, BaseDataType value)
This API is emitted when the target top-level block is a property setter.
type - The conversion-time type of the expression.value - The runtime value of the argument.public static <T extends BaseDataType> T cast(java.lang.Class<T> type, BaseDataType value)
type - The conversion-time type of the expression.value - The runtime value of the argument.private static <T extends BaseDataType> T cast(java.lang.Class<T> type, boolean error, BaseDataType value, java.lang.String errMsg, int errNum)
type - The conversion-time type of the expression.error - Flag indicating if an ERROR condition needs to be raised.value - The runtime value of the argument.errMsg - The error message to add in case of failure.errNum - The error number to add in case of failure.