Home | History | Annotate | Download | only in src

Lines Matching refs:Field

18 import java.lang.reflect.Field;
23 * Test field access through reflection.
56 * Get the field specified by "field" from "obj".
59 * field.getByte().
66 public Object getValue(Field field, Object obj, char type,
72 result = field.getBoolean(obj);
75 result = field.getByte(obj);
78 result = field.getShort(obj);
81 result = field.getChar(obj);
84 result = field.getInt(obj);
87 result = field.getLong(obj);
90 result = field.getFloat(obj);
93 result = field.getDouble(obj);
96 result = field.get(obj);
104 System.err.println("ERROR: call succeeded for field " + field +
533 Field[] fields;
562 for (Field f : fields) {
570 // Check access or lack of to field.
602 // Check access of wrong field type for valid instance.
640 public Object getValue(Field field, Object obj, char type,
646 result = field.getBoolean(obj);
649 result = field.getByte(obj);
652 result = field.getShort(obj);
655 result = field.getChar(obj);
658 result = field.getInt(obj);
661 result = field.getLong(obj);
664 result = field.getFloat(obj);
667 result = field.getDouble(obj);
670 result = field.get(obj);
678 System.err.println("ERROR: call succeeded for field " + field +