MCPcopy Create free account
hub / github.com/apache/pig / getMethodName

Method getMethodName

src/org/apache/pig/LoadFuncWrapper.java:102–111  ·  view source on GitHub ↗

Returns a method in the call stack at the given depth. Depth 0 will return the method that called this getMethodName, depth 1 the method that called it, etc... @param depth @return method name as String

(final int depth)

Source from the content-addressed store, hash-verified

100 * @return method name as String
101 */
102 protected String getMethodName(final int depth) {
103 final StackTraceElement[] ste = Thread.currentThread().getStackTrace();
104 int index;
105 if (Utils.isVendorIBM()) {
106 index = 3 + depth;
107 } else {
108 index = 2 + depth;
109 }
110 return ste[index].getMethodName();
111 }
112
113}

Callers 10

loadFuncMethod · 0.95
logCallerMethod · 0.45
setLastMethodCalledMethod · 0.45
setLastMethodCalledMethod · 0.45
getCurrentMethodNameMethod · 0.45
createOutputNameMethod · 0.45
storeMetadataMethod · 0.45
loadMetadataMethod · 0.45
methodNotImplementedMethod · 0.45

Calls 1

isVendorIBMMethod · 0.95

Tested by 6

logCallerMethod · 0.36
setLastMethodCalledMethod · 0.36
setLastMethodCalledMethod · 0.36
getCurrentMethodNameMethod · 0.36
createOutputNameMethod · 0.36