|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.richfaces.cdk.templatecompiler.el.ELParserUtils
public final class ELParserUtils
Class, that encapsulate all functionality, related to Reflection calls, such as loading classes, get property descriptors etc...
| Method Summary | |
|---|---|
static void |
clearCaches()
|
static java.lang.String |
coerceToType(java.lang.String valueString,
ELVisitor visitor,
Type expectedType)
|
static ITreeNode |
determineNodeType(org.jboss.el.parser.Node child)
This method determine type of parsed node and create wrapper for them, that extends AbstractTreeNode. |
static Type |
getMatchingVisibleMethodReturnType(java.lang.Class<?> clazz,
java.lang.String methodName,
Type[] parameterTypes)
Find an accessible method that matches the given name and has compatible parameters. |
static java.beans.PropertyDescriptor |
getPropertyDescriptor(java.lang.Class<?> clazz,
java.lang.String propertyName)
This method return PropertyDescriptor by specified propertyName and clazz. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ITreeNode determineNodeType(org.jboss.el.parser.Node child)
throws ParsingException
child - - parsed node
ParsingException - - if node type is not recognized.
public static java.beans.PropertyDescriptor getPropertyDescriptor(java.lang.Class<?> clazz,
java.lang.String propertyName)
throws ParsingException
clazz - - class to searchpropertyName - - propertyName to search
ParsingException - if error occured.
public static Type getMatchingVisibleMethodReturnType(java.lang.Class<?> clazz,
java.lang.String methodName,
Type[] parameterTypes)
throws ParsingException
Find an accessible method that matches the given name and has compatible parameters. Compatible parameters mean that every method parameter is assignable from the given parameters. In other words, it finds a method with the given name that will take the parameters given.
This method is slightly undeterminstic since it loops through methods names and return the first matching method.
This method is used by #invokeMethod(Object object,String methodName,Object [] args,Class[] parameterTypes).
This method can match primitive parameter by passing in wrapper classes. For example, a Boolean will
match a primitive boolean parameter.
clazz - find method in this classmethodName - find method with this nameparameterTypes - find method with compatible parameters
ParsingException - if error occured.public static void clearCaches()
public static java.lang.String coerceToType(java.lang.String valueString,
ELVisitor visitor,
Type expectedType)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||