![JAR search and dependency download from the Maven repository](/logo.png)
eu.toolchain.serializer.processor.field.Field Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tiny-serializer-processor Show documentation
Show all versions of tiny-serializer-processor Show documentation
A processor for the @AutoSerialize annotation
The newest version!
package eu.toolchain.serializer.processor.field;
import com.squareup.javapoet.FieldSpec;
import com.squareup.javapoet.ParameterSpec;
import java.util.Optional;
import javax.lang.model.type.TypeMirror;
import lombok.Data;
@Data
public class Field {
/**
* Original name of the field.
*/
private final String originalName;
/**
* Configured provider name.
*/
private final Optional providerName;
/**
* If the serializer for this field is provided or not.
*/
private final boolean provided;
/**
* If the value for this field is provided.
*/
private final boolean external;
/**
* Type of the field.
*/
private final TypeMirror type;
/**
* The field specification.
*/
private final FieldSpec field;
/**
* If it is a provided variable, this is the parameter spec.
*/
private final Optional providedParameter;
/**
* If this field is optional or not.
*/
private final boolean optional;
public Field withProvidedParameter(final Optional providedParameter) {
return new Field(originalName, providerName, provided, external, type, field, providedParameter,
optional);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy