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

Method show

output/java8/1.4.12/STGroup.java:798–815  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

796 }
797
798 public String show() {
799 StringBuilder buf = new StringBuilder();
800 if ( imports.size()!= 0 ) buf.append(" : "+imports);
801 for (String name : templates.keySet()) {
802 CompiledST c = rawGetTemplate(name);
803 if ( c.isAnonSubtemplate || c==NOT_FOUND_ST ) continue;
804 int slash = name.lastIndexOf('/');
805 name = name.substring(slash+1, name.length());
806 buf.append(name);
807 buf.append('(');
808 if ( c.formalArguments!=null ) buf.append(Misc.join(c.formalArguments.values().iterator(), ","));
809 buf.append(')');
810 buf.append(" ::= <<"+Misc.newline);
811 buf.append(c.template+Misc.newline);
812 buf.append(">>"+Misc.newline);
813 }
814 return buf.toString();
815 }
816
817 public STErrorListener getListener() {
818 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