public GroupElement [ ] getTransformedLhs ( LogicTransformer transformer , Map < String , Class < ? > > globals ) throws InvalidPatternException { //Moved to getExtendedLhs --final GroupElement cloned = (GroupElement) this.lhsRoot.clone(); return transformer . transform ( getExtendedLhs ( this , null ) , globals ) ; }
Uses the LogicTransformer to process the Rule patters - if no ORs are used this will return an array of a single AND element . If there are Ors it will return an And element for each possible logic branch . The processing uses as a clone of the Rule s patterns so they are not changed .