MCPcopy Index your code
hub / github.com/antlr/codebuff / show

Method show

output/java8/1.4.14/STGroup.java:818–835  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

816 }
817
818 public String show() {
819 StringBuilder buf = new StringBuilder();
820 if ( imports.size()!= 0 ) buf.append(" : "+imports);
821 for (String name : templates.keySet()) {
822 CompiledST c = rawGetTemplate(name);
823 if ( c.isAnonSubtemplate || c==NOT_FOUND_ST ) continue;
824 int slash = name.lastIndexOf('/');
825 name = name.substring(slash+1, name.length());
826 buf.append(name);
827 buf.append('(');
828 if ( c.formalArguments!=null ) buf.append(Misc.join(c.formalArguments.values().iterator(), ","));
829 buf.append(')');
830 buf.append(" ::= <<"+Misc.newline);
831 buf.append(c.template+Misc.newline);
832 buf.append(">>"+Misc.newline);
833 }
834 return buf.toString();
835 }
836
837 public STErrorListener getListener() {
838 return errMgr.listener;

Callers

nothing calls this directly

Calls 10

joinMethod · 0.95
sizeMethod · 0.65
keySetMethod · 0.65
iteratorMethod · 0.65
valuesMethod · 0.65
toStringMethod · 0.65
appendMethod · 0.45
rawGetTemplateMethod · 0.45
lastIndexOfMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected