Here you can find the source of getGetterName(Method m)
private static String getGetterName(Method m)
//package com.java2s; //License from project: Open Source License import java.lang.reflect.*; public class Main { private static String getGetterName(Method m) { String name = m.getName(); if (name.substring(0, 3).equals("get")) name = name.substring(3);/*from ww w. j a v a 2 s . co m*/ else if (name.substring(0, 2).equals("is")) name = name.substring(2); return name; } }