(CompiledST impl)
| 734 | } |
| 735 | |
| 736 | public ST createStringTemplate(CompiledST impl) { |
| 737 | ST st = new ST(); |
| 738 | st.impl = impl; |
| 739 | st.groupThatCreatedThisInstance = this; |
| 740 | if ( impl.formalArguments!=null ) { |
| 741 | st.locals = new Object[impl.formalArguments.size()]; |
| 742 | Arrays.fill(st.locals, ST.EMPTY_ATTR); |
| 743 | } |
| 744 | return st; |
| 745 | } |
| 746 | |
| 747 | /** Differentiate so we can avoid having creation events for regions, |
| 748 | * map operations, and other implicit "new ST" events during rendering. |
no test coverage detected