boolean function ( RuleContext arg0 , LanguageDependentFragment arg1 , LibraryLanguage arg2 ) { if ( arg1 . getSupportedLanguages ( ) . contains ( arg2 ) ) { return true ; } else { arg0 . attributeError ( "srini_string" , String . format ( "srini_string" , arg1 . getLabel ( ) , arg2 ) ) ; return false ; } }
checks that given dep supports the given language . concode_field_sep ImmutableSet<LibraryLanguage> languages concode_elem_sep String displayName concode_elem_sep Label label concode_field_sep Label getLabel concode_elem_sep ImmutableSet<LibraryLanguage> getSupportedLanguages concode_elem_sep String toString concode_elem_sep void depsSupportsLanguage