freemarker.core.Environment.pushElement()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(3.6k)|赞(0)|评价(0)|浏览(156)

本文整理了Java中freemarker.core.Environment.pushElement()方法的一些代码示例,展示了Environment.pushElement()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Environment.pushElement()方法的具体详情如下:
包路径:freemarker.core.Environment
类名称:Environment
方法名:pushElement

Environment.pushElement介绍

暂无

代码示例

代码示例来源:origin: org.freemarker/freemarker

  1. /**
  2. * "Visit" the template element.
  3. */
  4. void visit(TemplateElement element) throws IOException, TemplateException {
  5. // ATTENTION: This method body is manually "inlined" into visit(TemplateElement[]); keep them in sync!
  6. pushElement(element);
  7. try {
  8. TemplateElement[] templateElementsToVisit = element.accept(this);
  9. if (templateElementsToVisit != null) {
  10. for (TemplateElement el : templateElementsToVisit) {
  11. if (el == null) {
  12. break; // Skip unused trailing buffer capacity
  13. }
  14. visit(el);
  15. }
  16. }
  17. } catch (TemplateException te) {
  18. handleTemplateException(te);
  19. } finally {
  20. popElement();
  21. }
  22. // ATTENTION: This method body above is manually "inlined" into visit(TemplateElement[]); keep them in sync!
  23. }

代码示例来源:origin: org.freemarker/freemarker

  1. pushElement(macro);
  2. elementPushed = true;
  3. } else {
  4. pushElement(macro);
  5. elementPushed = true;

代码示例来源:origin: org.freemarker/freemarker

  1. pushElement(element);
  2. try {
  3. TemplateElement[] templateElementsToVisit = element.accept(this);

代码示例来源:origin: org.freemarker/com.springsource.freemarker

  1. /**
  2. * "Visit" the template element.
  3. */
  4. void visit(TemplateElement element)
  5. throws TemplateException, IOException
  6. {
  7. pushElement(element);
  8. try {
  9. element.accept(this);
  10. }
  11. catch (TemplateException te) {
  12. handleTemplateException(te);
  13. }
  14. finally {
  15. popElement();
  16. }
  17. }

代码示例来源:origin: org.freemarker/freemarker-gae

  1. /**
  2. * "Visit" the template element.
  3. */
  4. void visit(TemplateElement element) throws IOException, TemplateException {
  5. // ATTENTION: This method body is manually "inlined" into visit(TemplateElement[]); keep them in sync!
  6. pushElement(element);
  7. try {
  8. TemplateElement[] templateElementsToVisit = element.accept(this);
  9. if (templateElementsToVisit != null) {
  10. for (TemplateElement el : templateElementsToVisit) {
  11. if (el == null) {
  12. break; // Skip unused trailing buffer capacity
  13. }
  14. visit(el);
  15. }
  16. }
  17. } catch (TemplateException te) {
  18. handleTemplateException(te);
  19. } finally {
  20. popElement();
  21. }
  22. // ATTENTION: This method body above is manually "inlined" into visit(TemplateElement[]); keep them in sync!
  23. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.freemarker

  1. /**
  2. * "Visit" the template element.
  3. */
  4. void visit(TemplateElement element) throws IOException, TemplateException {
  5. // ATTENTION: This method body is manually "inlined" into visit(TemplateElement[]); keep them in sync!
  6. pushElement(element);
  7. try {
  8. TemplateElement[] templateElementsToVisit = element.accept(this);
  9. if (templateElementsToVisit != null) {
  10. for (TemplateElement el : templateElementsToVisit) {
  11. if (el == null) {
  12. break; // Skip unused trailing buffer capacity
  13. }
  14. visit(el);
  15. }
  16. }
  17. } catch (TemplateException te) {
  18. handleTemplateException(te);
  19. } finally {
  20. popElement();
  21. }
  22. // ATTENTION: This method body above is manually "inlined" into visit(TemplateElement[]); keep them in sync!
  23. }

代码示例来源:origin: org.freemarker/freemarker-gae

  1. pushElement(macro);
  2. elementPushed = true;
  3. } else {
  4. pushElement(macro);
  5. elementPushed = true;

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.freemarker

  1. pushElement(macro);
  2. elementPushed = true;
  3. } else {
  4. pushElement(macro);
  5. elementPushed = true;

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.freemarker

  1. pushElement(element);
  2. try {
  3. TemplateElement[] templateElementsToVisit = element.accept(this);

代码示例来源:origin: org.freemarker/freemarker-gae

  1. pushElement(element);
  2. try {
  3. TemplateElement[] templateElementsToVisit = element.accept(this);

代码示例来源:origin: org.freemarker/com.springsource.freemarker

  1. return;
  2. pushElement(macro);
  3. try {
  4. Macro.Context previousMacroContext = currentMacroContext;

相关文章

Environment类方法