use of lucee.transformer.bytecode.statement.tag.Tag in project Lucee by lucee.
the class AbstrCFMLScriptTransformer method getTag.
private final Tag getTag(ExprData data, Body parent, TagLibTag tlt, Position start, Position end) throws TemplateException {
try {
Tag tag = tlt.getTag(data.factory, start, end);
tag.setParent(parent);
return tag;
} catch (TagLibException e) {
throw new TemplateException(data.srcCode, e);
}
/*if(StringUtil.isEmpty(tlt.getTttClassName()))tag= new TagBase(line);
else {
try {
Class<Tag> clazz = ClassUtil.loadClass(tlt.getTttClassName());
Constructor<Tag> constr = clazz.getConstructor(new Class[]{Position.class});
tag = constr.newInstance(new Object[]{line});
}
catch (Exception e) {
SystemOut.printDate(e);
tag= new TagBase(line);
}
}*/
}
Aggregations