protected BlockStmt fieldAssignment(String fieldName, String valueName) {
        BlockStmt body = new BlockStmt();
        body.addStatement(
                new ExpressionStmt(new AssignExpr(new NameExpr(fieldName), new NameExpr(valueName), Operator.ASSIGN)));
        return body;
    }
protected BlockStmt fieldAssignment ( String fieldName , String valueName ) { BlockStmt body = new BlockStmt ( ) ; body . addStatement ( new ExpressionStmt ( new AssignExpr ( new NameExpr ( fieldName ) , new NameExpr ( valueName ) , Operator . ASSIGN ) ) ) ; return body ; }
Generates something like <code>field = newValue</code>

@param fieldName
@param valueName
@return