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

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

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

Environment.isBeforeIcI2322介绍

暂无

代码示例

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

  1. /**
  2. * Processes a Template in the context of this <code>Environment</code>, including its output in the
  3. * <code>Environment</code>'s Writer.
  4. *
  5. * @param includedTemplate
  6. * the template to process. Note that it does <em>not</em> need to be a template returned by
  7. * {@link #getTemplateForInclusion(String name, String encoding, boolean parse)}.
  8. */
  9. public void include(Template includedTemplate)
  10. throws TemplateException, IOException {
  11. final Template prevTemplate;
  12. final boolean parentReplacementOn = isBeforeIcI2322();
  13. prevTemplate = getTemplate();
  14. if (parentReplacementOn) {
  15. setParent(includedTemplate);
  16. } else {
  17. legacyParent = includedTemplate;
  18. }
  19. importMacros(includedTemplate);
  20. try {
  21. visit(includedTemplate.getRootTreeNode());
  22. } finally {
  23. if (parentReplacementOn) {
  24. setParent(prevTemplate);
  25. } else {
  26. legacyParent = prevTemplate;
  27. }
  28. }
  29. }

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

  1. final boolean parentReplacementOn = isBeforeIcI2322();
  2. prevParent = getParent();
  3. if (parentReplacementOn) {

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

  1. /**
  2. * Processes a Template in the context of this <code>Environment</code>, including its output in the
  3. * <code>Environment</code>'s Writer.
  4. *
  5. * @param includedTemplate
  6. * the template to process. Note that it does <em>not</em> need to be a template returned by
  7. * {@link #getTemplateForInclusion(String name, String encoding, boolean parse)}.
  8. */
  9. public void include(Template includedTemplate)
  10. throws TemplateException, IOException {
  11. final Template prevTemplate;
  12. final boolean parentReplacementOn = isBeforeIcI2322();
  13. prevTemplate = getTemplate();
  14. if (parentReplacementOn) {
  15. setParent(includedTemplate);
  16. } else {
  17. legacyParent = includedTemplate;
  18. }
  19. importMacros(includedTemplate);
  20. try {
  21. visit(includedTemplate.getRootTreeNode());
  22. } finally {
  23. if (parentReplacementOn) {
  24. setParent(prevTemplate);
  25. } else {
  26. legacyParent = prevTemplate;
  27. }
  28. }
  29. }

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

  1. /**
  2. * Processes a Template in the context of this <code>Environment</code>, including its output in the
  3. * <code>Environment</code>'s Writer.
  4. *
  5. * @param includedTemplate
  6. * the template to process. Note that it does <em>not</em> need to be a template returned by
  7. * {@link #getTemplateForInclusion(String name, String encoding, boolean parse)}.
  8. */
  9. public void include(Template includedTemplate)
  10. throws TemplateException, IOException {
  11. final Template prevTemplate;
  12. final boolean parentReplacementOn = isBeforeIcI2322();
  13. prevTemplate = getTemplate();
  14. if (parentReplacementOn) {
  15. setParent(includedTemplate);
  16. } else {
  17. legacyParent = includedTemplate;
  18. }
  19. importMacros(includedTemplate);
  20. try {
  21. visit(includedTemplate.getRootTreeNode());
  22. } finally {
  23. if (parentReplacementOn) {
  24. setParent(prevTemplate);
  25. } else {
  26. legacyParent = prevTemplate;
  27. }
  28. }
  29. }

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

  1. final boolean parentReplacementOn = isBeforeIcI2322();
  2. prevParent = getParent();
  3. if (parentReplacementOn) {

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

  1. final boolean parentReplacementOn = isBeforeIcI2322();
  2. prevParent = getParent();
  3. if (parentReplacementOn) {

相关文章

Environment类方法