Class OptionalProperty.Factory
- java.lang.Object
-
- org.inferred.freebuilder.processor.property.OptionalProperty.Factory
-
- All Implemented Interfaces:
PropertyCodeGenerator.Factory
- Enclosing class:
- OptionalProperty
static class OptionalProperty.Factory extends java.lang.Object implements PropertyCodeGenerator.Factory
-
-
Constructor Summary
Constructors Constructor Description Factory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<OptionalProperty>create(PropertyCodeGenerator.Config config)Create a newPropertyCodeGeneratorfor the property described inconfig.private static java.util.Optional<OptionalProperty.OptionalType>maybeOptional(javax.lang.model.type.DeclaredType type)
-
-
-
Method Detail
-
create
public java.util.Optional<OptionalProperty> create(PropertyCodeGenerator.Config config)
Description copied from interface:PropertyCodeGenerator.FactoryCreate a newPropertyCodeGeneratorfor the property described inconfig.- Specified by:
createin interfacePropertyCodeGenerator.Factory- Returns:
- A new
PropertyCodeGenerator, orOptional.empty()if the factory does not support this type of property.
-
maybeOptional
private static java.util.Optional<OptionalProperty.OptionalType> maybeOptional(javax.lang.model.type.DeclaredType type)
-
-