use of de.be4.classicalb.core.parser.node.AConstantsContextClause in project prob2 by bendisposto.
the class ContextTranslator method processConstants.
private List<PContextClause> processConstants() {
List<PContextClause> constants = new ArrayList<>();
List<PExpression> concrete = new ArrayList<>();
List<PExpression> abstractC = new ArrayList<>();
for (EventBConstant eventBConstant : context.getConstants()) {
if (eventBConstant.isAbstract()) {
abstractC.add((PExpression) ((EventB) eventBConstant.getExpression()).getAst());
} else {
concrete.add((PExpression) ((EventB) eventBConstant.getExpression()).getAst());
}
}
constants.add(new AConstantsContextClause(concrete));
constants.add(new AAbstractConstantsContextClause(abstractC));
return constants;
}
Aggregations