Here you can find the source of getSetterName(Method m)
private static String getSetterName(Method m)
//package com.java2s; //License from project: Open Source License import java.lang.reflect.*; public class Main { private static String getSetterName(Method m) { String name = m.getName(); if (name.substring(0, 3).equals("set")) name = name.substring(3);//from ww w . java2 s . c om return name; } }