org.infinispan.protostream.impl.parser.mappers.ExtendMapper Maven / Gradle / Ivy
package org.infinispan.protostream.impl.parser.mappers;
import com.squareup.protoparser.ExtendDeclaration;
import org.infinispan.protostream.descriptors.ExtendDescriptor;
import static org.infinispan.protostream.impl.parser.mappers.Mappers.FIELD_LIST_MAPPER;
/**
* @author gustavonalle
* @since 2.0
*/
final class ExtendMapper implements Mapper {
@Override
public ExtendDescriptor map(ExtendDeclaration input) {
return new ExtendDescriptor.Builder()
.withName(input.getName())
.withFullName(input.getFullyQualifiedName())
.withFields(FIELD_LIST_MAPPER.map(input.getFields()))
.build();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy