MCPcopy Create free account
hub / github.com/antlr/codebuff / createStringTemplate

Method createStringTemplate

output/java/1.4.12/STGroup.java:746–755  ·  view source on GitHub ↗
(CompiledST impl)

Source from the content-addressed store, hash-verified

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.

Callers 1

Calls 1

sizeMethod · 0.65

Tested by

no test coverage detected