本文整理了Java中freemarker.core.Environment.outputInstructionStack()
方法的一些代码示例,展示了Environment.outputInstructionStack()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Environment.outputInstructionStack()
方法的具体详情如下:
包路径:freemarker.core.Environment
类名称:Environment
方法名:outputInstructionStack
[英]Prints the current FTL stack trace. Useful for debugging. TemplateExceptions incorporate this information in their stack traces.
[中]打印当前FTL堆栈跟踪。用于调试。TemplateException将此信息合并到其堆栈跟踪中。
代码示例来源:origin: org.freemarker/freemarker
public static void outputInstructionStack(
TemplateElement[] instructionStackSnapshot, boolean terseMode, Writer pw) {
Environment.outputInstructionStack(instructionStackSnapshot, terseMode, pw);
}
代码示例来源:origin: org.freemarker/freemarker
/**
* Prints the current FTL stack trace. Useful for debugging. {@link TemplateException}s incorporate this information
* in their stack traces.
*/
public void outputInstructionStack(PrintWriter pw) {
outputInstructionStack(getInstructionStackSnapshot(), false, pw);
pw.flush();
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.freemarker
public static void outputInstructionStack(
TemplateElement[] instructionStackSnapshot, boolean terseMode, Writer pw) {
Environment.outputInstructionStack(instructionStackSnapshot, terseMode, pw);
}
代码示例来源:origin: org.freemarker/freemarker-gae
public static void outputInstructionStack(
TemplateElement[] instructionStackSnapshot, boolean terseMode, Writer pw) {
Environment.outputInstructionStack(instructionStackSnapshot, terseMode, pw);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.freemarker
/**
* Prints the current FTL stack trace. Useful for debugging. {@link TemplateException}s incorporate this information
* in their stack traces.
*/
public void outputInstructionStack(PrintWriter pw) {
outputInstructionStack(getInstructionStackSnapshot(), false, pw);
pw.flush();
}
代码示例来源:origin: org.freemarker/freemarker-gae
/**
* Prints the current FTL stack trace. Useful for debugging. {@link TemplateException}s incorporate this information
* in their stack traces.
*/
public void outputInstructionStack(PrintWriter pw) {
outputInstructionStack(getInstructionStackSnapshot(), false, pw);
pw.flush();
}
代码示例来源:origin: org.freemarker/com.springsource.freemarker
/**
* Constructs a TemplateException with both a description of the error
* that occurred and the underlying Exception that caused this exception
* to be raised.
*
* @param description the description of the error that occurred
* @param cause the underlying <code>Exception</code> that caused this
* exception to be raised
*/
public TemplateException(String description, Exception cause, Environment env) {
super(getDescription(description, cause));
causeException = cause;
this.env = env;
if(env != null)
{
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
env.outputInstructionStack(pw);
pw.flush();
ftlInstructionStack = sw.toString();
}
else
{
ftlInstructionStack = "";
}
}
内容来源于网络,如有侵权,请联系作者删除!