throw new RuntimeException( "Unknown pattern source " + patternSource );
}
private CompositeFactPattern parseExistentialElementDescr( ConditionalElementDescr conditionalDescr,
Map<String, String> boundParams ) {
CompositeFactPattern comp = conditionalDescr instanceof NotDescr ?
new CompositeFactPattern( CompositeFactPattern.COMPOSITE_TYPE_NOT ) :
conditionalDescr instanceof OrDescr ?
new CompositeFactPattern( CompositeFactPattern.COMPOSITE_TYPE_OR ) :
new CompositeFactPattern( CompositeFactPattern.COMPOSITE_TYPE_EXISTS );
addPatternToComposite( conditionalDescr, comp, boundParams );
return comp;
}