KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > ro > infoiasi > donald > compiler > cfg > SemanticAction


1 package ro.infoiasi.donald.compiler.cfg;
2
3 import java.util.*;
4
5 public class SemanticAction {
6     
7     private String JavaDoc returnType;
8     private List labels;
9     private String JavaDoc code;
10     private int offset;
11
12     public SemanticAction(String JavaDoc returnType, List labels, int offset, String JavaDoc code) {
13         this.returnType = returnType;
14         this.labels = new LinkedList(labels);
15         this.offset = offset;
16         this.code = code;
17     }
18     
19     public String JavaDoc getReturnType() {
20         return returnType;
21     }
22     
23     public List getLabels() {
24         return labels;
25     }
26     
27     public int getOffset() {
28         return offset;
29     }
30     
31     public String JavaDoc getCode() {
32         return code;
33     }
34     
35     public String JavaDoc toString() {
36         return "{: "+code+" :}";
37     }
38 }
39
Popular Tags