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

Method unload

output/java8/1.4.13/STGroup.java:274–284  ·  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 for (STGroup imp : importsToClearOnUnload) {
281 imports.remove(imp);
282 }
283 importsToClearOnUnload.clear();
284 }
285
286 /** Load st from disk if directory or load whole group file if .stg file (then
287 * 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