KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sf > saxon > instruct > TraceInstruction


1 package net.sf.saxon.instruct;
2
3 import net.sf.saxon.expr.Expression;
4 import net.sf.saxon.trace.InstructionInfo;
5
6
7 /**
8  * A run-time instruction which wraps a real instruction and traces its entry and exit to the
9  * TraceListener
10  */

11
12 public class TraceInstruction extends TraceWrapper {
13
14     InstructionInfo details;
15
16     /**
17      * Create a Trace instruction
18      * @param child the "real" instruction to be traced
19      */

20
21     public TraceInstruction(Expression child, InstructionInfo details) {
22         this.child = child;
23         this.details = details;
24         adoptChildExpression(child);
25     }
26
27     /**
28      * Get the instruction details
29      */

30
31     public InstructionInfo getInstructionInfo() {
32         return details;
33     }
34
35
36 }
37
38 //
39
// The contents of this file are subject to the Mozilla Public License Version 1.0 (the "License");
40
// you may not use this file except in compliance with the License. You may obtain a copy of the
41
// License at http://www.mozilla.org/MPL/
42
//
43
// Software distributed under the License is distributed on an "AS IS" basis,
44
// WITHOUT WARRANTY OF ANY KIND, either express or implied.
45
// See the License for the specific language governing rights and limitations under the License.
46
//
47
// The Original Code is: all this file.
48
//
49
// The Initial Developer of the Original Code is Michael H. Kay.
50
//
51
// Portions created by (your name) are Copyright (C) (your legal entity). All Rights Reserved.
52
//
53
// Contributor(s): none.
54
//
55
Popular Tags