private void add ( ClassFilter filter ) { switch ( operator ) { case NOT : filters . add ( new NegationClassFilter ( filter ) ) ; operator = Operator . NONE ; break ; case OR : filters . set ( filters . size ( ) - 1 , new OrClassFilter ( filters . get ( filters . size ( ) - 1 ) , filter ) ) ; operator = Operator . NONE ; break ; default : filters . add ( filter ) ; break ; } }
Adds a new filter and applies current operator .