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