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

Method show

output/java/1.4.17/STGroup.java:823–840  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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