Class NullableProperty.Factory
- java.lang.Object
-
- org.inferred.freebuilder.processor.property.NullableProperty.Factory
-
- All Implemented Interfaces:
PropertyCodeGenerator.Factory
- Enclosing class:
- NullableProperty
static class NullableProperty.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<NullableProperty>create(PropertyCodeGenerator.Config config)Create a newPropertyCodeGeneratorfor the property described inconfig.private static java.util.Set<javax.lang.model.element.TypeElement>nullablesIn(java.lang.Iterable<? extends javax.lang.model.element.AnnotationMirror> annotations)
-
-
-
Method Detail
-
create
public java.util.Optional<NullableProperty> 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.
-
nullablesIn
private static java.util.Set<javax.lang.model.element.TypeElement> nullablesIn(java.lang.Iterable<? extends javax.lang.model.element.AnnotationMirror> annotations)
-
-