Package org.apache.el
Class MethodExpressionLiteral
java.lang.Object
jakarta.el.Expression
jakarta.el.MethodExpression
org.apache.el.MethodExpressionLiteral
- All Implemented Interfaces:
- Externalizable,- Serializable
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionMethodExpressionLiteral(String expr, Class<?> expectedType, Class<?>[] paramTypes) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleangetMethodInfo(ELContext context) getMethodReference(ELContext context) Obtain theMethodReferencefor the method to which this method expression resolves.inthashCode()booleanvoidvoidMethods inherited from class jakarta.el.MethodExpressionisParametersProvided
- 
Constructor Details- 
MethodExpressionLiteralpublic MethodExpressionLiteral()
- 
MethodExpressionLiteral
 
- 
- 
Method Details- 
getMethodInfo- Specified by:
- getMethodInfoin class- MethodExpression
- Parameters:
- context- The EL context for this evaluation
- Returns:
- Information about the method that this expression resolves to
- Throws:
- 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- Specified by:
- invokein class- MethodExpression
- 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:
- 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
 
- 
getMethodReferenceDescription copied from class:jakarta.el.MethodExpressionObtain theMethodReferencefor the method to which this method expression resolves.- Overrides:
- getMethodReferencein class- MethodExpression
- Parameters:
- context- The EL context for this evaluation
- Returns:
- This default implementation always returns null
 
- 
getExpressionString- Specified by:
- getExpressionStringin class- Expression
 
- 
equals- Specified by:
- equalsin class- Expression
 
- 
hashCodepublic int hashCode()- Specified by:
- hashCodein class- Expression
 
- 
isLiteralTextpublic boolean isLiteralText()- Specified by:
- isLiteralTextin class- Expression
 
- 
readExternal- Specified by:
- readExternalin interface- Externalizable
- Throws:
- IOException
- ClassNotFoundException
 
- 
writeExternal- Specified by:
- writeExternalin interface- Externalizable
- Throws:
- IOException
 
 
-