Lines Matching defs:object

202      * Indicates whether or not the specified {@code object} is equal to this
203 * field. To be equal, the specified object must be an instance of
206 * @param object
207 * the object to compare
208 * @return {@code true} if the specified object is equal to this method,
214 public boolean equals(Object object) {
215 return object instanceof Field && toString().equals(object.toString());
219 * Returns the value of the field in the specified object. This reproduces
220 * the effect of {@code object.fieldName}
225 * If this field is static, the object argument is ignored.
226 * Otherwise, if the object is null, a NullPointerException is thrown. If
227 * the object is not an instance of the declaring class of the method, an
230 * If this Field object is enforcing access control (see AccessibleObject)
235 * @param object
236 * the object to access
239 * if the object is {@code null} and the field is non-static
241 * if the object is not compatible with the declaring class
246 public Object get(Object object) throws IllegalAccessException, IllegalArgumentException {
247 return getField(object, declaringClass, type, slot, flag);
251 * Returns the value of the field in the specified object as a {@code
252 * boolean}. This reproduces the effect of {@code object.fieldName}
254 * If this field is static, the object argument is ignored.
255 * Otherwise, if the object is {@code null}, a NullPointerException is
256 * thrown. If the object is not an instance of the declaring class of the
259 * If this Field object is enforcing access control (see AccessibleObject)
263 * @param object
264 * the object to access
267 * if the object is {@code null} and the field is non-static
269 * if the object is not compatible with the declaring class
274 public boolean getBoolean(Object object) throws IllegalAccessException,
276 return getZField(object, declaringClass, type, slot, flag, TYPE_BOOLEAN);
280 * Returns the value of the field in the specified object as a {@code byte}.
281 * This reproduces the effect of {@code object.fieldName}
283 * If this field is static, the object argument is ignored.
284 * Otherwise, if the object is {@code null}, a NullPointerException is
285 * thrown. If the object is not an instance of the declaring class of the
288 * If this Field object is enforcing access control (see AccessibleObject)
292 * @param object
293 * the object to access
296 * if the object is {@code null} and the field is non-static
298 * if the object is not compatible with the declaring class
303 public byte getByte(Object object) throws IllegalAccessException, IllegalArgumentException {
304 return getBField(object, declaringClass, type, slot, flag, TYPE_BYTE);
308 * Returns the value of the field in the specified object as a {@code char}.
309 * This reproduces the effect of {@code object.fieldName}
311 * If this field is static, the object argument is ignored.
312 * Otherwise, if the object is {@code null}, a NullPointerException is
313 * thrown. If the object is not an instance of the declaring class of the
316 * If this Field object is enforcing access control (see AccessibleObject)
320 * @param object
321 * the object to access
324 * if the object is {@code null} and the field is non-static
326 * if the object is not compatible with the declaring class
331 public char getChar(Object object) throws IllegalAccessException, IllegalArgumentException {
332 return getCField(object, declaringClass, type, slot, flag, TYPE_CHAR);
346 * Returns the value of the field in the specified object as a {@code
347 * double}. This reproduces the effect of {@code object.fieldName}
349 * If this field is static, the object argument is ignored.
350 * Otherwise, if the object is {@code null}, a NullPointerException is
351 * thrown. If the object is not an instance of the declaring class of the
354 * If this Field object is enforcing access control (see AccessibleObject)
358 * @param object
359 * the object to access
362 * if the object is {@code null} and the field is non-static
364 * if the object is not compatible with the declaring class
369 public double getDouble(Object object) throws IllegalAccessException, IllegalArgumentException {
370 return getDField(object, declaringClass, type, slot, flag, TYPE_DOUBLE);
374 * Returns the value of the field in the specified object as a {@code float}
375 * . This reproduces the effect of {@code object.fieldName}
377 * If this field is static, the object argument is ignored.
378 * Otherwise, if the object is {@code null}, a NullPointerException is
379 * thrown. If the object is not an instance of the declaring class of the
382 * If this Field object is enforcing access control (see AccessibleObject)
386 * @param object
387 * the object to access
390 * if the object is {@code null} and the field is non-static
392 * if the object is not compatible with the declaring class
397 public float getFloat(Object object) throws IllegalAccessException, IllegalArgumentException {
398 return getFField(object, declaringClass, type, slot, flag, TYPE_FLOAT);
402 * Returns the value of the field in the specified object as an {@code int}.
403 * This reproduces the effect of {@code object.fieldName}
405 * If this field is static, the object argument is ignored.
406 * Otherwise, if the object is {@code null}, a NullPointerException is
407 * thrown. If the object is not an instance of the declaring class of the
410 * If this Field object is enforcing access control (see AccessibleObject)
414 * @param object
415 * the object to access
418 * if the object is {@code null} and the field is non-static
420 * if the object is not compatible with the declaring class
425 public int getInt(Object object) throws IllegalAccessException, IllegalArgumentException {
426 return getIField(object, declaringClass, type, slot, flag, TYPE_INTEGER);
430 * Returns the value of the field in the specified object as a {@code long}.
431 * This reproduces the effect of {@code object.fieldName}
433 * If this field is static, the object argument is ignored.
434 * Otherwise, if the object is {@code null}, a NullPointerException is
435 * thrown. If the object is not an instance of the declaring class of the
438 * If this Field object is enforcing access control (see AccessibleObject)
442 * @param object
443 * the object to access
446 * if the object is {@code null} and the field is non-static
448 * if the object is not compatible with the declaring class
453 public long getLong(Object object) throws IllegalAccessException, IllegalArgumentException {
454 return getJField(object, declaringClass, type, slot, flag, TYPE_LONG);
482 * Returns the value of the field in the specified object as a {@code short}
483 * . This reproduces the effect of {@code object.fieldName}
485 * If this field is static, the object argument is ignored.
486 * Otherwise, if the object is {@code null}, a NullPointerException is
487 * thrown. If the object is not an instance of the declaring class of the
490 * If this Field object is enforcing access control (see AccessibleObject)
494 * @param object
495 * the object to access
498 * if the object is {@code null} and the field is non-static
500 * if the object is not compatible with the declaring class
505 public short getShort(Object object) throws IllegalAccessException, IllegalArgumentException {
506 return getSField(object, declaringClass, type, slot, flag, TYPE_SHORT);
552 * Sets the value of the field in the specified object to the value. This
553 * reproduces the effect of {@code object.fieldName = value}
555 * If this field is static, the object argument is ignored.
556 * Otherwise, if the object is {@code null}, a NullPointerException is
557 * thrown. If the object is not an instance of the declaring class of the
560 * If this Field object is enforcing access control (see AccessibleObject)
569 * @param object
570 * the object to access
574 * if the object is {@code null} and the field is non-static
576 * if the object is not compatible with the declaring class
581 public void set(Object object, Object value) throws IllegalAccessException,
583 setField(object, declaringClass, type, slot, flag, value);
587 * Sets the value of the field in the specified object to the {@code
588 * boolean} value. This reproduces the effect of {@code object.fieldName =
591 * If this field is static, the object argument is ignored.
592 * Otherwise, if the object is {@code null}, a NullPointerException is
593 * thrown. If the object is not an instance of the declaring class of the
596 * If this Field object is enforcing access control (see AccessibleObject)
603 * @param object
604 * the object to access
608 * if the object is {@code null} and the field is non-static
610 * if the object is not compatible with the declaring class
615 public void setBoolean(Object object, boolean value) throws IllegalAccessException,
617 setZField(object, declaringClass, type, slot, flag, TYPE_BOOLEAN, value);
621 * Sets the value of the field in the specified object to the {@code byte}
622 * value. This reproduces the effect of {@code object.fieldName = value}
624 * If this field is static, the object argument is ignored.
625 * Otherwise, if the object is {@code null}, a NullPointerException is
626 * thrown. If the object is not an instance of the declaring class of the
629 * If this Field object is enforcing access control (see AccessibleObject)
636 * @param object
637 * the object to access
641 * if the object is {@code null} and the field is non-static
643 * if the object is not compatible with the declaring class
648 public void setByte(Object object, byte value) throws IllegalAccessException,
650 setBField(object, declaringClass, type, slot, flag, TYPE_BYTE, value);
654 * Sets the value of the field in the specified object to the {@code char}
655 * value. This reproduces the effect of {@code object.fieldName = value}
657 * If this field is static, the object argument is ignored.
658 * Otherwise, if the object is {@code null}, a NullPointerException is
659 * thrown. If the object is not an instance of the declaring class of the
662 * If this Field object is enforcing access control (see AccessibleObject)
669 * @param object
670 * the object to access
674 * if the object is {@code null} and the field is non-static
676 * if the object is not compatible with the declaring class
681 public void setChar(Object object, char value) throws IllegalAccessException,
683 setCField(object, declaringClass, type, slot, flag, TYPE_CHAR, value);
687 * Sets the value of the field in the specified object to the {@code double}
688 * value. This reproduces the effect of {@code object.fieldName = value}
690 * If this field is static, the object argument is ignored.
691 * Otherwise, if the object is {@code null}, a NullPointerException is
692 * thrown. If the object is not an instance of the declaring class of the
695 * If this Field object is enforcing access control (see AccessibleObject)
702 * @param object
703 * the object to access
707 * if the object is {@code null} and the field is non-static
709 * if the object is not compatible with the declaring class
714 public void setDouble(Object object, double value) throws IllegalAccessException,
716 setDField(object, declaringClass, type, slot, flag, TYPE_DOUBLE, value);
720 * Sets the value of the field in the specified object to the {@code float}
721 * value. This reproduces the effect of {@code object.fieldName = value}
723 * If this field is static, the object argument is ignored.
724 * Otherwise, if the object is {@code null}, a NullPointerException is
725 * thrown. If the object is not an instance of the declaring class of the
728 * If this Field object is enforcing access control (see AccessibleObject)
735 * @param object
736 * the object to access
740 * if the object is {@code null} and the field is non-static
742 * if the object is not compatible with the declaring class
747 public void setFloat(Object object, float value) throws IllegalAccessException,
749 setFField(object, declaringClass, type, slot, flag, TYPE_FLOAT, value);
753 * Set the value of the field in the specified object to the {@code int}
754 * value. This reproduces the effect of {@code object.fieldName = value}
756 * If this field is static, the object argument is ignored.
757 * Otherwise, if the object is {@code null}, a NullPointerException is
758 * thrown. If the object is not an instance of the declaring class of the
761 * If this Field object is enforcing access control (see AccessibleObject)
768 * @param object
769 * the object to access
773 * if the object is {@code null} and the field is non-static
775 * if the object is not compatible with the declaring class
780 public void setInt(Object object, int value) throws IllegalAccessException,
782 setIField(object, declaringClass, type, slot, flag, TYPE_INTEGER, value);
786 * Sets the value of the field in the specified object to the {@code long}
787 * value. This reproduces the effect of {@code object.fieldName = value}
789 * If this field is static, the object argument is ignored.
790 * Otherwise, if the object is {@code null}, a NullPointerException is
791 * thrown. If the object is not an instance of the declaring class of the
794 * If this Field object is enforcing access control (see AccessibleObject)
801 * @param object
802 * the object to access
806 * if the object is {@code null} and the field is non-static
808 * if the object is not compatible with the declaring class
813 public void setLong(Object object, long value) throws IllegalAccessException,
815 setJField(object, declaringClass, type, slot, flag, TYPE_LONG, value);
819 * Sets the value of the field in the specified object to the {@code short}
820 * value. This reproduces the effect of {@code object.fieldName = value}
822 * If this field is static, the object argument is ignored.
823 * Otherwise, if the object is {@code null}, a NullPointerException is
824 * thrown. If the object is not an instance of the declaring class of the
827 * If this Field object is enforcing access control (see AccessibleObject)
834 * @param object
835 * the object to access
839 * if the object is {@code null} and the field is non-static
841 * if the object is not compatible with the declaring class
846 public void setShort(Object object, short value) throws IllegalAccessException,
848 setSField(object, declaringClass, type, slot, flag, TYPE_SHORT, value);