List of utility methods to do Method Name Create
String | asCamelifyGetMethod(String original) as Camelify Get Method return GET + camelify(original);
|
String | asCamelifySetMethod(String original) as Camelify Set Method return SET + camelify(original);
|
String | getMethodName() get Method Name return new Exception().getStackTrace()[0].getMethodName(); |
String | getMethodName(String stmt) get Method Name int endPos = stmt.toString().indexOf('('); int startPos = stmt.toString().lastIndexOf(' ', endPos); return stmt.toString().substring(startPos + 1, endPos); |
String | getMethodNameMinusGet(Method aMethod) get Method Name Minus Get String result = aMethod.getName(); if (result.startsWith(fGET)) { result = result.substring(fGET.length()); return result; |