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

it.auties.protobuf.serialization.property.ProtobufPropertyStub Maven / Gradle / Ivy

There is a newer version: 3.4.1
Show newest version
package it.auties.protobuf.serialization.property;

import it.auties.protobuf.annotation.ProtobufProperty;

import javax.lang.model.element.ExecutableElement;

public record ProtobufPropertyStub(int index, String name, ExecutableElement accessor, ProtobufPropertyType type, boolean required, boolean repeated, boolean packed) {
    public ProtobufPropertyStub(int index, String name, ExecutableElement accessor, ProtobufPropertyType type, ProtobufProperty annotation) {
        this(
                index,
                name,
                accessor,
                type,
                annotation.required(),
                annotation.repeated(),
                annotation.packed()
        );
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy