java.lang.Object
jakarta.el.MethodInfo
org.omnifaces.el.MethodReference
This encapsulates information about an EL method expression.
- Since:
- 1.4, 2.5 also extends MethodInfo
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMethodReference(Object base, Method method) Construct a method reference.MethodReference(Object base, Method method, Object[] actualParameters, boolean fromMethod) Construct a method reference. -
Method Summary
Modifier and TypeMethodDescriptionObject[]Returns the actual (evaluated) parameters of the method call.getBase()Returns the base of the EL method expression.Returns the concreteMethodinstance of the EL method expression.booleanReturnstrueif this method reference is from an actual method call and not from a getter of a property.Methods inherited from class jakarta.el.MethodInfo
equals, getName, getParamTypes, getReturnType, hashCode
-
Field Details
-
NO_PARAMS
An object array representing "no method parameters".
-
-
Constructor Details
-
MethodReference
Construct a method reference.- Parameters:
base- The base of the EL method expression.method- The concreteMethodinstance of the EL method expression.
-
MethodReference
Construct a method reference.- Parameters:
base- The base of the EL method expression.method- The concreteMethodinstance of the EL method expression.actualParameters- The actual (evaluated) parameters of the method call.fromMethod- Whether this method reference is from an actual method call and not from a getter of a property.
-
-
Method Details
-
getBase
Returns the base of the EL method expression. Usually, this is the backing bean on which the method behindgetMethod()should be invoked.- Returns:
- The base of the EL method expression.
-
getMethod
Returns the concreteMethodinstance of the EL method expression. Usually, this is a method of the class behindgetBase().- Returns:
- The concrete
Methodinstance of the EL method expression.
-
getActualParameters
Returns the actual (evaluated) parameters of the method call. If there are no params, then this returns an empty array, nevernull. Those should be passed toMethod.invoke(Object, Object...).- Returns:
- The actual (evaluated) parameters of the method call.
-
isFromMethod
public boolean isFromMethod()Returnstrueif this method reference is from an actual method call and not from a getter of a property.- Returns:
trueif this method reference is from an actual method call and not from a getter of a property.
-