KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sf > saxon > expr > StackFrame


1 package net.sf.saxon.expr;
2
3 import net.sf.saxon.instruct.SlotManager;
4 import net.sf.saxon.om.ValueRepresentation;
5
6 /**
7  * This class represents a stack frame holding details of the variables used in a function or in
8  * an XSLT template.
9  */

10
11 public class StackFrame {
12     protected SlotManager map;
13     protected ValueRepresentation[] slots;
14
15     public StackFrame (SlotManager map, ValueRepresentation[] slots) {
16         this.map = map;
17         this.slots = slots;
18     }
19
20     public SlotManager getStackFrameMap() {
21         return map;
22     }
23
24     public ValueRepresentation[] getStackFrameValues() {
25         return slots;
26     }
27
28     public static final StackFrame EMPTY = new StackFrame(null, ValueRepresentation.EMPTY_VALUE_ARRAY);
29 }
30
31 //
32
// The contents of this file are subject to the Mozilla Public License Version 1.0 (the "License");
33
// you may not use this file except in compliance with the License. You may obtain a copy of the
34
// License at http://www.mozilla.org/MPL/
35
//
36
// Software distributed under the License is distributed on an "AS IS" basis,
37
// WITHOUT WARRANTY OF ANY KIND, either express or implied.
38
// See the License for the specific language governing rights and limitations under the License.
39
//
40
// The Original Code is: all this file.
41
//
42
// The Initial Developer of the Original Code is Michael H. Kay.
43
//
44
// Portions created by (your name) are Copyright (C) (your legal entity). All Rights Reserved.
45
//
46
// Contributor(s): none.
47
//
Popular Tags