public boolean tryOneTermVariant ( int variant , Declaration d , Map < String , CSSProperty > properties , Map < String , Term < ? > > values ) { // only one term is allowed if ( d . size ( ) != 1 ) return false ; // try inherit variant if ( checkInherit ( variant , d . get ( 0 ) , properties ) ) return true ; this . terms = new ArrayList < Term < ? > > ( ) ; this . terms . add ( d . get ( 0 ) ) ; return variant ( variant , new IntegerRef ( 0 ) , properties , values ) ; }
Uses variator functionality to test selected variant on term