public class GroovyClosureScriptFunction extends java.lang.Object implements ScriptFunctionI
Constructor and Description |
---|
GroovyClosureScriptFunction(groovy.lang.Closure c,
int paramCount) |
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.
|
public GroovyClosureScriptFunction(groovy.lang.Closure c, int paramCount)
public java.lang.Object invoke()
ScriptFunctionI
invoke
in interface ScriptFunctionI
Object
.public java.lang.Object invoke(java.lang.Object nullValue)
ScriptFunctionI
invoke
in interface ScriptFunctionI
nullValue
- The default value to be returned if the function's result is null.nullValue
if the result is null.public java.lang.Object invoke(java.lang.Object[] parms)
ScriptFunctionI
invoke
in interface ScriptFunctionI
parms
- An array of Object
s to be passed as parameters to the function.Object
.public java.lang.Object invoke(java.lang.Object[] parms, java.lang.Object nullValue)
ScriptFunctionI
invoke
in interface ScriptFunctionI
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.public boolean invokeAsBool(java.lang.Object[] parms)
ScriptFunctionI
invokeAsBool
in interface ScriptFunctionI
parms
- An array of Object
s to be passed as parameters to the function.public boolean invokeAsBool(java.lang.Object[] parms, boolean nullValue)
ScriptFunctionI
invokeAsBool
in interface ScriptFunctionI
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.public java.lang.String invokeAsString(java.lang.Object[] parms)
ScriptFunctionI
invokeAsString
in interface ScriptFunctionI
parms
- An array of Object
s to be passed as parameters to the function.public java.lang.String invokeAsString(java.lang.Object[] parms, java.lang.String nullValue)
ScriptFunctionI
invokeAsString
in interface ScriptFunctionI
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.Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.