blob: 0e4b00eb1aa5b983e9eb67f131cf8a66df94d31e (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
 | package semanticanalysis;
import ast.types.Type;
/**
 * Entry class for the symbol table.
 */
public class STentry {
    private Type type;
    private int offset;
    private int nesting;
    private String label;
    public STentry(Type type, int offset, int nesting) {
        this.type = type;
        this.offset = offset;
        this.nesting = nesting;
    }
    public STentry(Type type, int offset, int nesting, String label) {
        this.type = type;
        this.offset = offset;
        this.nesting = nesting;
        this.label = label;
    }
    /**
     * Getter for `type`
     */
    public Type getType() {
        return type;
    }
    /**
     * Getter for `offset`
     */
    public int getOffset() {
        return offset;
    }
    /**
     * Getter for `nesting`
     */
    public int getNesting() {
        return nesting;
    }
    /**
     * Getter for `label`
     */
    public String getLabel() {
        return label;
    }
}
 |