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

Method show

output/java/1.4.15/STGroup.java:822–839  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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