String getterNameFor ( Element field ) { String methodNamePrefix = "get" ; if ( field . asType ( ) . getKind ( ) == TypeKind . BOOLEAN ) { methodNamePrefix = "is" ; } return methodNamePrefix + NameUtils . capitalize ( field . getSimpleName ( ) . toString ( ) ) ; }
The name of a getter for the given field .