Package io.micronaut.inject.ast.utils
Class AstBeanPropertiesUtils
java.lang.Object
io.micronaut.inject.ast.utils.AstBeanPropertiesUtils
The AST bean properties utils.
- Since:
- 4.0.0
- Author:
- Denis Stepanov
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Internal holder class for getters and setters. -
Method Summary
Modifier and TypeMethodDescriptionstatic List<PropertyElement>
resolveBeanProperties
(PropertyElementQuery configuration, ClassElement classElement, Supplier<List<MethodElement>> methodsSupplier, Supplier<List<FieldElement>> fieldSupplier, boolean excludeElementsInRole, Set<String> propertyFields, Function<MethodElement, Optional<String>> customReaderPropertyNameResolver, Function<MethodElement, Optional<String>> customWriterPropertyNameResolver, Function<AstBeanPropertiesUtils.BeanPropertyData, PropertyElement> propertyCreator) Resolve the bean properties based on the configuration.
-
Method Details
-
resolveBeanProperties
public static List<PropertyElement> resolveBeanProperties(PropertyElementQuery configuration, ClassElement classElement, Supplier<List<MethodElement>> methodsSupplier, Supplier<List<FieldElement>> fieldSupplier, boolean excludeElementsInRole, Set<String> propertyFields, Function<MethodElement, Optional<String>> customReaderPropertyNameResolver, Function<MethodElement, Optional<String>> customWriterPropertyNameResolver, Function<AstBeanPropertiesUtils.BeanPropertyData, PropertyElement> propertyCreator) Resolve the bean properties based on the configuration.- Parameters:
configuration
- The configurationclassElement
- The class elementmethodsSupplier
- The methods supplierfieldSupplier
- The fields supplierexcludeElementsInRole
- Should exclude elements in role?propertyFields
- The fields that are propertiescustomReaderPropertyNameResolver
- Custom resolver of the property name from the readercustomWriterPropertyNameResolver
- Custom resolver of the property name from the writerpropertyCreator
- The property creator- Returns:
- the list of properties
-