01: package ro.infoiasi.donald.compiler.cfg;
02:
03: import java.util.*;
04:
05: public class SemanticAction {
06:
07: private String returnType;
08: private List labels;
09: private String code;
10: private int offset;
11:
12: public SemanticAction(String returnType, List labels, int offset,
13: String code) {
14: this .returnType = returnType;
15: this .labels = new LinkedList(labels);
16: this .offset = offset;
17: this .code = code;
18: }
19:
20: public String getReturnType() {
21: return returnType;
22: }
23:
24: public List getLabels() {
25: return labels;
26: }
27:
28: public int getOffset() {
29: return offset;
30: }
31:
32: public String getCode() {
33: return code;
34: }
35:
36: public String toString() {
37: return "{: " + code + " :}";
38: }
39: }
|