Android Method Name Create getMethodName(String stmt)

Here you can find the source of getMethodName(String stmt)

Description

get Method Name

Declaration

public static String getMethodName(String stmt) 

Method Source Code

//package com.java2s;

public class Main {
    public static String getMethodName(String stmt) {

        int endPos = stmt.toString().indexOf('(');
        int startPos = stmt.toString().lastIndexOf(' ', endPos);

        return stmt.toString().substring(startPos + 1, endPos);

    }//w ww.  j  a va  2s  .  c o  m
}

Related

  1. asCamelifyGetMethod(String original)
  2. asCamelifySetMethod(String original)
  3. getMethodName()
  4. getMethodNameMinusGet(Method aMethod)