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

Method toString

src/org/apache/pig/parser/SourceLocation.java:69–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67 }
68
69 @Override
70 public String toString() {
71 if( line == -1 )
72 return "";
73
74 StringBuilder sb = new StringBuilder();
75 if (node != null) {
76 InvocationPoint pt = node.getNextInvocationPoint();
77 while (pt != null) {
78 sb.append("at expanding macro '" + pt.getMacro() + "' ("
79 + pt.getFile() + ":" + pt.getLine() + ")");
80 pt = node.getNextInvocationPoint();
81 sb.append("\n");
82 }
83 }
84 sb.append( "<" );
85 if( file != null && !file.isEmpty() )
86 sb.append( "file " + file + ", " );
87 sb.append( "line " + line +", column " + offset + "> " );
88
89 return sb.toString();
90 }
91
92}

Callers 13

msgHeaderMethod · 0.45
macroImportMethod · 0.45
getErrorMessageMethod · 0.45
parseRegisterMethod · 0.45
resolvesToJarMethod · 0.45
newOperatorKeyMethod · 0.45
getResultMethod · 0.45
processPigMethod · 0.45
getCurrentDirMethod · 0.45
generateErrorHeaderMethod · 0.45
substituteParamsMethod · 0.45

Calls 6

getMacroMethod · 0.95
getFileMethod · 0.95
getLineMethod · 0.95
appendMethod · 0.65
isEmptyMethod · 0.45

Tested by

no test coverage detected