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