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

Method loadAbsoluteTemplateFile

output/java8/1.4.15/STGroup.java:647–659  ·  view source on GitHub ↗

Load template file into this group using absolute fileName.

(String fileName)

Source from the content-addressed store, hash-verified

645 /** Load template file into this group using absolute {@code fileName}. */
646
647 public CompiledST loadAbsoluteTemplateFile(String fileName) {
648 ANTLRFileStream fs;
649 try {
650 fs = new ANTLRFileStream(fileName, encoding);
651 fs.name = fileName;
652 }
653 catch (IOException ioe) {
654 // doesn't exist
655 //errMgr.IOError(null, ErrorType.NO_SUCH_TEMPLATE, ioe, fileName);
656 return null;
657 }
658 return loadTemplateFile("", fileName, fs);
659 }
660
661 /** Load template stream into this group. {@code unqualifiedFileName} is
662 * {@code "a.st"}. The {@code prefix} is path from group root to

Callers

nothing calls this directly

Calls 1

loadTemplateFileMethod · 0.45

Tested by

no test coverage detected