Beispiel #1
0
 public String toString() {
   return super.toString()
       + "(variable="
       + variable.toString()
       + ", thunk="
       + thunk.toString()
       + ")";
 }
Beispiel #2
0
 public Variable getVariable() {
   if (!bound) {
     bound = true;
     int position = find(statementList, after);
     VariableDeclaration varDecl =
         new VariableDeclaration(
             OJUtil.toTypeName(type, typeFactory), variable.toString(), null);
     statementList.insertElementAt(varDecl, position);
     varDecl.setInitializer(thunk.getInitializer());
   }
   return variable;
 }