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 參照

Copyright IBM Corporation and others 2000, 2004.