public interface TypesFactory
| Modifier and Type | Field and Description |
|---|---|
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 |
| Modifier and Type | Method and Description |
|---|---|
ELType |
getGeneratedType(String typeString,
ELType superType) |
ELType |
getMatchingVisibleMethodReturnType(ELType elType,
String methodName,
ELType... parameterTypes)
Find an accessible method that matches the given name and has compatible parameters.
|
ELPropertyDescriptor |
getPropertyDescriptor(ELType type,
String name)
This method return PropertyDescriptor by specified propertyName and clazz.
|
ELType |
getType(String typeString)
|
ELType |
getType(Type reflectionType)
|
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
ELType getMatchingVisibleMethodReturnType(ELType elType, 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 parametersParsingException - if error occured.ELPropertyDescriptor getPropertyDescriptor(ELType type, String name) throws ParsingException
elType - - class to searchpropertyName - - propertyName to searchParsingException - if error occured.Copyright © 2014 JBoss by Red Hat. All Rights Reserved.