2 import IR.TypeDescriptor;
4 public class FlatLiteralNode extends FlatNode {
9 public FlatLiteralNode(TypeDescriptor type, Object o, TempDescriptor dst) {
15 public TypeDescriptor getType() {
19 public TempDescriptor getDst() {
23 public Object getValue() {
27 public String toString() {
28 String str = "FlatLiteralNode_"+dst;
32 str += "="+escapeString(value.toString());
35 protected static String escapeString(String st) {
37 for(int i=0; i<st.length(); i++) {
51 return FKind.FlatLiteralNode;
54 public TempDescriptor [] writesTemps() {
55 return new TempDescriptor[] {dst};