|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.omnifaces.el.ExpressionInspector
public class ExpressionInspector
This class contains methods that inspect expressions to reveal information about them.
Constructor Summary | |
---|---|
ExpressionInspector()
|
Method Summary | |
---|---|
static java.lang.reflect.Method |
findMethod(java.lang.Object base,
java.lang.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". |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExpressionInspector()
Method Detail |
---|
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 evaluated
public 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 evaluated
public static java.lang.reflect.Method findMethod(java.lang.Object base, java.lang.String methodName)
base
- the object in which the method is to be foundmethodName
- name of the method to be found
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |