示例#1
0
 @Override
 public String inspect() {
   return "[AssignFromMember:"
       + lObjectName.inspect()
       + "="
       + rObjectName.inspect()
       + "."
       + rMemberName.inspect()
       + "]";
 }
示例#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;
 }
示例#3
0
文件: DoReturn.java 项目: godrin/pvm
  @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;
  }