MCPcopy Create free account
hub / github.com/antlr/codebuff / toString

Method toString

output/java/1.4.17/JTreeSTModel.java:59–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57 }
58
59 @Override
60 public String toString() {
61 ST st = event.scope.st;
62 if ( st.isAnonSubtemplate() ) return "{...}";
63 if ( st.debugState!=null && st.debugState.newSTEvent!=null ) {
64 String label = st.toString()+" @ "+st.debugState.newSTEvent.getFileName()+":" +
65 st.debugState.newSTEvent.getLine();
66 return "<html><b>" +
67 StringRenderer.escapeHTML(label)+"</b></html>";
68 }
69 else {
70 return st.toString();
71 }
72 }
73 }
74
75

Callers

nothing calls this directly

Calls 5

isAnonSubtemplateMethod · 0.95
toStringMethod · 0.95
escapeHTMLMethod · 0.95
getFileNameMethod · 0.45
getLineMethod · 0.45

Tested by

no test coverage detected