|
RichFaces CDK Generator 4.2.0.CR1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.richfaces.cdk.templatecompiler.el.types.TypesFactoryImpl
public final class TypesFactoryImpl
| Field Summary |
|---|
| Fields inherited from interface org.richfaces.cdk.templatecompiler.el.types.TypesFactory |
|---|
BOOLEAN_TYPE, DOUBLE_TYPE, INT_TYPE, INTEGER_TYPE, OBJECT_TYPE, STRING_TYPE, VOID_TYPE |
| Constructor Summary | |
|---|---|
TypesFactoryImpl(org.richfaces.cdk.Logger log,
CdkClassLoader classLoader)
|
|
| Method Summary | |
|---|---|
ELType |
getMatchingVisibleMethodReturnType(ELType elType,
String methodName,
ELType... parameterTypes)
Find an accessible method that matches the given name and has compatible parameters. |
ELPropertyDescriptor |
getPropertyDescriptor(ELType elType,
String propertyName)
This method return PropertyDescriptor by specified propertyName and clazz. |
ELType |
getType(String typeString)
|
ELType |
getType(Type reflectionType)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Inject
public TypesFactoryImpl(org.richfaces.cdk.Logger log,
CdkClassLoader classLoader)
| Method Detail |
|---|
public ELType getType(String typeString)
TypesFactory
getType in interface TypesFactorypublic ELType getType(Type reflectionType)
TypesFactory
getType in interface TypesFactory
public ELPropertyDescriptor getPropertyDescriptor(ELType elType,
String propertyName)
throws ParsingException
getPropertyDescriptor in interface TypesFactoryelType - - class to searchpropertyName - - propertyName to search
ParsingException - if error occured.
public 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.
getMatchingVisibleMethodReturnType in interface TypesFactoryelType - find method in this classmethodName - find method with this nameparameterTypes - find method with compatible parameters
ParsingException - if error occured.
|
RichFaces CDK Generator 4.2.0.CR1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||