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 Summary
ConstructorsConstructorDescriptionMethodExpressionLiteral(String expr, Class<?> expectedType, Class<?>[] paramTypes) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetMethodInfo(ELContext context) getMethodReference(ELContext context) Obtain theMethodReferencefor the method to which this method expression resolves.inthashCode()booleanvoidvoidMethods inherited from class jakarta.el.MethodExpression
isParametersProvided
-
Constructor Details
-
MethodExpressionLiteral
public MethodExpressionLiteral() -
MethodExpressionLiteral
-
-
Method Details
-
getMethodInfo
- Specified by:
getMethodInfoin classMethodExpression- Parameters:
context- The EL context for this evaluation- Returns:
- Information about the method that this expression resolves to
- Throws:
ELException- Wraps any exception throw whilst resolving the property
-
invoke
- Specified by:
invokein 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:
ELException- 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.MethodExpressionObtain theMethodReferencefor the method to which this method expression resolves.- Overrides:
getMethodReferencein classMethodExpression- Parameters:
context- The EL context for this evaluation- Returns:
- This default implementation always returns
null
-
getExpressionString
- Specified by:
getExpressionStringin classExpression
-
equals
- Specified by:
equalsin classExpression
-
hashCode
public int hashCode()- Specified by:
hashCodein classExpression
-
isLiteralText
public boolean isLiteralText()- Specified by:
isLiteralTextin classExpression
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-