Search in sources :

Example 1 with ED

use of catdata.aql.ED in project fql by CategoricalData.

the class EdsExpRaw method eval.

@Override
public Constraints<Ty, En, Sym, Fk, Att> eval(AqlEnv env) {
    Schema<Ty, En, Sym, Fk, Att> sch = schema.eval(env);
    Collection<ED<Ty, En, Sym, Fk, Att>> l = new LinkedList<>();
    for (String k : imports) {
        @SuppressWarnings("unchecked") Constraints<Ty, En, Sym, Fk, Att> v = env.defs.eds.get(k);
        l.addAll(v.eds);
    }
    for (EdExpRaw e : eds) {
        l.add(e.eval(sch, new AqlOptions(options, null, env.defaults)));
    }
    return new Constraints<>(sch, l, new AqlOptions(options, null, env.defaults));
}
Also used : Att(catdata.aql.exp.SchExpRaw.Att) Ty(catdata.aql.exp.TyExpRaw.Ty) Fk(catdata.aql.exp.SchExpRaw.Fk) Sym(catdata.aql.exp.TyExpRaw.Sym) En(catdata.aql.exp.SchExpRaw.En) LinkedList(java.util.LinkedList) Constraints(catdata.aql.Constraints) AqlOptions(catdata.aql.AqlOptions) ED(catdata.aql.ED)

Aggregations

AqlOptions (catdata.aql.AqlOptions)1 Constraints (catdata.aql.Constraints)1 ED (catdata.aql.ED)1 Att (catdata.aql.exp.SchExpRaw.Att)1 En (catdata.aql.exp.SchExpRaw.En)1 Fk (catdata.aql.exp.SchExpRaw.Fk)1 Sym (catdata.aql.exp.TyExpRaw.Sym)1 Ty (catdata.aql.exp.TyExpRaw.Ty)1 LinkedList (java.util.LinkedList)1