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