io.github.zenwave360.zdl.antlr.ZdlModelPostProcessor Maven / Gradle / Ivy
The newest version!
package io.github.zenwave360.zdl.antlr;
import io.github.zenwave360.zdl.antlr.JSONPath;
import io.github.zenwave360.zdl.antlr.ZdlModel;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class ZdlModelPostProcessor {
public static ZdlModel postProcess(ZdlModel model) {
var aggregates = model.getAggregates();
var entities = model.getEntities();
var inputs = model.getInputs();
var outputs = model.getOutputs();
var enums = model.getEnums();
var events = model.getEvents();
var fields = JSONPath.get(model, "$..fields[*]", List.