Class LiteralMethodExpression
java.lang.Object
jakarta.el.Expression
jakarta.el.MethodExpression
io.micronaut.el.runtime.CompiledMethodExpression
io.micronaut.el.runtime.LiteralMethodExpression
- All Implemented Interfaces:
CompiledExpression, Serializable
A literal-expression used as a method expression, as described in the section 1.2.2 of the Jakarta
Expression Language specification.
- Since:
- 1.0
- Author:
- Denis Stepanov
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLiteralMethodExpression(String text, Class<?> expectedReturnType, Class<?>[] expectedParamTypes) -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectPerforms the compiled invocation.protected @Nullable ObjectevaluateBase(jakarta.el.ELContext context) Evaluates the base object the method is invoked on,nullfor a method expression consisting of a single identifier.protected @Nullable ObjectevaluateProperty(jakarta.el.ELContext context) jakarta.el.MethodInfogetMethodInfo(jakarta.el.ELContext context) booleanMethods inherited from class CompiledMethodExpression
equals, evaluateArguments, getExpectedParamTypes, getExpectedReturnType, getExpressionString, getMethodReference, hashCode, invoke, isParametersProvided, toString
-
Constructor Details
-
LiteralMethodExpression
-
-
Method Details
-
evaluateBase
Description copied from class:CompiledMethodExpressionEvaluates the base object the method is invoked on,nullfor a method expression consisting of a single identifier.- Specified by:
evaluateBasein classCompiledMethodExpression- Parameters:
context- The context- Returns:
- The base object
-
evaluateProperty
- Specified by:
evaluatePropertyin classCompiledMethodExpression- Parameters:
context- The context- Returns:
- The name of the invoked method
-
doInvoke
Description copied from class:CompiledMethodExpressionPerforms the compiled invocation.- Specified by:
doInvokein classCompiledMethodExpression- Parameters:
context- The contextarguments- The arguments passed toCompiledMethodExpression.invoke(ELContext, Object[])- Returns:
- The result of the invocation, before the coercion to the expected return type
-
getMethodInfo
public jakarta.el.MethodInfo getMethodInfo(jakarta.el.ELContext context) - Overrides:
getMethodInfoin classCompiledMethodExpression
-
isLiteralText
public boolean isLiteralText()- Overrides:
isLiteralTextin classCompiledMethodExpression
-