Code 探針物件

Code 探針物件包含探針片段的 Java 程式碼。

Code 物件是必要的。程式碼可以使用片段之 Data 物件中所提供的名稱,來存取資料項目。

探針片段只能有一個 Code 物件。

範例
<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 元素參照

Terms of use | Feedback
(C) Copyright IBM Corporation 2000, 2004. All Rights Reserved.