Android Method Name Create getMethodNameMinusGet(Method aMethod)

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

Description

get Method Name Minus Get

License

LGPL

Declaration

private static String getMethodNameMinusGet(Method aMethod) 

Method Source Code

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

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 ww  w  .  j ava2  s  .  co  m*/
        return result;
    }
}

Related

  1. asCamelifyGetMethod(String original)
  2. asCamelifySetMethod(String original)
  3. getMethodName()
  4. getMethodName(String stmt)