The Code probe object

The Code probe object contains the Java source code for the probe fragment.

The Code object is required. The source code can access data items using the names provided in the fragment's Data objects.

A probe fragment can have only one Code object.

Example
<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>

Parent topic: Probekit element reference

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