本文整理了Java中freemarker.core.Environment.pushElement()
方法的一些代码示例,展示了Environment.pushElement()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Environment.pushElement()
方法的具体详情如下:
包路径:freemarker.core.Environment
类名称:Environment
方法名:pushElement
暂无
代码示例来源:origin: org.freemarker/freemarker
/**
* "Visit" the template element.
*/
void visit(TemplateElement element) throws IOException, TemplateException {
// ATTENTION: This method body is manually "inlined" into visit(TemplateElement[]); keep them in sync!
pushElement(element);
try {
TemplateElement[] templateElementsToVisit = element.accept(this);
if (templateElementsToVisit != null) {
for (TemplateElement el : templateElementsToVisit) {
if (el == null) {
break; // Skip unused trailing buffer capacity
}
visit(el);
}
}
} catch (TemplateException te) {
handleTemplateException(te);
} finally {
popElement();
}
// ATTENTION: This method body above is manually "inlined" into visit(TemplateElement[]); keep them in sync!
}
代码示例来源:origin: org.freemarker/freemarker
pushElement(macro);
elementPushed = true;
} else {
pushElement(macro);
elementPushed = true;
代码示例来源:origin: org.freemarker/freemarker
pushElement(element);
try {
TemplateElement[] templateElementsToVisit = element.accept(this);
代码示例来源:origin: org.freemarker/com.springsource.freemarker
/**
* "Visit" the template element.
*/
void visit(TemplateElement element)
throws TemplateException, IOException
{
pushElement(element);
try {
element.accept(this);
}
catch (TemplateException te) {
handleTemplateException(te);
}
finally {
popElement();
}
}
代码示例来源:origin: org.freemarker/freemarker-gae
/**
* "Visit" the template element.
*/
void visit(TemplateElement element) throws IOException, TemplateException {
// ATTENTION: This method body is manually "inlined" into visit(TemplateElement[]); keep them in sync!
pushElement(element);
try {
TemplateElement[] templateElementsToVisit = element.accept(this);
if (templateElementsToVisit != null) {
for (TemplateElement el : templateElementsToVisit) {
if (el == null) {
break; // Skip unused trailing buffer capacity
}
visit(el);
}
}
} catch (TemplateException te) {
handleTemplateException(te);
} finally {
popElement();
}
// ATTENTION: This method body above is manually "inlined" into visit(TemplateElement[]); keep them in sync!
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.freemarker
/**
* "Visit" the template element.
*/
void visit(TemplateElement element) throws IOException, TemplateException {
// ATTENTION: This method body is manually "inlined" into visit(TemplateElement[]); keep them in sync!
pushElement(element);
try {
TemplateElement[] templateElementsToVisit = element.accept(this);
if (templateElementsToVisit != null) {
for (TemplateElement el : templateElementsToVisit) {
if (el == null) {
break; // Skip unused trailing buffer capacity
}
visit(el);
}
}
} catch (TemplateException te) {
handleTemplateException(te);
} finally {
popElement();
}
// ATTENTION: This method body above is manually "inlined" into visit(TemplateElement[]); keep them in sync!
}
代码示例来源:origin: org.freemarker/freemarker-gae
pushElement(macro);
elementPushed = true;
} else {
pushElement(macro);
elementPushed = true;
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.freemarker
pushElement(macro);
elementPushed = true;
} else {
pushElement(macro);
elementPushed = true;
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.freemarker
pushElement(element);
try {
TemplateElement[] templateElementsToVisit = element.accept(this);
代码示例来源:origin: org.freemarker/freemarker-gae
pushElement(element);
try {
TemplateElement[] templateElementsToVisit = element.accept(this);
代码示例来源:origin: org.freemarker/com.springsource.freemarker
return;
pushElement(macro);
try {
Macro.Context previousMacroContext = currentMacroContext;
内容来源于网络,如有侵权,请联系作者删除!