use of org.drools.modelcompiler.builder.generator.visitor.DSLNode in project drools by kiegroup.
the class FlowDSLPattern method buildConstraint.
private void buildConstraint(PatternDescr pattern, Class<?> patternType, PatternConstraintParseResult patternConstraintParseResult) {
DrlxParseResult drlxParseResult1 = patternConstraintParseResult.getDrlxParseResult();
String expression = patternConstraintParseResult.getExpression();
drlxParseResult1.accept(drlxParseResult -> {
DSLNode constraint;
if (drlxParseResult.getExpr() instanceof OOPathExpr) {
constraint = new ConstraintOOPath(context, packageModel, pattern, patternType, patternConstraintParseResult, expression, drlxParseResult);
} else {
constraint = new FlowDSLSimpleConstraint(context, pattern, drlxParseResult);
}
constraint.buildPattern();
});
}
use of org.drools.modelcompiler.builder.generator.visitor.DSLNode in project drools by kiegroup.
the class PatternDSLPattern method buildConstraint.
private void buildConstraint(PatternDescr pattern, Class<?> patternType, PatternConstraintParseResult patternConstraintParseResult) {
DrlxParseResult drlxParseResult1 = patternConstraintParseResult.getDrlxParseResult();
String expression = patternConstraintParseResult.getExpression();
drlxParseResult1.accept(drlxParseResult -> {
DSLNode constraint;
if (drlxParseResult.getExpr() instanceof OOPathExpr) {
constraint = new ConstraintOOPath(context, packageModel, pattern, patternType, patternConstraintParseResult, expression, drlxParseResult);
} else {
constraint = new PatternDSLSimpleConstraint(context, pattern, drlxParseResult);
}
constraint.buildPattern();
});
}
Aggregations