(CompiledST impl)
| 763 | } |
| 764 | |
| 765 | public ST createStringTemplate(CompiledST impl) { |
| 766 | ST st = new ST(); |
| 767 | st.impl = impl; |
| 768 | st.groupThatCreatedThisInstance = this; |
| 769 | if ( impl.formalArguments!=null ) { |
| 770 | st.locals = new Object[impl.formalArguments.size()]; |
| 771 | Arrays.fill(st.locals, ST.EMPTY_ATTR); |
| 772 | } |
| 773 | return st; |
| 774 | } |
| 775 | |
| 776 | /** Differentiate so we can avoid having creation events for regions, |
| 777 | * map operations, and other implicit "new ST" events during rendering. |
no test coverage detected