use of org.stringtemplate.v4.STGroupFile in project antlr4 by antlr.
the class Target method templatesExist.
public boolean templatesExist() {
String groupFileName = CodeGenerator.TEMPLATE_ROOT + "/" + getLanguage() + "/" + getLanguage() + STGroup.GROUP_FILE_EXTENSION;
STGroup result = null;
try {
result = new STGroupFile(groupFileName);
} catch (IllegalArgumentException iae) {
result = null;
}
return result != null;
}
Aggregations