Home | History | Annotate | Download | only in native

Lines Matching refs:field

18  * java.lang.reflect.Field
25 * Get the address of a field from an object. This can be used with "get"
28 * "declaringClass" is the class in which the field was declared. For an
29 * instance field, "obj" is the object that holds the field data; for a
30 * static field its value is ignored.
32 * "If the underlying field is static, the class that declared the
33 * field is initialized if it has not already been initialized."
40 * attempting to set a protected field from an unrelated class causes an
42 * the field causes an IllegalArgumentException. If code does both at the
47 * (2) Make sure the object actually has the field. Throw
49 * (3) Make sure the field matches the expected type, e.g. if we issued
50 * a "getInteger" call make sure the field is an integer or can be
62 Field* field;
65 field = dvmSlotToField(declaringClass, slot);
66 assert(field != NULL);
70 if (isSetOperation && dvmIsFinalField(field)) {
72 "field is marked 'final'");
81 * (1) Would an instance of the calling class have access to the field?
82 * (2) If the field is "protected", is the object an instance of the
83 * calling class, or is the field's declaring class in the same
90 if (!dvmCheckFieldAccess(callerClass, field)) {
92 "access to field not allowed");
95 if (dvmIsProtectedField(field)) {
106 "access to protected field not allowed");
112 if (dvmIsStaticField(field)) {
113 /* init class if necessary, then return ptr to storage in "field" */
121 result = dvmStaticFieldPtr((StaticField*) field);
125 * expected field in it), then grab a pointer to obj storage.
131 LOGD("Wrong type of object for field lookup: %s %s\n",
136 result = dvmFieldPtr(obj, ((InstField*) field)->byteOffset);
151 Field* field;
153 field = dvmSlotToField(declaringClass, slot);
154 RETURN_INT(field->accessFlags & JAVA_FLAGS_MASK);
178 /* get a pointer to the field's data; performs access checks */
201 * When assigning into a primitive field we will automatically extract
220 "invalid value for field");
224 /* get a pointer to the field's data; performs access checks */
257 * Primitive field getters, e.g.:
261 * The "type_no" is defined by the java.lang.reflect.Field class.
279 "not a primitive field");
283 /* get a pointer to the field's data; performs access checks */
308 * Primitive field setters, e.g.:
312 * The "type_no" is defined by the java.lang.reflect.Field class.
331 "not a primitive field");
335 /* convert the 32/64-bit arg to a JValue matching the field type */
344 /* get a pointer to the field's data; performs access checks */
364 * Return the annotations declared for this field.
372 Field* field;
374 field = dvmSlotToField(declaringClass, slot);
375 assert(field != NULL);
377 ArrayObject* annos = dvmGetFieldAnnotations(field);
393 Field* field;
395 field = dvmSlotToField(declaringClass, slot);
396 assert(field != NULL);
398 ArrayObject* arr = dvmGetFieldSignatureAnnotation(field);