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

Method show

output/java/1.4.19/STGroup.java:828–845  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

826 }
827
828 public String show() {
829 StringBuilder buf = new StringBuilder();
830 if ( imports.size()!= 0 ) buf.append(" : "+imports);
831 for (String name : templates.keySet()) {
832 CompiledST c = rawGetTemplate(name);
833 if ( c.isAnonSubtemplate || c==NOT_FOUND_ST ) continue;
834 int slash = name.lastIndexOf('/');
835 name = name.substring(slash+1, name.length());
836 buf.append(name);
837 buf.append('(');
838 if ( c.formalArguments!=null ) buf.append(Misc.join(c.formalArguments.values().iterator(), ","));
839 buf.append(')');
840 buf.append(" ::= <<"+Misc.newline);
841 buf.append(c.template+Misc.newline);
842 buf.append(">>"+Misc.newline);
843 }
844 return buf.toString();
845 }
846
847 public STErrorListener getListener() {
848 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