Here you can find the source of getGetterName(Method mtd)
public static String getGetterName(Method mtd)
//package com.java2s; //License from project: Open Source License import java.lang.reflect.Method; public class Main { public static String getGetterName(Method mtd) { String name = mtd.getName(); if (name.startsWith("get")) { return Character.toLowerCase(name.charAt(3)) + name.substring(4); }//w w w . jav a 2s . com if (name.startsWith("is")) { return Character.toLowerCase(name.charAt(2)) + name.substring(3); } return null; } }