Logo Search packages:      
Sourcecode: jamvm version File versions

short java::lang::reflect::Field::getShort ( Object  o  )  throws IllegalAccessException [inline]

Get the value of this Field as a short. If the field is static, o will be ignored.

o the object to get the value of this Field from
the value of the Field
IllegalAccessException if you could not normally access this field (i.e. it is not public)
IllegalArgumentException if this is not a byte or short field of o, or if o is not an instance of the declaring class of this field
NullPointerException if o is null and this field requires an instance
ExceptionInInitializerError if accessing a static field triggered class initialization, which then failed
See also:

Definition at line 320 of file Field.java.

        return getSField(o, declaringClass, type, slot, 4);

Generated by  Doxygen 1.6.0   Back to index