ELException
is thrown if expectedReturnType
is void or if the coercion of the String literal to the expectedReturnType
yields an error (see Section "1.18 Type Conversion" of the EL specification). If not a String literal, evaluates the expression relative to the provided context, invokes the method that was found using the supplied parameters, and returns the result of the method invocation. Any parameters passed to this method is ignored if isLiteralText() or isParametersProvided() is true.
@param context The context of this evaluation.
@param params The parameters to pass to the method, ornull
if no parameters.
@return the result of the method invocation (null
ifthe method has a void
return type).
@throws NullPointerException if context is null
@throws PropertyNotFoundException if one of the propertyresolutions failed because a specified variable or property does not exist or is not readable.
@throws MethodNotFoundException if no suitable method can be found.
@throws ELException if a String literal is specified andexpectedReturnType of the MethodExpression is void or if the coercion of the String literal to the expectedReturnType yields an error (see Section "1.18 Type Conversion").
@throws ELException if an exception was thrown while performing property or variable resolution. The thrown exception must be included as the cause property of this exception, if available. If the exception thrown is an InvocationTargetException
, extract its cause
and pass it to the ELException
constructor.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|