程序包 org.beetl.ext.fn

类 DebugFunction

java.lang.Object
org.beetl.ext.fn.DebugFunction
所有已实现的接口:
Function, Function.LineAware

public class DebugFunction extends Object implements Function, Function.LineAware
在控制台输出对象,如
 <% debug(user)%>,
 
该方法输出该方法的行数,以及对象的toString返回的字符串:
 System.out.println(paras[0].toString());
 
可以调用DebugFunction.enable = false ,来禁止输出
作者:
xiandafu
  • 字段详细资料

    • enable

      public static boolean enable
  • 构造器详细资料

    • DebugFunction

      public DebugFunction()
  • 方法详细资料