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

datahub.protobuf.visitors.ProtobufModelVisitor Maven / Gradle / Ivy

There is a newer version: 0.14.1-12rc1
Show newest version
package datahub.protobuf.visitors;

import datahub.protobuf.model.ProtobufElement;
import datahub.protobuf.model.ProtobufField;
import datahub.protobuf.model.ProtobufMessage;
import java.util.stream.Stream;

public interface ProtobufModelVisitor {
  default Stream visitField(ProtobufField field, VisitContext context) {
    return visitElement(field, context);
  }

  default Stream visitMessage(ProtobufMessage message, VisitContext context) {
    return visitElement(message, context);
  }

  default Stream visitElement(ProtobufElement element, VisitContext context) {
    return Stream.of();
  }

  default Stream visitGraph(VisitContext context) {
    return Stream.of();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy