use of org.kie.api.runtime.rule.Operator in project drools by kiegroup.
the class AlphaNode method calculateDeclaredMask.
public BitMask calculateDeclaredMask(Class modifiedClass, List<String> settableProperties) {
boolean typeBit = false;
if (constraint instanceof EvaluatorConstraint && ((EvaluatorConstraint) constraint).isSelf()) {
Operator op = ((EvaluatorConstraint) constraint).getEvaluator().getOperator();
if (op == IsAEvaluatorDefinition.ISA || op == IsAEvaluatorDefinition.NOT_ISA) {
typeBit = true;
}
}
BitMask mask = constraint.getListenedPropertyMask(modifiedClass, settableProperties);
return typeBit ? mask.set(PropertySpecificUtil.TRAITABLE_BIT) : mask;
}
Aggregations