예제 #1
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;
 }
예제 #2
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;
  }