use of org.btrplace.safeplace.spec.term.ExplodedSet in project scheduler by btrplace.
the class MyCstrSpecVisitor method visitSetInExtension.
@Override
public ExplodedSet visitSetInExtension(@NotNull CstrSpecParser.SetInExtensionContext ctx) {
List<Term> s = new ArrayList<>();
Type ty = null;
for (CstrSpecParser.TermContext t : ctx.term()) {
Term<?> tr = (Term<?>) visit(t);
if (ty == null) {
ty = tr.type();
}
assertEqualsTypes(t.getStart(), ty, tr.type());
s.add(tr);
}
return new ExplodedSet(s, ty);
}
Also used :
IntType(org.btrplace.safeplace.spec.type.IntType)
Type(org.btrplace.safeplace.spec.type.Type)
ListType(org.btrplace.safeplace.spec.type.ListType)
NodeStateType(org.btrplace.safeplace.spec.type.NodeStateType)
BoolType(org.btrplace.safeplace.spec.type.BoolType)
StringType(org.btrplace.safeplace.spec.type.StringType)
SetType(org.btrplace.safeplace.spec.type.SetType)
VMStateType(org.btrplace.safeplace.spec.type.VMStateType)
CstrSpecParser(org.btrplace.safeplace.spec.antlr.CstrSpecParser)
ArrayList(java.util.ArrayList)
ExplodedSet(org.btrplace.safeplace.spec.term.ExplodedSet)
Term(org.btrplace.safeplace.spec.term.Term)
ProtectedTerm(org.btrplace.safeplace.spec.term.ProtectedTerm)