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

Method show

output/java8/1.4.17/STGroup.java:820–837  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 10

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

Tested by

no test coverage detected