public boolean tryMultiTermVariant ( int variant , Map < String , CSSProperty > properties , Map < String , Term < ? > > values , Term < ? > ... terms ) { this . terms = Arrays . asList ( terms ) ; // try inherit variant if ( this . terms . size ( ) == 1 && checkInherit ( variant , this . terms . get ( 0 ) , properties ) ) return true ; return variant ( variant , new IntegerRef ( 0 ) , properties , values ) ; }
Uses variator functionality to test selected variant on more terms . This is used when variant is represented by more terms . Since usually only one term per variant is used only one multiple variant is allowed per variator and should be placed as the last one