Here you can find the source of getMethodSubjectName(Method method)
private static String getMethodSubjectName(Method method)
//package com.java2s; //copy, modify, merge, publish, distribute, sublicense, and/or sell import java.lang.reflect.Method; public class Main { private static String getMethodSubjectName(Method method) { String subjectName;/*w w w . j a v a 2s . c om*/ String methodName = method.getName(); if (methodName.startsWith("get")) subjectName = methodName.substring(3); else if (methodName.startsWith("is")) subjectName = methodName.substring(2); else subjectName = methodName; if ((subjectName.length() > 1) && (Character.isLowerCase(subjectName.charAt(1)))) subjectName = Character.toLowerCase(subjectName.charAt(0)) + subjectName.substring(1); return subjectName; } }