Java Reflection Method Name getMethodNameMinusGet(Method aMethod)

Here you can find the source of getMethodNameMinusGet(Method aMethod)

Description

get Method Name Minus Get

License

Apache License

Declaration

private static String getMethodNameMinusGet(Method aMethod) 

Method Source Code

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

import java.lang.reflect.Method;

public class Main {
    private static final String fGET = "get";

    private static String getMethodNameMinusGet(Method aMethod) {
        String result = aMethod.getName();
        if (result.startsWith(fGET)) {
            result = result.substring(fGET.length());
        }//from   w w w.  j  av a 2  s . c  o  m
        return result;
    }
}

Related

  1. getMethodName(Method method)
  2. getMethodName(Method method, boolean useSegment, String segment, String value)
  3. getMethodName(String prefix, String fieldName)
  4. getMethodNameAndDescriptor(Method m)
  5. getMethodNameList(Class theClass)
  6. getMethodNames(Class cls, boolean insertDefaultValues)
  7. getMethodNames(Class cls)
  8. getMethodNameWithClassName(Method a_Method)
  9. getMethodOnlyByName(Class c, String methodName)