Package org.apache.jasper.el
Class JspMethodExpression
java.lang.Object
jakarta.el.Expression
jakarta.el.MethodExpression
org.apache.jasper.el.JspMethodExpression
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getMethodInfo
(ELContext context) getMethodReference
(ELContext context) Obtain theMethodReference
for the method to which this method expression resolves.int
hashCode()
boolean
boolean
void
void
-
Constructor Details
-
JspMethodExpression
public JspMethodExpression() -
JspMethodExpression
-
-
Method Details
-
getMethodInfo
public MethodInfo getMethodInfo(ELContext context) throws NullPointerException, PropertyNotFoundException, MethodNotFoundException, ELException - Specified by:
getMethodInfo
in classMethodExpression
- Parameters:
context
- The EL context for this evaluation- Returns:
- Information about the method that this expression resolves to
- Throws:
NullPointerException
- If the supplied context isnull
PropertyNotFoundException
- If a property/variable resolution failed because no match was found or a match was found but was not readableMethodNotFoundException
- If no matching method can be foundELException
- Wraps any exception throw whilst resolving the property
-
invoke
public Object invoke(ELContext context, Object[] params) throws NullPointerException, PropertyNotFoundException, MethodNotFoundException, ELException - Specified by:
invoke
in classMethodExpression
- Parameters:
context
- The EL context for this evaluationparams
- The parameters with which to invoke this method expression- Returns:
- The result of invoking this method expression
- Throws:
NullPointerException
- If the supplied context isnull
PropertyNotFoundException
- If a property/variable resolution failed because no match was found or a match was found but was not readableMethodNotFoundException
- If no matching method can be foundELException
- Wraps any exception throw whilst resolving the property or coercion of the result to the expected return type fails
-
getMethodReference
Description copied from class:jakarta.el.MethodExpression
Obtain theMethodReference
for the method to which this method expression resolves.- Overrides:
getMethodReference
in classMethodExpression
- Parameters:
context
- The EL context for this evaluation- Returns:
- This default implementation always returns
null
-
isParametersProvided
public boolean isParametersProvided()- Overrides:
isParametersProvided
in classMethodExpression
- Returns:
- This default implementation always returns
false
-
equals
- Specified by:
equals
in classExpression
-
hashCode
public int hashCode()- Specified by:
hashCode
in classExpression
-
getExpressionString
- Specified by:
getExpressionString
in classExpression
-
isLiteralText
public boolean isLiteralText()- Specified by:
isLiteralText
in classExpression
-
writeExternal
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-