private String makeGetterMethodName(Field field){
  String getterMethodPrefix;
  String fieldName=field.getName();
  if (isPrimitiveBooleanType(field)) {
    if (fieldName.matches("^is[A-Z]{1}.*$")) {
      fieldName=fieldName.substring(2);
    }
    getterMethodPrefix="is";
  }
 else {
    getterMethodPrefix="get";
  }
  if (fieldName.matches("^[a-z]{1}[A-Z]{1}.*")) {
    return getterMethodPrefix + fieldName;
  }
 else {
    return getterMethodPrefix + BaseUtility.capitalize(fieldName);
  }
}

private String makeGetterMethodName ( Field field ) { String getterMethodPrefix ; String fieldName = field . getName ( ) ; if ( isPrimitiveBooleanType ( field ) ) { if ( fieldName . matches ( "^is[A-Z]{1}.*$" ) ) { fieldName = fieldName . substring ( 2 ) ; } getterMethodPrefix = "is" ; } else { getterMethodPrefix = "get" ; } if ( fieldName . matches ( "^[a-z]{1}[A-Z]{1}.*" ) ) { return getterMethodPrefix + fieldName ; } else { return getterMethodPrefix + BaseUtility . capitalize ( fieldName ) ; } }
generate the getter method name by field , following the android studio rule .
