public class MethodReference extends Object
Constructor and Description |
---|
MethodReference(Object base,
Method method) |
MethodReference(Object base,
Method method,
Object[] actualParameters,
boolean fromMethod) |
Modifier and Type | Method and Description |
---|---|
Object[] |
getActualParameters()
Returns the actual (evaluated) parameters of the method call.
|
Object |
getBase()
Returns the base of the EL method expression.
|
Method |
getMethod()
Returns the concrete
Method instance of the EL method expression. |
MethodInfo |
getMethodInfo()
Returns the standard EL
MethodInfo of the MethodExpression where this MethodReference
has been extracted from. |
boolean |
isFromMethod()
Returns
true if this method reference is from an actual method call and not from a getter of a property. |
public static final Object[] NO_PARAMS
public Object getBase()
getMethod()
should be invoked.public Method getMethod()
Method
instance of the EL method expression. Usually, this is a method of the
class behind getBase()
.Method
instance of the EL method expression.public Object[] getActualParameters()
null
. Those should be passed to Method.invoke(Object, Object...)
.public boolean isFromMethod()
true
if this method reference is from an actual method call and not from a getter of a property.true
if this method reference is from an actual method call and not from a getter of a property.public MethodInfo getMethodInfo()
MethodInfo
of the MethodExpression
where this MethodReference
has been extracted from.MethodInfo
.Copyright © 2012–2016 OmniFaces. All rights reserved.