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

Method createStringTemplate

output/java/1.4.17/STGroup.java:761–770  ·  view source on GitHub ↗
(CompiledST impl)

Source from the content-addressed store, hash-verified

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

Callers 6

getInstanceOfMethod · 0.95
getInstanceOfMethod · 0.95
getInstanceOfMethod · 0.95
getInstanceOfMethod · 0.95
getInstanceOfMethod · 0.95

Calls 1

sizeMethod · 0.65

Tested by

no test coverage detected