()
| 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; |
nothing calls this directly
no test coverage detected