Esempio n. 1
0
 @Override
 public String inspect() {
   return "[AssignFromMember:"
       + lObjectName.inspect()
       + "="
       + rObjectName.inspect()
       + "."
       + rMemberName.inspect()
       + "]";
 }
Esempio n. 2
0
 @Override
 public Code toCode() {
   StringBuilder b = new StringBuilder();
   b.append(lObjectName.inlineCode()).append("=");
   b.append(rObjectName.inlineCode());
   if (rMemberName != null) {
     b.append(".").append(rMemberName.inlineCode());
   }
   Code c = new Code();
   c.add(b.toString());
   return c;
 }
Esempio n. 3
0
  @Override
  public Code toCode() {
    Code c = new Code();
    String cmd = "lreturn";
    if (type == Type.FAR) {
      cmd = "freturn";
    } else if (type == Type.EXCEPTION) {
      cmd = "ereturn";
    }

    c.add(cmd + " " + name.inlineCode());
    return c;
  }