@OpenApiAll
public interface ParameterizedExpression
getValue
with custom number of parameters,
plus additional last parameter of ValueContext
type.
public class ParameterizedExpressionImpl implements ParameterizedExpression { /** * Value calculation method. * * @param parameter1 parameter of String type. * @param parameter2 parameter of boolean type. * @param valueContext context mandatory parameter. * @return calculated value. */ public Object getValue(String parameter1, boolean parameter2, ValueContext valueContext) { // value context is ignored in this implementation // construct string using passed arguments return "String: " + parameter1 + " boolean: " + parameter2; } }
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
getResultType()
Returns type of the result.
|