private static void createLanguageAliases ( TypeSpec . Builder type , Map < String , String > languageAliases ) { MethodSpec . Builder method = MethodSpec . methodBuilder ( "registerLanguageAliases" ) . addModifiers ( PRIVATE , STATIC ) ; for ( Map . Entry < String , String > entry : languageAliases . entrySet ( ) ) { method . addStatement ( "addLanguageAlias($S, $S)" , entry . getKey ( ) , entry . getValue ( ) ) ; } type . addMethod ( method . build ( ) ) ; }
Create language alias mapping .