public void swapType ( ) { if ( type . equals ( TYPE_AND ) ) { type = TYPE_OR ; } else if ( type . equals ( TYPE_OR ) ) { type = TYPE_AND ; } else { throw new Error ( "unknown type" ) ; } swapNot ( ) ; List < MtasSpanQuery > queryList = positiveQueryList ; positiveQueryList = negativeQueryList ; negativeQueryList = queryList ; for ( MtasCQLParserWordCondition c : conditionList ) { c . swapNot ( ) ; } simplified = false ; }
Swap type .