Package org.apache.el
Class MethodExpressionLiteral
java.lang.Object
jakarta.el.Expression
jakarta.el.MethodExpression
org.apache.el.MethodExpressionLiteral
-
Constructor Summary
ConstructorDescriptionMethodExpressionLiteral
(String expr, Class<?> expectedType, Class<?>[] paramTypes) -
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
void
void
Methods inherited from class jakarta.el.MethodExpression
isParametersProvided
-
Constructor Details
-
MethodExpressionLiteral
public MethodExpressionLiteral() -
MethodExpressionLiteral
-
-
Method Details
-
getMethodInfo
- Specified by:
getMethodInfo
in 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:
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:
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.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
-
getExpressionString
- Specified by:
getExpressionString
in classExpression
-
equals
- Specified by:
equals
in classExpression
-
hashCode
public int hashCode()- Specified by:
hashCode
in classExpression
-
isLiteralText
public boolean isLiteralText()- Specified by:
isLiteralText
in classExpression
-
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
writeExternal
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-