|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TypesFactory
| Field Summary | |
|---|---|
static ELType |
BOOLEAN_TYPE
|
static ELType |
DOUBLE_TYPE
|
static ELType |
INT_TYPE
|
static ELType |
INTEGER_TYPE
|
static ELType |
OBJECT_TYPE
|
static ELType |
STRING_TYPE
|
static ELType |
VOID_TYPE
|
| Method Summary | |
|---|---|
ELType |
getMatchingVisibleMethodReturnType(ELType elType,
java.lang.String methodName,
ELType... parameterTypes)
Find an accessible method that matches the given name and has compatible parameters. |
ELPropertyDescriptor |
getPropertyDescriptor(ELType type,
java.lang.String name)
This method return PropertyDescriptor by specified propertyName and clazz. |
ELType |
getType(java.lang.String typeString)
|
ELType |
getType(java.lang.reflect.Type reflectionType)
|
| Field Detail |
|---|
static final ELType OBJECT_TYPE
static final ELType STRING_TYPE
static final ELType BOOLEAN_TYPE
static final ELType DOUBLE_TYPE
static final ELType INTEGER_TYPE
static final ELType INT_TYPE
static final ELType VOID_TYPE
| Method Detail |
|---|
ELType getType(java.lang.String typeString)
typeString -
ELType getType(java.lang.reflect.Type reflectionType)
reflectionType -
ELType getMatchingVisibleMethodReturnType(ELType elType,
java.lang.String methodName,
ELType... 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.
elType - find method in this classmethodName - find method with this nameparameterTypes - find method with compatible parameters
ParsingException - if error occured.
ELPropertyDescriptor getPropertyDescriptor(ELType type,
java.lang.String name)
throws ParsingException
elType - - class to searchpropertyName - - propertyName to search
ParsingException - if error occured.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||