public ST createStringTemplate(CompiledST impl) {
   ST st = new ST();
   st.impl = impl;
   st.groupThatCreatedThisInstance = this;
   if (impl.formalArguments != null) {
     st.locals = new Object[impl.formalArguments.size()];
     Arrays.fill(st.locals, ST.EMPTY_ATTR);
   }
   return st;
 }
Exemple #2
0
 static {
   Arrays.fill(connections, null);
 }