public class DynamicSimplePropertyGetter extends DynamicPropertyGetterBase
Constructor and Description |
---|
DynamicSimplePropertyGetter(String fieldName,
EventBeanTypedEventFactory eventBeanTypedEventFactory,
BeanEventTypeFactory beanEventTypeFactory) |
Modifier and Type | Method and Description |
---|---|
protected Object |
call(DynamicPropertyDescriptor descriptor,
Object underlying)
Call the getter to obtains the return result object, or null if no such method exists.
|
protected CodegenExpression |
callCodegen(CodegenExpressionRef desc,
CodegenExpressionRef object,
CodegenMethodScope parent,
CodegenClassScope codegenClassScope) |
protected Method |
determineMethod(Class clazz)
To be implemented to return the method required, or null to indicate an appropriate method could not be found.
|
protected CodegenExpression |
determineMethodCodegen(CodegenExpressionRef clazz,
CodegenMethodScope parent,
CodegenClassScope codegenClassScope) |
static Object |
dynamicSimplePropertyCall(DynamicPropertyDescriptor descriptor,
Object underlying)
NOTE: Code-generation-invoked method, method name and parameter order matters
|
static Method |
dynamicSimplePropertyDetermineMethod(String getterMethodName,
String isMethodName,
Class clazz)
NOTE: Code-generation-invoked method, method name and parameter order matters
|
cacheAndCall, cacheAndExists, dynamicPropertyCacheAdd, dynamicPropertyCacheCheck, eventBeanExistsCodegen, eventBeanFragmentCodegen, eventBeanGetCodegen, get, getBeanProp, getBeanPropType, getFragment, getTargetType, handleException, isBeanExistsProperty, isExistsProperty, underlyingExistsCodegen, underlyingFragmentCodegen, underlyingGetCodegen
public DynamicSimplePropertyGetter(String fieldName, EventBeanTypedEventFactory eventBeanTypedEventFactory, BeanEventTypeFactory beanEventTypeFactory)
protected Object call(DynamicPropertyDescriptor descriptor, Object underlying)
DynamicPropertyGetterBase
call
in class DynamicPropertyGetterBase
descriptor
- provides method information for the classunderlying
- is the underlying object to ask for the property valueprotected CodegenExpression callCodegen(CodegenExpressionRef desc, CodegenExpressionRef object, CodegenMethodScope parent, CodegenClassScope codegenClassScope)
callCodegen
in class DynamicPropertyGetterBase
protected Method determineMethod(Class clazz)
DynamicPropertyGetterBase
determineMethod
in class DynamicPropertyGetterBase
clazz
- to search for a matching methodprotected CodegenExpression determineMethodCodegen(CodegenExpressionRef clazz, CodegenMethodScope parent, CodegenClassScope codegenClassScope)
determineMethodCodegen
in class DynamicPropertyGetterBase
public static Object dynamicSimplePropertyCall(DynamicPropertyDescriptor descriptor, Object underlying)
descriptor
- descunderlying
- underlyingpublic static Method dynamicSimplePropertyDetermineMethod(String getterMethodName, String isMethodName, Class clazz)
getterMethodName
- getterisMethodName
- is-methodclazz
- classCopyright © 2005–2018. All rights reserved.