Lines Matching refs:obj

249     public boolean equals(Object obj) {
250 if (obj != null && obj instanceof Field) {
251 Field other = (Field)obj;
330 * <p>If the underlying field is a static field, the {@code obj} argument
334 * specified {@code obj} argument is null, the method throws a
350 * <p>If the field is hidden in the type of {@code obj},
353 * @param obj object from which the represented field's value is
356 * {@code obj}; primitive values are wrapped in an appropriate
371 public Object get(Object obj)
376 checkAccess(Reflection.getCallerClass(), clazz, obj, modifiers);
379 return getFieldAccessor(obj).get(obj);
385 * @param obj the object to extract the {@code boolean} value
405 public boolean getBoolean(Object obj)
410 checkAccess(Reflection.getCallerClass(), clazz, obj, modifiers);
413 return getFieldAccessor(obj).getBoolean(obj);
419 * @param obj the object to extract the {@code byte} value
439 public byte getByte(Object obj)
444 checkAccess(Reflection.getCallerClass(), clazz, obj, modifiers);
447 return getFieldAccessor(obj).getByte(obj);
455 * @param obj the object to extract the {@code char} value
475 public char getChar(Object obj)
480 checkAccess(Reflection.getCallerClass(), clazz, obj, modifiers);
483 return getFieldAccessor(obj).getChar(obj);
491 * @param obj the object to extract the {@code short} value
511 public short getShort(Object obj)
516 checkAccess(Reflection.getCallerClass(), clazz, obj, modifiers);
519 return getFieldAccessor(obj).getShort(obj);
527 * @param obj the object to extract the {@code int} value
547 public int getInt(Object obj)
552 checkAccess(Reflection.getCallerClass(), clazz, obj, modifiers);
555 return getFieldAccessor(obj).getInt(obj);
563 * @param obj the object to extract the {@code long} value
583 public long getLong(Object obj)
588 checkAccess(Reflection.getCallerClass(), clazz, obj, modifiers);
591 return getFieldAccessor(obj).getLong(obj);
599 * @param obj the object to extract the {@code float} value
619 public float getFloat(Object obj)
624 checkAccess(Reflection.getCallerClass(), clazz, obj, modifiers);
627 return getFieldAccessor(obj).getFloat(obj);
635 * @param obj the object to extract the {@code double} value
655 public double getDouble(Object obj)
660 checkAccess(Reflection.getCallerClass(), clazz, obj, modifiers);
663 return getFieldAccessor(obj).getDouble(obj);
674 * <p>If the underlying field is static, the {@code obj} argument is
713 * <p>If the field is hidden in the type of {@code obj},
716 * @param obj the object whose field should be modified
717 * @param value the new value for the field of {@code obj}
733 public void set(Object obj, Object value)
738 checkAccess(Reflection.getCallerClass(), clazz, obj, modifiers);
741 getFieldAccessor(obj).set(obj, value);
747 * {@code set(obj, zObj)},
751 * @param obj the object whose field should be modified
752 * @param z the new value for the field of {@code obj}
769 public void setBoolean(Object obj, boolean z)
774 checkAccess(Reflection.getCallerClass(), clazz, obj, modifiers);
777 getFieldAccessor(obj).setBoolean(obj, z);
783 * {@code set(obj, bObj)},
787 * @param obj the object whose field should be modified
788 * @param b the new value for the field of {@code obj}
805 public void setByte(Object obj, byte b)
810 checkAccess(Reflection.getCallerClass(), clazz, obj, modifiers);
813 getFieldAccessor(obj).setByte(obj, b);
819 * {@code set(obj, cObj)},
823 * @param obj the object whose field should be modified
824 * @param c the new value for the field of {@code obj}
841 public void setChar(Object obj, char c)
846 checkAccess(Reflection.getCallerClass(), clazz, obj, modifiers);
849 getFieldAccessor(obj).setChar(obj, c);
855 * {@code set(obj, sObj)},
859 * @param obj the object whose field should be modified
860 * @param s the new value for the field of {@code obj}
877 public void setShort(Object obj, short s)
882 checkAccess(Reflection.getCallerClass(), clazz, obj, modifiers);
885 getFieldAccessor(obj).setShort(obj, s);
891 * {@code set(obj, iObj)},
895 * @param obj the object whose field should be modified
896 * @param i the new value for the field of {@code obj}
913 public void setInt(Object obj, int i)
918 checkAccess(Reflection.getCallerClass(), clazz, obj, modifiers);
921 getFieldAccessor(obj).setInt(obj, i);
927 * {@code set(obj, lObj)},
931 * @param obj the object whose field should be modified
932 * @param l the new value for the field of {@code obj}
949 public void setLong(Object obj, long l)
954 checkAccess(Reflection.getCallerClass(), clazz, obj, modifiers);
957 getFieldAccessor(obj).setLong(obj, l);
963 * {@code set(obj, fObj)},
967 * @param obj the object whose field should be modified
968 * @param f the new value for the field of {@code obj}
985 public void setFloat(Object obj, float f)
990 checkAccess(Reflection.getCallerClass(), clazz, obj, modifiers);
993 getFieldAccessor(obj).setFloat(obj, f);
999 * {@code set(obj, dObj)},
1003 * @param obj the object whose field should be modified
1004 * @param d the new value for the field of {@code obj}
1021 public void setDouble(Object obj, double d)
1026 checkAccess(Reflection.getCallerClass(), clazz, obj, modifiers);
1029 getFieldAccessor(obj).setDouble(obj, d);
1033 private FieldAccessor getFieldAccessor(Object obj)