All Downloads are FREE. Search and download functionalities are using the official Maven repository.

it.auties.protobuf.serialization.model.property.ProtobufPropertyElement Maven / Gradle / Ivy

package it.auties.protobuf.serialization.model.property;

import it.auties.protobuf.annotation.ProtobufProperty;

import javax.lang.model.element.Element;

public record ProtobufPropertyElement(
        int index,
        String name,
        Element accessor,
        ProtobufPropertyType type,
        boolean required,
        boolean packed,
        boolean synthetic
) {
    public ProtobufPropertyElement(String name, Element accessor, ProtobufPropertyType type, ProtobufProperty annotation, boolean synthetic) {
        this(
                annotation.index(),
                name,
                accessor,
                type,
                annotation.required(),
                annotation.packed(),
                synthetic
        );
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy