Home | History | Annotate | Download | only in src

Lines Matching refs:field

19 import java.lang.reflect.Field;
22 * Test field access through reflection.
41 * Get the field specified by "field" from "obj".
44 * field.getByte().
51 public Object getValue(Field field, Object obj, char type,
58 result = new Boolean(field.getBoolean(obj));
61 result = new Byte(field.getByte(obj));
64 result = new Short(field.getShort(obj));
67 result = new Character(field.getChar(obj));
70 result = new Integer(field.getInt(obj));
73 result = new Long(field.getLong(obj));
76 result = new Float(field.getFloat(obj));
79 result = new Double(field.getDouble(obj));
82 result = field.get(obj);
149 Field localPubByteField, localProtByteField, localProtObjectField,
151 Field otherPubCharField, otherProtShortField, otherProtObjectField,
153 Field subProtLongField;
179 * Get a public field from a class in the same package.
184 * Get a protected field from a class in the same package.
189 * Get a private field from a class in the same package.
195 * Get a protected field from otherInst's superclass.
239 * Valid object, wrong field type.
262 /* wrong object + private field */
266 /* wrong object + wrong field type */
283 public Object getValue(Field field, Object obj, char type,
290 result = new Boolean(field.getBoolean(obj));
293 result = new Byte(field.getByte(obj));
296 result = new Short(field.getShort(obj));
299 result = new Character(field.getChar(obj));
302 result = new Integer(field.getInt(obj));
305 result = new Long(field.getLong(obj));
308 result = new Float(field.getFloat(obj));
311 result = new Double(field.getDouble(obj));
314 result = field.get(obj);