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

Method loadAbsoluteTemplateFile

output/java/1.4.19/STGroup.java:655–667  ·  view source on GitHub ↗

Load template file into this group using absolute fileName.

(String fileName)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

loadTemplateFileMethod · 0.95

Tested by

no test coverage detected