Package org.omnifaces.el
Class MethodExpressionValueExpressionAdapter
- java.lang.Object
-
- jakarta.el.Expression
-
- jakarta.el.MethodExpression
-
- org.omnifaces.el.MethodExpressionValueExpressionAdapter
-
- All Implemented Interfaces:
Serializable
public class MethodExpressionValueExpressionAdapter extends MethodExpression
This MethodExpression wraps a ValueExpression.With this wrapper a value expression can be used where a method expression is expected. The return value of the method execution will be the value represented by the value expression.
- Author:
- Arjan Tijms
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MethodExpressionValueExpressionAdapter(ValueExpression valueExpression)
Construct method expression which adapts the given value expression.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getExpressionString()
MethodInfo
getMethodInfo(ELContext context)
ValueExpression
getValueExpression()
Returns the underlying value expression.int
hashCode()
Object
invoke(ELContext context, Object[] params)
boolean
isLiteralText()
-
Methods inherited from class jakarta.el.MethodExpression
isParametersProvided, isParmetersProvided
-
-
-
-
Constructor Detail
-
MethodExpressionValueExpressionAdapter
public MethodExpressionValueExpressionAdapter(ValueExpression valueExpression)
Construct method expression which adapts the given value expression.- Parameters:
valueExpression
- Value expression to be adapted to method expression.
-
-
Method Detail
-
invoke
public Object invoke(ELContext context, Object[] params)
- Specified by:
invoke
in classMethodExpression
-
getMethodInfo
public MethodInfo getMethodInfo(ELContext context)
- Specified by:
getMethodInfo
in classMethodExpression
-
isLiteralText
public boolean isLiteralText()
- Specified by:
isLiteralText
in classExpression
-
hashCode
public int hashCode()
- Specified by:
hashCode
in classExpression
-
getExpressionString
public String getExpressionString()
- Specified by:
getExpressionString
in classExpression
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in classExpression
-
getValueExpression
public ValueExpression getValueExpression()
Returns the underlying value expression.- Returns:
- The underlying value expression.
-
-