package IR.Flat; import IR.TypeDescriptor; public class FlatLiteralNode extends FlatNode { Object value; TypeDescriptor type; TempDescriptor dst; public FlatLiteralNode(TypeDescriptor type, Object o, TempDescriptor dst) { this.type=type; value=o; this.dst=dst; } public TypeDescriptor getType() { return type; } public TempDescriptor getDst() { return dst; } public Object getValue() { return value; } public String toString() { String str = "FlatLiteralNode_"+dst; if (value==null) str += "=null"; else str += "="+escapeString(value.toString()); return str; } protected static String escapeString(String st) { String new_st=""; for(int i=0;i