01: /*
02: * @(#)LocalInfo.java 1.3 05/04/22
03: *
04: * Copyright (c) 1997-2005 Sun Microsystems, Inc. All Rights Reserved.
05: *
06: * See the file "LICENSE.txt" for information on usage and redistribution of
07: * this file, and for a DISCLAIMER OF ALL WARRANTIES.
08: */
09: package pnuts.compiler;
10:
11: class LocalInfo {
12: String symbol;
13: int map;
14: int index;
15: boolean initialized;
16: Frame frame;
17:
18: LocalInfo(String symbol, int map, Frame frame) {
19: this .symbol = symbol;
20: this .map = map;
21: this .index = -1;
22: this .initialized = false;
23: this .frame = frame;
24: }
25:
26: LocalInfo(String symbol, int map, int index, boolean initialized) {
27: this .symbol = symbol;
28: this .map = map;
29: this .index = index;
30: this .initialized = initialized;
31: }
32:
33: public String toString() {
34: return getClass().getName() + "[" + symbol + "," + map + ","
35: + index + "," + initialized + "]";
36: }
37: }
|