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