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

Method indent

src/org/apache/pig/scripting/js/JsFunction.java:119–125  ·  view source on GitHub ↗

generates a String of white spaces for debugging indentation @param depth the call depth @return a string of spaces of length 2 depth

(int depth)

Source from the content-addressed store, hash-verified

117 * @return a string of spaces of length 2*depth
118 */
119 private String indent(int depth) {
120 StringBuffer b = new StringBuffer(depth*2);
121 for (int i = 0; i < depth * 2; i++) {
122 b.append(' ');
123 }
124 return b.toString();
125 }
126
127 /**
128 * debug utility to display a JS object

Callers 3

debugConvertPigToJSMethod · 0.95
debugConvertJSToPigMethod · 0.95
debugReturnMethod · 0.95

Calls 2

appendMethod · 0.65
toStringMethod · 0.45

Tested by

no test coverage detected