예제 #1
0
 public void toString(StringBuffer s) {
   s.append("return ");
   if (hasResult()) {
     getResult().toString(s);
   }
   s.append(";\n");
 }
 public void toString(StringBuffer s) {
   s.append("<");
   for (int i = 0; i < getNumTypeArgument(); i++) {
     if (i != 0) s.append(", ");
     getTypeArgument(i).toString(s);
   }
   s.append(">");
   super.toString(s);
 }
예제 #3
0
파일: IfStmt.java 프로젝트: h-inoue/JCop
 public void toString(StringBuffer s) {
   s.append("if(");
   getCondition().toString(s);
   s.append(") ");
   getThen().toString(s);
   if (hasElse()) {
     s.append(indent());
     s.append("else ");
     getElse().toString(s);
   }
 }
예제 #4
0
 /**
  * @ast method
  * @aspect PrettyPrint
  * @declaredat /home/uoji/JastAddJ/Java1.4Frontend/PrettyPrint.jadd:89
  */
 public void toString(StringBuffer s) {
   s.append(indent());
   getModifiers().toString(s);
   s.append("interface " + name());
   if (getNumSuperInterfaceId() > 0) {
     s.append(" extends ");
     getSuperInterfaceId(0).toString(s);
     for (int i = 1; i < getNumSuperInterfaceId(); i++) {
       s.append(", ");
       getSuperInterfaceId(i).toString(s);
     }
   }
   ppBodyDecls(s);
 }
예제 #5
0
 /**
  * @ast method
  * @aspect PrettyPrint
  * @declaredat /home/uoji/JastAddJ/Java1.4Frontend/PrettyPrint.jadd:537
  */
 public void toString(StringBuffer s) {
   s.append(indent());
   s.append(";");
 }
예제 #6
0
 /**
  * @ast method
  * @aspect GenericsPrettyPrint
  * @declaredat
  *     /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsPrettyPrint.jrag:161
  */
 public void toString(StringBuffer s) {
   s.append("?");
 }
예제 #7
0
 /**
  * @ast method
  * @aspect PrettyPrint
  * @declaredat /home/uoji/JastAddJ/Java1.4Frontend/PrettyPrint.jadd:394
  */
 public void toString(StringBuffer s) {
   getLeftOperand().toString(s);
   s.append(printOp());
   getRightOperand().toString(s);
 }
 /**
  * @ast method
  * @aspect PrettyPrint
  * @declaredat /home/uoji/JastAddJ/Java1.4Frontend/PrettyPrint.jadd:490
  */
 public void toString(StringBuffer s) {
   getAccess().toString(s);
   s.append("[]");
 }
예제 #9
0
 /**
  * @ast method
  * @aspect PrettyPrint
  * @declaredat
  *     /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/PrettyPrint.jadd:692
  */
 public void toString(StringBuffer s) {
   s.append(indent());
   s.append("throw ");
   getExpr().toString(s);
   s.append(";");
 }
예제 #10
0
 public void toString(StringBuffer s) {
   s.append("\"" + escape(getLITERAL()) + "\"");
 }