Пример #1
0
 public String toString() {
   return super.toString()
       + "(variable="
       + variable.toString()
       + ", thunk="
       + thunk.toString()
       + ")";
 }
Пример #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;
 }