“代码”探测对象

代码探测对象包含探测片段的 Java 源代码。

“代码”对象是必需的。源代码可以使用片段的“数据”对象中提供的名称访问数据项。

探测片段只可以有一个“代码”对象。

示例
<code>
   System.out.println("Entered " + __class + "." + __method);
   System.out.println("There are " + __args.length + " arguments");
   call_counter++;
   System.out.println("This probe has tracked " + call_counter + " calls.");
</code>

父主题:Probekit 元素参考

使用条款 | 反馈
(C) Copyright IBM Corporation 2000, 2004. All Rights Reserved.