use of de.be4.classicalb.core.parser.node.ABooleanTrueExpression in project probparsers by bendisposto.
the class ASTBuilder method addBooleanPreferenceDefinition.
public static void addBooleanPreferenceDefinition(IDefinitions iDefinitions, String name, boolean bool) {
AExpressionDefinitionDefinition def = new AExpressionDefinitionDefinition(new TIdentifierLiteral(name), new ArrayList<PExpression>(), bool ? new ABooleanTrueExpression() : new ABooleanFalseExpression());
iDefinitions.addDefinition(def, IDefinitions.Type.Expression);
}
Aggregations