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

Method unload

output/java8/1.4.17/STGroup.java:274–285  ·  view source on GitHub ↗

Unload all templates, dictionaries and import relationships, but leave renderers and adaptors. This essentially forces the next call to #getInstanceOf to reload templates. Call unload() on each group in the #imports list, and remove all elements in {@link #importsToClearOnUnl

()

Source from the content-addressed store, hash-verified

272 */
273
274 public synchronized void unload() {
275 templates.clear();
276 dictionaries.clear();
277 for (STGroup imp : imports) {
278 imp.unload();
279 }
280
281 for (STGroup imp : importsToClearOnUnload) {
282 imports.remove(imp);
283 }
284 importsToClearOnUnload.clear();
285 }
286
287 /** Load st from disk if directory or load whole group file if .stg file (then
288 * return just one template). {@code name} is fully-qualified.

Callers

nothing calls this directly

Calls 2

clearMethod · 0.65
removeMethod · 0.65

Tested by

no test coverage detected