示例#1
0
 FieldDeclarationWrapper(FieldDeclaration declaration) {
   this.declaration = declaration;
   if (declaration.getVariables().size() != 1) {
     throw new UnsupportedOperationException(
         "Not yet implemented: multiple variables in one field decl.");
   }
 }
示例#2
0
 @Override
 public void setName(String name) {
   declaration.getVariables().get(0).getId().setName(name);
 }
示例#3
0
 @Override
 public String getName() {
   return declaration.getVariables().get(0).getId().getName();
 }