public interface ScriptFunctionI
This interface provides a set of overloaded "invoke" methods that allow for flexible execution of a script function with or without parameters, and for returning values of different types with optional default values.
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
invoke()
Invokes the script function without any parameters.
|
java.lang.Object |
invoke(java.lang.Object nullValue)
Invokes the script function without any parameters, providing a default value to return if the result is null.
|
java.lang.Object |
invoke(java.lang.Object[] parms)
Invokes the script function with an array of parameters.
|
java.lang.Object |
invoke(java.lang.Object[] parms,
java.lang.Object nullValue)
Invokes the script function with an array of parameters and a default value to return if the result is null.
|
boolean |
invokeAsBool(java.lang.Object[] parms)
Invokes the script function with an array of parameters and returns a boolean value.
|
boolean |
invokeAsBool(java.lang.Object[] parms,
boolean nullValue)
Invokes the script function with an array of parameters and returns a boolean value.
|
java.lang.String |
invokeAsString(java.lang.Object[] parms)
Invokes the script function with an array of parameters and returns a String value.
|
java.lang.String |
invokeAsString(java.lang.Object[] parms,
java.lang.String nullValue)
Invokes the script function with an array of parameters and returns a String value.
|
java.lang.Object invoke()
Object
.java.lang.Object invoke(java.lang.Object nullValue)
nullValue
- The default value to be returned if the function's result is null.nullValue
if the result is null.java.lang.Object invoke(java.lang.Object[] parms, java.lang.Object nullValue)
parms
- An array of Object
s to be passed as parameters to the function.nullValue
- The default value to be returned if the function's result is null.nullValue
if the result is null.java.lang.Object invoke(java.lang.Object[] parms)
parms
- An array of Object
s to be passed as parameters to the function.Object
.boolean invokeAsBool(java.lang.Object[] parms, boolean nullValue)
parms
- An array of Object
s to be passed as parameters to the function.nullValue
- The default boolean value to be returned if the function's result is null.nullValue
if the result is null.boolean invokeAsBool(java.lang.Object[] parms)
parms
- An array of Object
s to be passed as parameters to the function.java.lang.String invokeAsString(java.lang.Object[] parms, java.lang.String nullValue)
parms
- An array of Object
s to be passed as parameters to the function.nullValue
- The default String value to be returned if the function's result is null.nullValue
if the result is null.java.lang.String invokeAsString(java.lang.Object[] parms)
parms
- An array of Object
s to be passed as parameters to the function.Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.