public String getBindMapperName ( BindTypeContext context , TypeName typeName ) { Converter < String , String > format = CaseFormat . UPPER_CAMEL . converterTo ( CaseFormat . LOWER_CAMEL ) ; TypeName bindMapperName = TypeUtility . mergeTypeNameWithSuffix ( typeName , BindTypeBuilder . SUFFIX ) ; String simpleName = format . convert ( TypeUtility . simpleName ( bindMapperName ) ) ; if ( ! alreadyGeneratedMethods . contains ( simpleName ) ) { alreadyGeneratedMethods . add ( simpleName ) ; if ( bindMapperName . equals ( beanTypeName ) ) { context . builder . addField ( FieldSpec . builder ( bindMapperName , simpleName , modifiers ) . addJavadoc ( "$T" , bindMapperName ) . initializer ( "this" ) . build ( ) ) ; } else { context . builder . addField ( FieldSpec . builder ( bindMapperName , simpleName , modifiers ) . addJavadoc ( "$T" , bindMapperName ) . initializer ( "$T.mapperFor($T.class)" , BinderUtils . class , typeName ) . build ( ) ) ; } } return simpleName ; }
Gets the bind mapper name .