()
| 796 | } |
| 797 | |
| 798 | public String show() { |
| 799 | StringBuilder buf = new StringBuilder(); |
| 800 | if ( imports.size()!= 0 ) buf.append(" : "+imports); |
| 801 | for (String name : templates.keySet()) { |
| 802 | CompiledST c = rawGetTemplate(name); |
| 803 | if ( c.isAnonSubtemplate || c==NOT_FOUND_ST ) continue; |
| 804 | int slash = name.lastIndexOf('/'); |
| 805 | name = name.substring(slash+1, name.length()); |
| 806 | buf.append(name); |
| 807 | buf.append('('); |
| 808 | if ( c.formalArguments!=null ) buf.append(Misc.join(c.formalArguments.values().iterator(), ",")); |
| 809 | buf.append(')'); |
| 810 | buf.append(" ::= <<"+Misc.newline); |
| 811 | buf.append(c.template+Misc.newline); |
| 812 | buf.append(">>"+Misc.newline); |
| 813 | } |
| 814 | return buf.toString(); |
| 815 | } |
| 816 | |
| 817 | public STErrorListener getListener() { |
| 818 | return errMgr.listener; |
nothing calls this directly
no test coverage detected