(CompiledST impl)
| 744 | } |
| 745 | |
| 746 | public ST createStringTemplate(CompiledST impl) { |
| 747 | ST st = new ST(); |
| 748 | st.impl = impl; |
| 749 | st.groupThatCreatedThisInstance = this; |
| 750 | if ( impl.formalArguments!=null ) { |
| 751 | st.locals = new Object[impl.formalArguments.size()]; |
| 752 | Arrays.fill(st.locals, ST.EMPTY_ATTR); |
| 753 | } |
| 754 | return st; |
| 755 | } |
| 756 | |
| 757 | /** Differentiate so we can avoid having creation events for regions, |
| 758 | * map operations, and other implicit "new ST" events during rendering. |
no test coverage detected