use of de.be4.classicalb.core.parser.node.APromotesMachineClause in project probparsers by bendisposto.
the class BMachine method addPromotesClause.
public void addPromotesClause(List<String> operationList) {
APromotesMachineClause promotes = new APromotesMachineClause();
List<PExpression> opList = new ArrayList<>();
for (String name : operationList) {
List<TIdentifierLiteral> idList = new ArrayList<>();
idList.add(new TIdentifierLiteral(name));
AIdentifierExpression idExpr = new AIdentifierExpression(idList);
opList.add(idExpr);
}
promotes.setOperationNames(opList);
this.parseUnit.getMachineClauses().add(promotes);
}
Aggregations