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

Method show

output/java/1.4.13/STGroup.java:808–825  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

806 }
807
808 public String show() {
809 StringBuilder buf = new StringBuilder();
810 if ( imports.size()!= 0 ) buf.append(" : "+imports);
811 for (String name : templates.keySet()) {
812 CompiledST c = rawGetTemplate(name);
813 if ( c.isAnonSubtemplate || c==NOT_FOUND_ST ) continue;
814 int slash = name.lastIndexOf('/');
815 name = name.substring(slash+1, name.length());
816 buf.append(name);
817 buf.append('(');
818 if ( c.formalArguments!=null ) buf.append(Misc.join(c.formalArguments.values().iterator(), ","));
819 buf.append(')');
820 buf.append(" ::= <<"+Misc.newline);
821 buf.append(c.template+Misc.newline);
822 buf.append(">>"+Misc.newline);
823 }
824 return buf.toString();
825 }
826
827 public STErrorListener getListener() {
828 return errMgr.listener;

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