public class ExpressionInspector extends Object
Constructor and Description |
---|
ExpressionInspector() |
Modifier and Type | Method and Description |
---|---|
static Method |
findMethod(Object base,
String methodName)
Finds a method based on the method name only.
|
static MethodReference |
getMethodReference(javax.el.ELContext context,
javax.el.ValueExpression valueExpression)
Gets a MethodReference from a ValueExpression.
|
static javax.el.ValueReference |
getValueReference(javax.el.ELContext context,
javax.el.ValueExpression valueExpression)
Gets the ValueReference from a ValueExpression, without any checks whether the property is actually
a property or if it isn't a "MethodSuffix".
|
public static javax.el.ValueReference getValueReference(javax.el.ELContext context, javax.el.ValueExpression valueExpression)
This is also a workaround for the fact that a ValueReference can't be obtained from a TagValueExpression in JSF 2.x (since it doesn't implement getValueReference and its super class just returns null).
context
- the context of this evaluationvalueExpression
- the value expression being evaluatedpublic static MethodReference getMethodReference(javax.el.ELContext context, javax.el.ValueExpression valueExpression)
Note that the method reference contains a method with the name the expression refers to. Overloads are not supported.
context
- the context of this evaluationvalueExpression
- the value expression being evaluatedpublic static Method findMethod(Object base, String methodName)
base
- the object in which the method is to be foundmethodName
- name of the method to be foundCopyright © 2012–2014 OmniFaces. All rights reserved.