Lines Matching defs:writeMethod
130 * @param writeMethod The method used for writing the property value.
135 public PropertyDescriptor(String propertyName, Method readMethod, Method writeMethod)
142 setWriteMethod(writeMethod);
304 Method writeMethod = this.writeMethodRef.get();
305 if (writeMethod == null) {
331 writeMethod = Introspector.findMethod(cls, writeMethodName, 1, args);
332 if (writeMethod != null) {
333 if (!writeMethod.getReturnType().equals(void.class)) {
334 writeMethod = null;
338 setWriteMethod(writeMethod);
343 return writeMethod;
349 * @param writeMethod The new write method.
353 public synchronized void setWriteMethod(Method writeMethod)
356 setPropertyType(findPropertyType(getReadMethod(), writeMethod));
357 setWriteMethod0(writeMethod);
360 private void setWriteMethod0(Method writeMethod) {
361 this.writeMethodRef.set(writeMethod);
362 if (writeMethod == null) {
366 setClass0(writeMethod.getDeclaringClass());
368 writeMethodName = writeMethod.getName();
369 setTransient(writeMethod.getAnnotation(Transient.class));
677 private Class<?> findPropertyType(Method readMethod, Method writeMethod)
693 if (writeMethod != null) {
694 Class<?>[] params = getParameterTypes(getClass0(), writeMethod);
697 + writeMethod);
754 appendTo(sb, "writeMethod", this.writeMethodRef.get());