Note, this method should not be used by user application
260261262263264265266267268269270
String key = S.str(resource.getKey()); if (typeInference) { key += ParamTypeInferencer.uuid(); } RythmEngine engine = this.engine; TemplateClass tc = engine.classes().getByTemplate(key); if (null == tc) { tc = new TemplateClass(resource, engine); } tc.asTemplate(engine); return tc;
513514515516517518519520521522523
try { RythmEngine engine = engine(); if (!templateResource.isValid()) { // it is removed? isValid = false; engine.classes().remove(this); return false; } ICodeType type = engine.renderSettings.codeType(); if (null == type) { type = templateResource.codeType(engine());