MCPcopy Index your code
hub / github.com/antlr/codebuff / clone

Method clone

output/java8/1.4.15/CompiledST.java:135–142  ·  view source on GitHub ↗

Cloning the CompiledST for an ST instance allows ST#add to be called safely during interpretation for templates that do not contain formal arguments. @return A copy of the current CompiledST instance. The copy is a shallow copy, with the exception of the {@link #form

()

Source from the content-addressed store, hash-verified

133 */
134
135 @Override
136 public CompiledST clone() throws CloneNotSupportedException {
137 CompiledST clone = (CompiledST)super.clone();
138 if ( formalArguments!=null ) {
139 formalArguments = Collections.synchronizedMap(new LinkedHashMap<String, FormalArgument>(formalArguments));
140 }
141 return clone;
142 }
143
144
145 public void addImplicitlyDefinedTemplate(CompiledST sub) {

Callers 1

storeArgsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected