- 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 booleanequals(Object obj)StringgetExpressionString()MethodInfogetMethodInfo(ELContext context)ValueExpressiongetValueExpression()Returns the underlying value expression.inthashCode()Objectinvoke(ELContext context, Object[] params)booleanisLiteralText()-
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:
invokein classMethodExpression
-
getMethodInfo
public MethodInfo getMethodInfo(ELContext context)
- Specified by:
getMethodInfoin classMethodExpression
-
isLiteralText
public boolean isLiteralText()
- Specified by:
isLiteralTextin classExpression
-
hashCode
public int hashCode()
- Specified by:
hashCodein classExpression
-
getExpressionString
public String getExpressionString()
- Specified by:
getExpressionStringin classExpression
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin classExpression
-
getValueExpression
public ValueExpression getValueExpression()
Returns the underlying value expression.- Returns:
- The underlying value expression.
-
-