use of de.be4.classicalb.core.parser.node.APropertiesMachineClause in project probparsers by bendisposto.
the class BMachine method addPropertiesPredicates.
public void addPropertiesPredicates(Map<String, String> constantStringValues) {
if (constantStringValues.size() == 0) {
return;
}
APropertiesMachineClause clause = new APropertiesMachineClause();
this.parseUnit.getMachineClauses().add(clause);
List<PPredicate> predList = new ArrayList<>();
for (Entry<String, String> entry : constantStringValues.entrySet()) {
AIdentifierExpression identifier = createIdentifier(entry.getKey());
AStringExpression value = new AStringExpression(new TStringLiteral(entry.getValue()));
AEqualPredicate equal = new AEqualPredicate(identifier, value);
predList.add(equal);
}
clause.setPredicates(createConjunction(predList));
}
Aggregations