- object
- the object to access
Documentation for this section has not yet been entered.
Type Reason Java.Lang.NullPointerException if the object is null and the field is non-static Java.Lang.IllegalArgumentException if the object is not compatible with the declaring class Java.Lang.IllegalAccessException if this field is not accessible
Returns the value of the field in the specified object as a short . This reproduces the effect of object.fieldName
If this field is static, the object argument is ignored. Otherwise, if the object is null, a NullPointerException is thrown. If the object is not an instance of the declaring class of the method, an IllegalArgumentException is thrown.
If this Field object is enforcing access control (see AccessibleObject) and this field is not accessible from the current context, an IllegalAccessException is thrown.