Package jakarta.el
Class MethodExpression
java.lang.Object
jakarta.el.Expression
jakarta.el.MethodExpression
- All Implemented Interfaces:
- Serializable
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract MethodInfogetMethodInfo(ELContext context) getMethodReference(ELContext context) Obtain theMethodReferencefor the method to which this method expression resolves.abstract ObjectbooleanMethods inherited from class jakarta.el.Expressionequals, getExpressionString, hashCode, isLiteralText
- 
Constructor Details- 
MethodExpressionpublic MethodExpression()
 
- 
- 
Method Details- 
getMethodInfo- Parameters:
- context- The EL context for this evaluation
- Returns:
- Information about the method that this expression resolves to
- Throws:
- NullPointerException- If the supplied context is- null
- PropertyNotFoundException- If a property/variable resolution failed because no match was found or a match was found but was not readable
- MethodNotFoundException- If no matching method can be found
- ELException- Wraps any exception throw whilst resolving the property
 
- 
invoke- Parameters:
- context- The EL context for this evaluation
- params- The parameters with which to invoke this method expression
- Returns:
- The result of invoking this method expression
- Throws:
- NullPointerException- If the supplied context is- null
- PropertyNotFoundException- If a property/variable resolution failed because no match was found or a match was found but was not readable
- MethodNotFoundException- If no matching method can be found
- ELException- Wraps any exception throw whilst resolving the property or coercion of the result to the expected return type fails
 
- 
isParametersProvidedpublic boolean isParametersProvided()- Returns:
- This default implementation always returns false
- Since:
- EL 3.0
 
- 
getMethodReferenceObtain theMethodReferencefor the method to which this method expression resolves.- Parameters:
- context- The EL context for this evaluation
- Returns:
- This default implementation always returns null
- Throws:
- NullPointerException- If the supplied context is- null
- PropertyNotFoundException- If a property/variable resolution failed because no match was found or a match was found but was not readable
- MethodNotFoundException- If no matching method can be found
- ELException- Wraps any exception throw whilst resolving the property
- Since:
- EL 5.0
 
 
-