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() {
31 return dst+"="+escapeString(value.toString());
33 protected static String escapeString(String st) {
35 for(int i=0;i<st.length();i++) {
49 return FKind.FlatLiteralNode;
52 public TempDescriptor [] writesTemps() {
53 return new TempDescriptor[] {dst};