public class MapNestedEntryPropertyGetterPropertyProvidedDynamic extends MapNestedEntryPropertyGetterBase
eventBeanTypedEventFactory, fragmentType, propertyMap
Constructor and Description |
---|
MapNestedEntryPropertyGetterPropertyProvidedDynamic(String propertyMap,
EventType fragmentType,
EventBeanTypedEventFactory eventBeanTypedEventFactory,
EventPropertyGetter nestedGetter) |
Modifier and Type | Method and Description |
---|---|
CodegenExpression |
eventBeanExistsCodegen(CodegenExpression beanExpression,
CodegenMethodScope codegenMethodScope,
CodegenClassScope codegenClassScope) |
Object |
handleNestedValue(Object value) |
CodegenExpression |
handleNestedValueCodegen(CodegenExpression valueExpression,
CodegenMethodScope codegenMethodScope,
CodegenClassScope codegenClassScope) |
Object |
handleNestedValueFragment(Object value) |
CodegenExpression |
handleNestedValueFragmentCodegen(CodegenExpression name,
CodegenMethodScope codegenMethodScope,
CodegenClassScope codegenClassScope) |
boolean |
isExistsProperty(EventBean eventBean)
Returns true if the property exists, or false if the type does not have such a property.
|
CodegenExpression |
underlyingExistsCodegen(CodegenExpression underlyingExpression,
CodegenMethodScope codegenMethodScope,
CodegenClassScope codegenClassScope) |
eventBeanFragmentCodegen, eventBeanGetCodegen, get, getFragment, getMap, isMapExistsProperty, underlyingFragmentCodegen, underlyingGetCodegen
public MapNestedEntryPropertyGetterPropertyProvidedDynamic(String propertyMap, EventType fragmentType, EventBeanTypedEventFactory eventBeanTypedEventFactory, EventPropertyGetter nestedGetter)
public boolean isExistsProperty(EventBean eventBean)
EventPropertyGetter
Useful for dynamic properties of the syntax "property?" and the dynamic nested/indexed/mapped versions. Dynamic nested properties follow the syntax "property?.nested" which is equivalent to "property?.nested?". If any of the properties in the path of a dynamic nested property return null, the dynamic nested property does not exists and the method returns false.
For non-dynamic properties, this method always returns true since a getter would not be available unless
isExistsProperty
in interface EventPropertyGetter
isExistsProperty
in class MapNestedEntryPropertyGetterBase
eventBean
- is the event to check if the dynamic property existspublic Object handleNestedValue(Object value)
handleNestedValue
in class MapNestedEntryPropertyGetterBase
public Object handleNestedValueFragment(Object value)
handleNestedValueFragment
in class MapNestedEntryPropertyGetterBase
public CodegenExpression handleNestedValueCodegen(CodegenExpression valueExpression, CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope)
handleNestedValueCodegen
in class MapNestedEntryPropertyGetterBase
public CodegenExpression handleNestedValueFragmentCodegen(CodegenExpression name, CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope)
handleNestedValueFragmentCodegen
in class MapNestedEntryPropertyGetterBase
public CodegenExpression eventBeanExistsCodegen(CodegenExpression beanExpression, CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope)
eventBeanExistsCodegen
in interface EventPropertyGetterSPI
eventBeanExistsCodegen
in class MapNestedEntryPropertyGetterBase
public CodegenExpression underlyingExistsCodegen(CodegenExpression underlyingExpression, CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope)
underlyingExistsCodegen
in interface EventPropertyGetterSPI
underlyingExistsCodegen
in class MapNestedEntryPropertyGetterBase
Copyright © 2005–2018. All rights reserved.