public class BuilderSpec.PropertySetter
extends java.lang.Object
T foo()
or T getFoo()
) can have a setter
method foo(T)
or setFoo(T)
that returns the builder type. Additionally, it
can have a setter with a type that can be copied to T
through a copyOf
method;
for example a property foo
of type ImmutableSet<String>
can be set with a
method setFoo(Collection<String> foos)
. And, if T
is Optional
,
it can have a setter with a type that can be copied to T
through Optional.of
.Modifier and Type | Field and Description |
---|---|
private java.lang.String |
copyOf |
private java.lang.String |
name |
private java.lang.String |
parameterTypeString |
Constructor and Description |
---|
PropertySetter(javax.lang.model.element.ExecutableElement setter,
javax.lang.model.type.TypeMirror propertyType,
TypeSimplifier typeSimplifier) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
copy(AutoValueProcessor.Property property) |
java.lang.String |
getName() |
java.lang.String |
getParameterType() |
private final java.lang.String name
private final java.lang.String parameterTypeString
private final java.lang.String copyOf
public PropertySetter(javax.lang.model.element.ExecutableElement setter, javax.lang.model.type.TypeMirror propertyType, TypeSimplifier typeSimplifier)
public java.lang.String getName()
public java.lang.String getParameterType()
public java.lang.String copy(AutoValueProcessor.Property property)