Java Reflection Method Setter Get getSetterName(Field field)

Here you can find the source of getSetterName(Field field)

Description

get Setter Name

License

Apache License

Declaration

public static String getSetterName(Field field) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.lang.reflect.Field;

import java.util.Locale;

public class Main {
    public static String getSetterName(Field field) {
        String name = field.getName();
        return "set" + name.substring(0, 1).toUpperCase(Locale.US) + name.substring(1);
    }//from   w ww.ja va 2s  . c  o m
}

Related

  1. getSetterMethods(Class clazz)
  2. getSetterMethods(Class clazz)
  3. getSetterMethods(Class objectType)
  4. getSetterMethods(Class pojoClass)
  5. getSetterMethods(final Class clazz)
  6. getSetterName(final Field field)
  7. getSetterName(Method m)
  8. getSetterName(Method m)
  9. getSetterName(Method method)