1 package ro.infoiasi.donald.compiler.cfg; 2 3 import java.util.*; 4 5 public class SemanticAction { 6 7 private String returnType; 8 private List labels; 9 private String code; 10 private int offset; 11 12 public SemanticAction(String returnType, List labels, int offset, String code) { 13 this.returnType = returnType; 14 this.labels = new LinkedList(labels); 15 this.offset = offset; 16 this.code = code; 17 } 18 19 public String 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 getCode() { 32 return code; 33 } 34 35 public String toString() { 36 return "{: "+code+" :}"; 37 } 38 } 39 | Popular Tags |